Problem:
Let be an integer. A sequence is defined by , , and for all ,
Determine all integers such that every term of the sequence is a square.
, 2020
Solutions — 2
Solution 1
Solution:
The only such are and .
Consider an integer for which the sequence defined in the problem statement contains only perfect squares. We shall first show that is a power of .
Suppose that is even. Then should be divisible by and hence . But then cannot be a square, a contradiction. Therefore is odd.
Suppose that an odd prime divides . Note that . It follows that modulo the sequence takes the form ; indeed, a simple induction shows that for . Since we get that the sequence contains all the residues modulo , a contradiction since only residues modulo are squares. This shows that is a power of .
Let be integers such that and . We then have . Since , it follows that equals either or , and equals either or , respectively. In the first two cases we get and in the last case we get . This implies that either or .
We now show the converse. Suppose that or . Let or so that . Let be a sequence of integers defined by , and
Clearly, for . Note that if then and , and if then and . In both the cases we have .
If then we have
Therefore, it follows by induction that for all . This completes the solution.
Solution 2
Solution:
We present an alternate proof that and are the only possible values of with the required property.
Note that
Since and are squares, so is . We have
Notice that
so we must have
This implies that , so or .