I'm trying to write a C++ program that does base-conversions.
I want to convert a decimal number to all the other integer bases from 2 to 20.
Is there an efficient and easy-to-implement algorithm for base conversions?
I don't understand where exactly is the problem? It's very easy and straigtforward to do base conversion: you do it as you would by hand.
Example:
1025 (decimal) to base 15:
1025 / 15 = 68 , remainder 5
68 / 15 = 4 , remainder 8
4 / 15 = 0 , remainder 4
The number in base 15 is 485