Maths Olympiad Prep

Track / Stage 7 / 36 of 300 #1436 of 1964

Problem 1436

National olympiad second round; IMO P1/P4
Algebra Difficulty 7.1 Find the answer

Determine all functions f:ZZf: \mathbb{Z} \rightarrow \mathbb{Z} satisfying f(f(m)+n)+f(m)=f(n)+f(3m)+2014 f(f(m)+n)+f(m)=f(n)+f(3 m)+2014 for all integers mm and nn. (Netherlands) Answer. There is only one such function, namely n2n+1007n \longmapsto 2 n+1007.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Official solution

Let ff be a function satisfying (1). Set C=1007C=1007 and define the function g:ZZg: \mathbb{Z} \rightarrow \mathbb{Z} by g(m)=f(3m)f(m)+2Cg(m)=f(3 m)-f(m)+2 C for all mZm \in \mathbb{Z}; in particular, g(0)=2Cg(0)=2 C. Now (1) rewrites as
f(f(m)+n)=g(m)+f(n) f(f(m)+n)=g(m)+f(n)
for all m,nZm, n \in \mathbb{Z}. By induction in both directions it follows that
f(tf(m)+n)=tg(m)+f(n) f(t f(m)+n)=t g(m)+f(n)
holds for all m,n,tZm, n, t \in \mathbb{Z}. Applying this, for any rZr \in \mathbb{Z}, to the triples (r,0,f(0))(r, 0, f(0)) and (0,0,f(r))(0,0, f(r)) in place of (m,n,t)(m, n, t) we obtain
f(0)g(r)=f(f(r)f(0))f(0)=f(r)g(0) f(0) g(r)=f(f(r) f(0))-f(0)=f(r) g(0)
Now if f(0)f(0) vanished, then g(0)=2C>0g(0)=2 C>0 would entail that ff vanishes identically, contrary to (1). Thus f(0)0f(0) \neq 0 and the previous equation yields g(r)=αf(r)g(r)=\alpha f(r), where α=g(0)f(0)\alpha=\frac{g(0)}{f(0)} is some nonzero constant.
So the definition of gg reveals f(3m)=(1+α)f(m)2Cf(3 m)=(1+\alpha) f(m)-2 C, i.e.,
f(3m)β=(1+α)(f(m)β) f(3 m)-\beta=(1+\alpha)(f(m)-\beta)
for all mZm \in \mathbb{Z}, where β=2Cα\beta=\frac{2 C}{\alpha}. By induction on kk this implies
f(3km)β=(1+α)k(f(m)β) f\left(3^{k} m\right)-\beta=(1+\alpha)^{k}(f(m)-\beta)
for all integers k0k \geqslant 0 and mm. Since 320143 \nmid 2014, there exists by (1) some value d=f(a)d=f(a) attained by ff that is not divisible by 3. Now by (2) we have f(n+td)=f(n)+tg(a)=f(n)+αtf(a)f(n+t d)=f(n)+t g(a)=f(n)+\alpha \cdot t f(a), i.e.,
f(n+td)=f(n)+αtd f(n+t d)=f(n)+\alpha \cdot t d
for all n,tZn, t \in \mathbb{Z}. Let us fix any positive integer kk with d(3k1)d \mid\left(3^{k}-1\right), which is possible, since gcd(3,d)=1\operatorname{gcd}(3, d)=1. E.g., by the Euler-Fermat theorem, we may take k=φ(d)k=\varphi(|d|). Now for each mZm \in \mathbb{Z} we get
f(3km)=f(m)+α(3k1)m f\left(3^{k} m\right)=f(m)+\alpha\left(3^{k}-1\right) m
from (5), which in view of (4) yields ((1+α)k1)(f(m)β)=α(3k1)m\left((1+\alpha)^{k}-1\right)(f(m)-\beta)=\alpha\left(3^{k}-1\right) m. Since α0\alpha \neq 0, the right hand side does not vanish for m0m \neq 0, wherefore the first factor on the left hand side cannot vanish either. It follows that
f(m)=α(3k1)(1+α)k1m+β f(m)=\frac{\alpha\left(3^{k}-1\right)}{(1+\alpha)^{k}-1} \cdot m+\beta
So ff is a linear function, say f(m)=Am+βf(m)=A m+\beta for all mZm \in \mathbb{Z} with some constant AQA \in \mathbb{Q}. Plugging this into (1) one obtains (A22A)m+(Aβ2C)=0\left(A^{2}-2 A\right) m+(A \beta-2 C)=0 for all mm, which is equivalent to the conjunction of
A2=2A and Aβ=2C A^{2}=2 A \quad \text { and } \quad A \beta=2 C
The first equation is equivalent to A{0,2}A \in\{0,2\}, and as C0C \neq 0 the second one gives
A=2 and β=C A=2 \quad \text { and } \quad \beta=C
This shows that ff is indeed the function mentioned in the answer and as the numbers found in (7) do indeed satisfy the equations (6) this function is indeed as desired.
Comment 1. One may see that α=2\alpha=2. A more pedestrian version of the above solution starts with a direct proof of this fact, that can be obtained by substituting some special values into (1), e.g., as follows.
Set D=f(0)D=f(0). Plugging m=0m=0 into (1) and simplifying, we get
f(n+D)=f(n)+2C f(n+D)=f(n)+2 C
for all nZn \in \mathbb{Z}. In particular, for n=0,D,2Dn=0, D, 2 D we obtain f(D)=2C+D,f(2D)=f(D)+2C=4C+Df(D)=2 C+D, f(2 D)=f(D)+2 C=4 C+D, and f(3D)=f(2D)+2C=6C+Df(3 D)=f(2 D)+2 C=6 C+D. So substituting m=Dm=D and n=rDn=r-D into (1) and applying (8) with n=rDn=r-D afterwards we learn
f(r+2C)+2C+D=(f(r)2C)+(6C+D)+2C f(r+2 C)+2 C+D=(f(r)-2 C)+(6 C+D)+2 C
i.e., f(r+2C)=f(r)+4Cf(r+2 C)=f(r)+4 C. By induction in both directions it follows that
f(n+2Ct)=f(n)+4Ct f(n+2 C t)=f(n)+4 C t
holds for all n,tZn, t \in \mathbb{Z}. Claim. If aa and bb denote two integers with the property that f(n+a)=f(n)+bf(n+a)=f(n)+b holds for all nZn \in \mathbb{Z}, then b=2ab=2 a. Proof. Applying induction in both directions to the assumption we get f(n+ta)=f(n)+tbf(n+t a)=f(n)+t b for all n,tZn, t \in \mathbb{Z}. Plugging (n,t)=(0,2C)(n, t)=(0,2 C) into this equation and (n,t)=(0,a)(n, t)=(0, a) into (9)(9) we get f(2aC)f(0)=f(2 a C)-f(0)= 2bC=4aC2 b C=4 a C, and, as C0C \neq 0, the claim follows.
Now by (1), for any mZm \in \mathbb{Z}, the numbers a=f(m)a=f(m) and b=f(3m)f(m)+2Cb=f(3 m)-f(m)+2 C have the property mentioned in the claim, whence we have
f(3m)C=3(f(m)C). f(3 m)-C=3(f(m)-C) .
In view of (3) this tells us indeed that α=2\alpha=2. Now the solution may be completed as above, but due to our knowledge of α=2\alpha=2 we get the desired formula f(m)=2m+Cf(m)=2 m+C directly without having the need to go through all linear functions. Now it just remains to check that this function does indeed satisfy (1).
Comment 2. It is natural to wonder what happens if one replaces the number 2014 appearing in the statement of the problem by some arbitrary integer BB.
If BB is odd, there is no such function, as can be seen by using the same ideas as in the above solution.
If B0B \neq 0 is even, however, then the only such function is given by n2n+B/2n \longmapsto 2 n+B / 2. In case 3B3 \nmid B this was essentially proved above, but for the general case one more idea seems to be necessary. Writing B=3νkB=3^{\nu} \cdot k with some integers ν\nu and kk such that 3k3 \nmid k one can obtain f(n)=2n+B/2f(n)=2 n+B / 2 for all nn that are divisible by 3ν3^{\nu} in the same manner as usual; then one may use the formula f(3n)=3f(n)Bf(3 n)=3 f(n)-B to establish the remaining cases.
Finally, in case B=0B=0 there are more solutions than just the function n2nn \longmapsto 2 n. It can be shown that all these other functions are periodic; to mention just one kind of example, for any even integers rr and ss the function
f(n)={r if n is even, s if n is odd  f(n)= \begin{cases}r & \text { if } n \text { is even, } \\ s & \text { if } n \text { is odd }\end{cases}
also has the property under discussion.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.