Problem 5
Determine all functions such that is a perfect square for all integers and .
Step 4 of 5: Necessity: pin down f(0)
Detailed analysis
Let c denote f(0). Substitution at a=0 and b=c gives c+c²=z², and factoring the difference of squares yields c=0 or c=−1. If c=−1, substituting b=f(a) shows that f(a)f(2a)−1 is a square for every a. The standard prime-divisor argument for one more than a square forces every prime divisor of f(a) to be 2 or congruent to 1 modulo 4, with no factor 4. In particular this applies at −4. But substituting a=0 and b=3 makes f(−4)−3 a square, so f(−4) is congruent to 3 modulo 4, a contradiction. Hence f(0)=0.