Let a1, a2, a3, . . . be an infinite sequence of positive integers, and let N be a positive integer. Suppose that, for each n > N, an is equal to the number of times an−1 appears in the list a1, a2, . . . , an−1. Prove that at least one of the sequences a1, a3, a5, . . . and a2, a4, a6, . . . is eventually periodic.
Let's approach this problem step by step, using the insights we've gained from our conceptual exploration.
Proof:
Lemma 1: The sequence {an} is bounded. Proof of Lemma 1: a) For any n > N, an is at most n-1, because an−1 can appear at most n-1 times in the list a1, a2, . . . , an−1. b) Therefore, for all n > N, 1 ≤ an ≤ n-1.
Lemma 2: There exists a positive integer M such that for all n > M, an ≤ M. Proof of Lemma 2:
a) Let
$$ M = max(a1, a2, ..., aN, N). $$
b) We prove by induction that an ≤ M for all n > M.
c) Base case: For
$$ N < n ≤ M, an ≤ n-1 ≤ M-1 < M $$
d) Inductive step: Assume ak ≤ M for all k where M < k < n. Then an, which counts occurrences of an-1 in previous terms, must also be ≤ M.
e) By induction, an ≤ M for all n > M.
Main Proof:
a) Consider the subsequence of odd-indexed terms: a1, a3, a5, ...
b) For n > max(N, M), each term in this subsequence is an integer between 1 and M, inclusive.
c) By the Pigeonhole Principle, in any sequence of M+1 consecutive terms of this subsequence, there must be at least one repeated value.
d) Let's consider blocks of M+1 consecutive terms in this subsequence.
e) There are only finitely many possible configurations for such blocks (at most M^(M+1)).
f) Therefore, by the Pigeonhole Principle again, as we move through the infinite sequence of blocks, some configuration must repeat.
g) When a configuration repeats, it will continue to repeat indefinitely, creating a periodic pattern.
h) Thus, the subsequence of odd-indexed terms is eventually periodic.
If the subsequence of odd-indexed terms is not eventually periodic (which we've proven is impossible), then by the same argument, the subsequence of even-indexed terms must be eventually periodic.
Therefore, at least one of the sequences a1, a3, a5, ... and a2, a4, a6, ... is eventually periodic.
Q.E.D.
Reflection and Critical Review: