How to proof that the rightmost numbers do not repeat if the numbers are in the same group?

-Define the numbers are in a group if the numbers do not start in the same position (left, middle, and right). (For example, if there are 4 columns, the first 10 rows of numbers are in one group. If there are 5 columns, the first 4 rows of numbers are in one group.)