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 5 of 7: Rule out odd part 3 at the start
m=2:a1<4 ⇒ b1∈{1,3};b1=3 ⟹ a2=13, b2=13>4 (contradicts step 1)m=2:\quad a_1<4\ \Rightarrow\ b_1\in\{1,3\};\qquad b_1=3\ \Longrightarrow\ a_2=13,\ b_2=13>4\ (\text{contradicts step 1})
Detailed analysis

For m=2m=2, step 1 requires b1≤4b_1\le4, and b1b_1 odd gives b1∈{1,3}b_1\in\{1,3\}. Since the large rule preserves the odd part, if b1=3b_1=3 the sequence keeps odd part 33 under repeated halving until it reaches the term a=3a=3 itself (when 3<43<4); then an+1=32+4=13a_{n+1}=3^2+4=13, whose odd part 1313 exceeds 2m=42^m=4, contradicting step 1. Hence b1=1b_1=1: a1a_1 must itself be a power of two, a1=2ℓa_1=2^\ell for some integer ℓ≥0\ell\ge0.