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?