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 3 of 6: Two large terms in a row are impossible
In plain words

If a term were placed on a tower that is already taller than every one of the first N towers, tracing back through that tall, all-new-block tower shows there must already have been more than M taller towers before it, which is a contradiction the first time this happens.

an>M  ⟹  an+1≤Ma_n>M\implies a_{n+1}\le M
Detailed analysis

Assume that, for the first time, an>Ma_n>M and an+1>Ma_{n+1}>M. The block BnB_n is in a tower labelled an>Ma_n>M, so after it is placed that tower has height an+1>Ma_{n+1}>M and contains more than MM yellow blocks. For each such block BrB_r, the preceding block Br−1B_{r-1} was placed at height an>Ma_n>M in its own tower, because ana_n is the height of the tower containing Br−1B_{r-1} after that placement. Distinct BrB_r give distinct predecessor towers, since one tower has only one block at a given height. Thus more than MM distinct towers had already reached height greater than MM. Among them, one has a label j>Mj>M, because only MM tower labels are at most MM. Let BtB_t be the first block that raises tower jj from height MM to height M+1M+1. Then at=j>Ma_t=j>M and at+1=M+1>Ma_{t+1}=M+1>M, with t<nt<n, contradicting the choice of nn. Hence an>Ma_n>M implies an+1≤Ma_{n+1}\le M. Consequently, among every two consecutive terms at least one is at most MM, so some value in 1,…,M1,\ldots,M occurs infinitely often. Let LL be the largest index such that towers 1,…,L1,\ldots,L are unbounded; the preceding injection shows that every unbounded tower has all smaller towers unbounded, while towers L+1,…,ML+1,\ldots,M are bounded.