Problem 3
Find all functions such that is a perfect square for all .
Step 4 of 6: Deduce unit consecutive differences and injectivity
Detailed analysis
If , the claim applied modulo any prime would give , impossible. If , choose a prime dividing this difference; then , and the claim again gives the same contradiction. Hence . More generally, if with , the rigidity claim applies for every prime , so for every prime. Choosing a prime larger than forces , so is injective.