MathLabs

Problem 3

A sequence of real numbers a0,a1,…a_0,a_1,\ldots is said to be good if: (i) a0a_0 is a positive integer; (ii) for each non-negative integer ii, ai+1=2ai+1a_{i+1}=2a_i+1 or ai+1=aiai+2a_{i+1}=\frac{a_i}{a_i+2}; (iii) there exists a positive integer kk such that ak=2014a_k=2014. Find the smallest positive integer nn such that there exists a good sequence with an=2014a_n=2014.
Step 2 of 4: Run the sequence backwards
ak=2014⟹(m0,n0)=(2014,1),ak−i=minia_k=2014\Longrightarrow (m_0,n_0)=(2014,1),\quad a_{k-i}=\frac{m_i}{n_i}
Detailed analysis

Starting from 2014, each predecessor is uniquely determined: if the current value is above one use the inverse of the doubling move, and if it is below one use the inverse of the fractional move. Write each predecessor in lowest terms. The numerator and denominator stay positive, coprime, and have sum 2015.