MathLabs

Problem 4

Find all functions f:Z→Zf:\mathbb Z\to\mathbb Z such that for all integers a,b,ca,b,c with a+b+c=0a+b+c=0, f(a)2+f(b)2+f(c)2=2f(a)f(b)+2f(b)f(c)+2f(c)f(a)f(a)^2+f(b)^2+f(c)^2=2f(a)f(b)+2f(b)f(c)+2f(c)f(a).
Step 4 of 5: The nonperiodic branch is quadratic
In plain words

If the period-two alternative is absent, the equation propagates the quadratic pattern from 1 to every positive integer.

f(n)=cn2f(n)=cn^2
Detailed analysis

Assume f(2)=4f(1)f(2)=4f(1) and write c=f(1)c=f(1). If c=0c=0, this is the zero member of the quadratic family. For c≠0c\ne0, induction in the original equation with (a,b,c)=(1,n,−n−1)(a,b,c)= (1,n,-n-1) gives the two alternatives f(n+1)=(n+1)2cf(n+1)=(n+1)^2c or f(n+1)=(n−1)2cf(n+1)=(n-1)^2c. The latter, substituted with (a,b,c)=(n+1,1−n,−2)(a,b,c)=(n+1,1-n,-2), is impossible for n>2; the remaining initial case gives f(3)=9cf(3)=9c. Hence f(n)=cn2f(n)=cn^2 for all n, and direct substitution verifies this family.