Problem 3
Let be an infinite sequence of positive integers, and let be a positive integer. Suppose that, for each , the number is equal to the number of times appears in the list . Prove that at least one of the sequences and is eventually periodic.
Step 1 of 6: The tower picture
In plain words
Imagine placing a numbered block for every term of the sequence into the tower labeled by its value; then each new term after index N is exactly the current height of the tower that the previous term points to.
Detailed analysis
Set and visualize a row of towers labeled ; for , term adds a block to tower . The first blocks are called red; for , block is placed on tower , whose new height after this placement is by definition itself, i.e. block lands exactly at height in its tower — reflecting that counts how many times has appeared so far.