MathLabs

Problem 5

Determine all functions f:Z→Zf:\mathbb{Z}\to\mathbb{Z} such that f(f(a)−b)+b f(2a)f(f(a)-b)+b\,f(2a) is a perfect square for all integers aa and bb.
Step 3 of 5: Verify the zero-on-evens family
f(2a)=0 ⇒ f(f(a)−b)+bf(2a)=f(f(a)−b), a square for every value f(a)−bf(2a)=0\ \Rightarrow\ f(f(a)-b)+bf(2a)=f(f(a)-b),\ \text{a square for every value }f(a)-b
Detailed analysis

If ff vanishes on all even integers and equals a perfect square on each odd integer, then 2a2a is always even, so f(2a)=0f(2a)=0 and the expression reduces to f(f(a)−b)f(f(a)-b). As bb ranges over all integers, so does m=f(a)−bm=f(a)-b, and by construction f(m)f(m) is always a perfect square (00 if mm is even, the chosen square if mm is odd). So the whole expression is a perfect square for every a,ba,b.