Let kk be a positive integer and a1,a2,a_1, a_2, \ldots be an infinite sequence of positive integers such that aiai+1kai2a_i a_{i+1} \mid k - a_i^2 for all integers i1i \geq 1. Prove that there exists a positive integer MM such that an=an+1a_n = a_{n+1} for all integers nMn \geq M.