MathLabs

Problem 3

Let a1,a2,a3,…a_1,a_2,a_3,\ldots be an infinite sequence of positive integers, and let NN be a positive integer. Suppose that, for each n>Nn>N, the number ana_n is equal to the number of times an−1a_{n-1} appears in the list (a1,a2,…,an−1)(a_1,a_2,\ldots,a_{n-1}). Prove that at least one of the sequences a1,a3,a5,…a_1,a_3,a_5,\ldots and a2,a4,a6,…a_2,a_4,a_6,\ldots is eventually periodic.
Step 2 of 6: Neighboring towers cannot drift too far apart
In plain words

Every time tower k+1 receives a new block from the process, that event can be traced back through a short, injective chain of earlier blocks to a corresponding new block in tower k, so tower k can never fall too far behind tower k+1.

hk≥hk+1−Ch_k\ge h_{k+1}-C
Detailed analysis

Write BiB_i for the block belonging to aia_i, and let its tower be labelled aia_i. For i>Ni>N, the defining rule says that BiB_i is at height ai+1a_{i+1}, because ai+1a_{i+1} counts the previous occurrences of the label aia_i. Fix kk. If BnB_n is a yellow block in tower k+1k+1, then Bn−1B_{n-1} is the block at height k+1k+1 in its own tower: indeed an=k+1a_n=k+1. Except for finitely many blocks touching the initial red blocks, the block immediately below Bn−1B_{n-1} is yellow; call it BrB_r. It is at height kk, so the rule gives ar+1=ka_{r+1}=k, meaning that Br+1B_{r+1} lies in tower kk. Thus, apart from a finite exceptional set, map every yellow BnB_n in tower k+1k+1 to this Br+1B_{r+1}. The map is injective: distinct BnB_n give distinct Bn−1B_{n-1}, then distinct blocks immediately below them, and finally distinct successor blocks. Therefore, at every time, the number of yellow blocks in tower k+1k+1 is at most the number in tower kk plus a fixed exceptional number. The finitely many red blocks can be absorbed into a constant CC depending only on NN and MM, giving hk≥hk+1−Ch_k\ge h_{k+1}-C. In particular, an unbounded tower forces every tower immediately to its left to be unbounded.