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 4 of 7: The landing point forces m=2
descending power of two lands at exponent m−1;m−1=m2 ⟹ m=2\text{descending power of two lands at exponent}\ m-1;\qquad m-1=\tfrac m2\ \Longrightarrow\ m=2
Detailed analysis

Once every term is a power of two, say ai=2kia_i=2^{k_i}, the large rule fires while ki≥mk_i\ge m and decreases kik_i by exactly 11 each time, so the first exponent below mm that is reached is always exactly k=m−1k=m-1; this is precisely where the small rule next fires. By step 3, staying at odd part 11 forever requires every such landing to be the borderline case 2ci=m2c_i=m, i.e. ki=m/2k_i=m/2. Since the landing exponent is always m−1m-1, consistency forces m−1=m/2m-1=m/2, i.e. m=2m=2; for any other mm, this landing would produce odd part bi+1=1+2∣m−1−m/2∣>1b_{i+1}=1+2^{|m-1-m/2|}>1, and repeating the argument of step 3 shows the odd part would eventually exceed 2m2^m, contradicting step 1. So m=2m=2 is the only possible value.