MathLabs

Problem 2

Let mm be a fixed positive integer. The infinite sequence {an}n≥1\{a_n\}_{n\ge1} is defined in the following way: a1a_1 is a positive integer, and for every integer n≥1n\ge1, an+1=an2+2ma_{n+1}=a_n^2+2^m if an<2ma_n<2^m, and an+1=an/2a_{n+1}=a_n/2 if an≥2ma_n\ge2^m. For each mm, determine all possible values of a1a_1 such that every term of the sequence is an integer.
Step 7 of 7: Confirm every ℓ≥1 gives an infinite integer cycle
a1=2ℓ (ℓ≥1) ⟶ 2→8→4→2→8→4→⋯a_1=2^\ell\ (\ell\ge1)\ \longrightarrow\ 2\to8\to4\to2\to8\to4\to\cdots
Detailed analysis

For ℓ≥2\ell\ge2, a1=2ℓ≥4a_1=2^\ell\ge4, so the large rule repeatedly halves the exponent by 11 (each term an integer power of two) until it reaches a=21=2a=2^1=2. From a=2a=2 (true also directly when ℓ=1\ell=1): since 2<42<4, an+1=4+4=8a_{n+1}=4+4=8; since 8≥48\ge4, halving gives 44; since 4≥44\ge4, halving gives 22, returning to the start of the cycle 2→8→4→2→⋯2\to8\to4\to2\to\cdots. Every term in this cycle, and every term in the initial descent from 2ℓ2^\ell, is a positive integer. Hence a1=2ℓa_1=2^\ell with ℓ≥1\ell\ge1 produces an all-integer sequence.