Each column has a repeating pattern, with the pattern being more complicated for higher (leftward) digits. If we define N as the period of the pattern (in rows), how does N depend on the digit (column) and the two user-defined parameters?

nth row is
^{n}, in base

0, 0
Controls:
Enter = Restart;
r = Clear prior rows