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 2 of 7: The odd part never decreases
ai≥2m: bi+1=bi;ai<2m: bi+1>bi unless 2ci=m and bi=1 (then bi+1=bi=1)a_i\ge2^m:\ b_{i+1}=b_i;\qquad a_i<2^m:\ b_{i+1}>b_i\ \text{unless}\ 2c_i=m\ \text{and}\ b_i=1\ (\text{then}\ b_{i+1}=b_i=1)
Detailed analysis

If ai≥2ma_i\ge2^m, halving removes one factor of 22, so bi+1=bib_{i+1}=b_i. If ai<2ma_i<2^m, then ai+1=bi222ci+2ma_{i+1}=b_i^22^{2c_i}+2^m; factoring out 2min⁡(2ci,m)2^{\min(2c_i,m)} shows the odd part becomes bi22∣2ci−m∣+1b_i^22^{|2c_i-m|}+1 when 2ci≠m2c_i\ne m, which exceeds bi2≥bib_i^2\ge b_i; when 2ci=m2c_i=m it becomes (bi2+1)/2(b_i^2+1)/2 (odd, since bi2≡1(mod8)b_i^2\equiv1\pmod8 for odd bib_i), which by (bi−1)2≥0(b_i-1)^2\ge0 satisfies bi+1≥bib_{i+1}\ge b_i with equality exactly when bi=1b_i=1. So bib_i never decreases, and strictly increases at every small-rule step except this single borderline case.