Problem 3
Find all functions such that is a perfect square for all .
Step 1 of 6: Verify the candidate family
In plain words
The two factors become identical when , so their product is automatically a square.
Detailed analysis
For any fixed integer , define . Then maps positive integers to positive integers, and . Thus every function in this family satisfies the condition; it remains to prove that no other function does.