Today we learn about a counting technique in different bases

Look at the least significant digit (the right most) of the just-printed number. If this digit is not the last symbol in the base, we change this digit to be the next symbol in the base. In this case we get a next number already; print the number and proceed step 2 again. If this digit is the last symbol in the base, ................
................