Problem:
A sequence of positive integers satisfies
for every positive integer . Prove that the sequence contains at most one perfect square.
Solution
Solution:
It's easy to check that no two consecutive terms can be perfect squares, since the only squares which differ by are and .
Now, note that squares are , , or mod . After a perfect square appears, the next term must be or , and thereafter all terms are , modulo , so no more squares.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.