Click New Example to start working through an example. Click on the steps of the algorithm to see the values
of the variables in each step. First click on step 1. and then on the following steps in the order of execution.
New Example Restart Example
Algorithm. Conversion to base b representation.
Input:
a natural number a and a natural number b greater than 1
Output:
The digits r0,
r1, r2,...,rn of the base
b representation of a