Let a1,a2,a_1, a_2, \ldots be an infinite sequence of positive integers. Suppose that there is an integer N>1N > 1 such that, for each nNn \geq N, the number a1a2+a2a3++an1an+ana1\frac{a_1}{a_2} + \frac{a_2}{a_3} + \cdots + \frac{a_{n-1}}{a_n} + \frac{a_n}{a_1} is an integer. Prove that there is a positive integer MM such that am=am+1a_m = a_{m+1} for all mMm \geq M.