For number = 4
and base = 2,
Start.
[1, 0, 0] (base 2) = 4
[1, 1] (base 3) = 4
Completed 1 iteration.
[1, 0] (base 4) = 4
Completed 2 iterations.
[3] (base 5) = 3
Completed 3 iterations.
[2] (base 6) = 2
Completed 4 iterations.
[1] (base 7) = 1
Completed 5 iterations.
[0] (base 8) = 0
Completed 6 iterations.

For number = 3
and base = 2,
Start.
[1, 1] (base 2) = 3
[1, 0] (base 3) = 3
Completed 1 iteration.
[2] (base 4) = 2
Completed 2 iterations.
[1] (base 5) = 1
Completed 3 iterations.
[0] (base 6) = 0
Completed 4 iterations.

For number = 5
and base = 3,
Start.
[1, 2] (base 3) = 5
[1, 1] (base 4) = 5
Completed 1 iteration.
[1, 0] (base 5) = 5
Completed 2 iterations.
[4] (base 6) = 4
Completed 3 iterations.
[3] (base 7) = 3
Completed 4 iterations.
[2] (base 8) = 2
Completed 5 iterations.
[1] (base 9) = 1
Completed 6 iterations.
[0] (base 10) = 0
Completed 7 iterations.

For number = 10
and base = 8,
Start.
[1, 2] (base 8) = 10
[1, 1] (base 9) = 10
Completed 1 iteration.
[1, 0] (base 10) = 10
Completed 2 iterations.
[9] (base 11) = 9
Completed 3 iterations.
[8] (base 12) = 8
Completed 4 iterations.
[7] (base 13) = 7
Completed 5 iterations.
[6] (base 14) = 6
Completed 6 iterations.
[5] (base 15) = 5
Completed 7 iterations.
[4] (base 16) = 4
Completed 8 iterations.
[3] (base 17) = 3
Completed 9 iterations.
[2] (base 18) = 2
Completed 10 iterations.
[1] (base 19) = 1
Completed 11 iterations.
[0] (base 20) = 0
Completed 12 iterations.
