we have a number n. We have to calculate the the number in all the bases to n-1
so for example if we have 5, we need base 2, 3 and 4
and also we need to calculate and show the sum of the digits of the numbes in each base. In c++
the number n can be anywhere from 2 to 62
and the values go like this
A - 10
B - 11
C - 12
...
a - 36
b - 37
...
z - 61
In maths, do you know how to convert a number in base 10 to another base?
The general steps for converting a base 10 or "normal" number into another base are: First, divide the number by the base to get the remainder. Then repeat the process by dividing the quotient of step 1, by the new base. This time, the remainder is the second digit, ie the second least significant.
First you need to understand this and know how to do this using pen/paper.Then you convert these steps into an algorithm, test, then from this produce a program design. Last you code the program from the design.