Determine all functions from the set of non-negative integers to itself such that
whenever , , , are non-negative integers satisfying .
, 2019
Solutions — 2
Solution 1
The required functions are , where is a non-negative integer — these clearly satisfy the condition in the statement.
Conversely, let be a function satisfying the condition in the statement. Setting in the functional relation yields for all . In particular, and , where .
Setting successively , and in the functional relation yields
Subtraction of the second relation above from the sum of the other two yields
.
Solution 2
As in the first solution, consider a function satisfying the condition in the statement, and establish that , for all ; in particular, .
We now show by induction on that for all . By the preceding, this is clearly the case if . For the induction step, let .
Since , if is a square, the conclusion follows by the induction hypothesis: .
Otherwise, use Lagrange's four-square theorem to write , where and are positive integers, each of which is a sum of two squares. Recall that if each factor of a product is a sum of two squares, then so is the product (use standard identities such as repeatedly), to write for some non-negative integers and . Clearly, and ; , and similarly, . Setting and in the functional relation and applying the induction hypothesis completes the induction step:
for all non-negative integers .
Consequently, for all and all . Setting and concludes the proof.