Maths Olympiad Prep

Library / /3 of 12

, 2019

Algebra Difficulty 7.9 National olympiad, round 2 Prove it Romania

Determine all functions ff from the set of non-negative integers to itself such that
f(a+b)=f(a)+f(b)+f(c)+f(d), f(a + b) = f(a) + f(b) + f(c) + f(d),
whenever aa, bb, cc, dd are non-negative integers satisfying 2ab=c2+d22ab = c^2 + d^2.

Solutions — 2

Solution 1

The required functions are f(n)=kn2f(n) = k n^2, where kk is a non-negative integer — these clearly satisfy the condition in the statement.

Conversely, let ff be a function satisfying the condition in the statement. Setting (a,b,c,d)=(n,n,n,n)(a, b, c, d) = (n, n, n, n) in the functional relation yields f(2n)=4f(n)f(2n) = 4f(n) for all nn. In particular, f(0)=0f(0) = 0 and f(2)=4kf(2) = 4k, where k=f(1)k = f(1).

Setting successively (a,b,c,d)=(n2,1,n,n)(a, b, c, d) = (n^2, 1, n, n), (a,b,c,d)=(n2,2,2n,0)(a, b, c, d) = (n^2, 2, 2n, 0) and (a,b,c,d)=(n2+1,1,n+1,n1)(a, b, c, d) = (n^2 + 1, 1, n + 1, n - 1) in the functional relation yields
f(n2+1)=f(n2)+k+2f(n),f(n2+2)=f(n2)+4k+f(2n)=f(n2)+4k+4f(n),f(n2+2)=f(n2+1)+k+f(n+1)+f(n1). \begin{align*} f(n^2 + 1) &= f(n^2) + k + 2f(n), \\ f(n^2 + 2) &= f(n^2) + 4k + f(2n) = f(n^2) + 4k + 4f(n), \\ f(n^2 + 2) &= f(n^2 + 1) + k + f(n + 1) + f(n - 1). \end{align*}
Subtraction of the second relation above from the sum of the other two yields
f(n+1)=2f(n)f(n1)+2kf(n + 1) = 2f(n) - f(n - 1) + 2k.

Solution 2

As in the first solution, consider a function ff satisfying the condition in the statement, and establish that f(2n)=4f(n)f(2n) = 4f(n), for all nn; in particular, f(0)=0f(0) = 0.

We now show by induction on mm that f(mn)=m2f(n)f(mn) = m^2 f(n) for all nn. By the preceding, this is clearly the case if m=0,1,2m = 0, 1, 2. For the induction step, let m>2m > 2.

Since m<m\sqrt{m} < m, if mm is a square, the conclusion follows by the induction hypothesis: f(mn)=f(m(mn))=mf(mn)=m2f(n)f(mn) = f(\sqrt{m}(\sqrt{m}n)) = m f(\sqrt{m} n) = m^2 f(n).

Otherwise, use Lagrange's four-square theorem to write m=A+Bm = A + B, where AA and BB 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 (w2+x2)(y2+z2)=(wy+xz)2+(wzxy)2(w^2 + x^2)(y^2 + z^2) = (wy + xz)^2 + (wz - xy)^2 repeatedly), to write 2AB=(12+12)AB=C2+D22AB = (1^2 + 1^2)AB = C^2 + D^2 for some non-negative integers CC and DD. Clearly, A<mA < m and B<mB < m; C2AB(A+B)/2=m/2<mC \le \sqrt{2AB} \le (A+B)/\sqrt{2} = m/\sqrt{2} < m, and similarly, D<mD < m. Setting a=An,b=Bn,c=Cna = An, b = Bn, c = Cn and d=Dnd = Dn in the functional relation and applying the induction hypothesis completes the induction step:
f(mn)=f((A+B)n)=f(An)+f(Bn)+f(Cn)+f(Dn)=A2f(n)+B2f(n)+C2f(n)+D2f(n)=(A2+B2+C2+D2)f(n)=(A2+B2+2AB)f(n)=(A+B)2f(n)=m2f(n), \begin{aligned} f(mn) &= f((A+B)n) = f(An) + f(Bn) + f(Cn) + f(Dn) \\ &= A^2 f(n) + B^2 f(n) + C^2 f(n) + D^2 f(n) = (A^2 + B^2 + C^2 + D^2)f(n) \\ &= (A^2 + B^2 + 2AB)f(n) = (A+B)^2 f(n) = m^2 f(n), \end{aligned}
for all non-negative integers nn.

Consequently, f(mn)=m2f(n)f(mn) = m^2 f(n) for all mm and all nn. Setting n=1n = 1 and k=f(1)k = f(1) concludes the proof.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.