6 kyu
Simple Fun #146: Chandos Number
127 of 389myjinxin2015
Description:
Task
The sequence of Chando
is an infinite sequence of all Chando's numbers in ascending order.
A number is called Chando's
if it is an integer that can be represented as a sum of different positive integer powers of 5.
The first Chando's numbers is 5 (5^1). And the following nth Chando's numbers are:
25 (5^2)
30 (5^1 + 5^2)
125 (5^3)
130 (5^1 + 5^3)
150 (5^2 + 5^3)
...
...
Your task is to find the Chando's nth number for a given n
.
Input/Output
[input]
integern
1 <= n <= 7000
[output]
an integer
nth Chando's number
Algorithms
Number Theory
Similar Kata:
Stats:
Created | Feb 20, 2017 |
Published | Feb 20, 2017 |
Warriors Trained | 1429 |
Total Skips | 49 |
Total Code Submissions | 1508 |
Total Times Completed | 389 |
JavaScript Completions | 127 |
C# Completions | 51 |
Python Completions | 199 |
Ruby Completions | 32 |
Crystal Completions | 11 |
Haskell Completions | 26 |
Scala Completions | 10 |
Total Stars | 35 |
% of votes with a positive feedback rating | 95% of 114 |
Total "Very Satisfied" Votes | 105 |
Total "Somewhat Satisfied" Votes | 7 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 5 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 6 kyu |