Problem 3
A sequence of real numbers is said to be good if: (i) is a positive integer; (ii) for each non-negative integer , or ; (iii) there exists a positive integer such that . Find the smallest positive integer such that there exists a good sequence with .
Step 3 of 4: Use the modular invariant
Detailed analysis
The two inverse updates preserve the displayed congruence by induction. Since a_0 must be an integer and the fraction is reduced, its denominator is one. Thus 2^k is congruent to one modulo 2015.