Problem 1
For each integer , define the sequence for by Determine all values of for which there exists a number such that for infinitely many values of .
Step 2 of 5: Divisibility by 3 is an invariant
Detailed analysis
Adding never changes the residue modulo . If is a perfect square, write ; since is prime, exactly when , so taking the square root neither creates nor destroys a factor of . Hence whether is the same for every as it is for .