Squares in a Sequence

Let a, b and n be positive integers and let xn = an + b. Show that if the sequence x0, x1, x2, ... contains a square of an integer, then it contains infinitely many squares.

Solution