Problem 3
Find all functions such that is a perfect square for all .
Step 3 of 6: Prove the prime-modular rigidity claim
Detailed analysis
Fix a prime and positive integers with . Choose a sufficiently large positive integer so that both and are odd; this can be done by choosing a suitable residue of modulo a high enough power of : if the two constants differ by at least two powers of (or are equal), both valuations can be made , while if they differ by exactly one power of , they can be made and . Since is a square, the odd valuation of forces to have odd p-adic valuation, hence . The same argument with gives . Therefore .