Maths Olympiad Prep

Library / /461 of 462

Algebra Difficulty 7.8 National Olympiad, round 2 Prove it Ireland

Let Z+={1,2,3,4,}\mathbb{Z}_+ = \{1, 2, 3, 4, \dots\} be the set of all positive integers. Find, with proof, all functions f:Z+Z+f : \mathbb{Z}_+ \to \mathbb{Z}_+ with the property that
f(x+f(y)+f(f(z)))=z+f(y)+f(f(x)) f(x + f(y) + f(f(z))) = z + f(y) + f(f(x))
for all positive integers x,y,zx, y, z.

Solution

For simplicity write f2(x)=f(f(x))f^2(x) = f(f(x)), f3(x)=f(f(f(x)))f^3(x) = f(f(f(x))), etc. We first show
f2(x)=xfor all x>0 f^2(x) = x \quad \text{for all } x > 0
in two different ways.

Method 1, using injectivity. Suppose f(z1)=f(z2)f(z_1) = f(z_2). Replacing zz by z1z_1 or by z2z_2 leads to the same LHS of (2), hence the RHS must agree in both cases as well, i.e. z1+f(y)+f2(x)=z2+f(y)+f2(x)z_1 + f(y) + f^2(x) = z_2 + f(y) + f^2(x) which implies z1=z2z_1 = z_2, hence ff must be injective.

We make the RHS of (2) equal to z+f2(y)+f2(x)z + f^2(y) + f^2(x) in two different ways, in order to benefit from the injectivity of ff. Replacing yy by f(y)f(y) gives f(x+f2(y)+f2(z))=z+f2(y)+f2(x)f(x + f^2(y) + f^2(z)) = z + f^2(y) + f^2(x). Replacing xx by yy and yy by f(x)f(x) gives f(y+f2(x)+f2(z))=z+f2(x)+f2(y)f(y + f^2(x) + f^2(z)) = z + f^2(x) + f^2(y). Because the RHS is the same in both equations, and ff is injective, it follows that x+f2(y)+f2(z)=y+f2(x)+f2(z)x + f^2(y) + f^2(z) = y + f^2(x) + f^2(z), i.e. f2(x)x=f2(y)yf^2(x) - x = f^2(y) - y for all positive x,yx, y.

This means that f2(x)x=cf^2(x) - x = c is a constant that does not depend on xx. Setting t=1+f(1)+f2(1)t = 1 + f(1) + f^2(1), equation (2) with x=y=z=1x = y = z = 1 implies f(t)=tf(t) = t, hence f2(t)=tf^2(t) = t and f2(t)t=0f^2(t) - t = 0. Therefore c=0c = 0 and we have shown f2(x)=xf^2(x) = x for all x>0x > 0.

Method 2, using fixed points. (Tianci Yan) Putting x=zx = z in (2) gives
f(x+f(y)+f(f(x)))=x+f(y)+f(f(x)) f(x + f(y) + f(f(x))) = x + f(y) + f(f(x))
and this means that x+f(y)+f(f(x))x + f(y) + f(f(x)) is a fixed point for all x,y>0x, y > 0.

Let aa be any fixed point of ff. Putting x=y=ax = y = a in (2) gives
f(2a+f(f(z)))=z+2a, for z>0. f(2a + f(f(z))) = z + 2a, \text{ for } z > 0.

Putting y=z=ay = z = a in (2) gives
f(x+2a)=2a+f(f(x)), for x>0. f(x + 2a) = 2a + f(f(x)), \text{ for } x > 0.
Applying ff to both sides of the previous equation and using the earlier result gives
f(f(x+2a))=x+2a, for x>0. f(f(x + 2a)) = x + 2a, \text{ for } x > 0.
Replacing xx by x+2ax + 2a in the previous equation then gives
f(x+4a)=2a+f(f(x+2a))=x+4a, for x>0. f(x + 4a) = 2a + f(f(x + 2a)) = x + 4a, \text{ for } x > 0.
So f(w)=wf(w) = w, for all integers w>4aw > 4a. Pick such an integer w>4aw > 4a and put y=z=wy = z = w in the original equation (2) to get
f(x+f(w)+f(f(w)))=w+f(w)+f(f(x)) f(x + f(w) + f(f(w))) = w + f(w) + f(f(x))
which can be simplified to x+2w=f(x+2w)=2w+f(f(x))x + 2w = f(x + 2w) = 2w + f(f(x)) for x>0x > 0.
This shows that f(f(x))=xf(f(x)) = x for all x>0x > 0, which is f2(x)=xf^2(x) = x.

Having established f2(x)=xf^2(x) = x, we can complete the solution of the problem as follows. Given an integer n3n \ge 3, we set x=n2x = n - 2, y=f(1)y = f(1) and z=1z = 1 in (2). With the aid of f2(x)=xf^2(x) = x this becomes f(n)=nf(n) = n for all n3n \ge 3. Because of f2(x)=xf^2(x) = x, we then must have f(1)<3f(1) < 3 and f(2)<3f(2) < 3. Again from f2(x)=xf^2(x) = x we see that f(1)=2f(1) = 2 implies f(2)=1f(2) = 1 and vice versa. This leaves us with two possible solutions:
f1(n)=n for n0f2(n)=n for n3,f2(1)=2,f2(2)=1. \begin{aligned} f_1(n) &= n \text{ for } n \ge 0 \\ f_2(n) &= n \text{ for } n \ge 3, \quad f_2(1) = 2, \quad f_2(2) = 1. \end{aligned}
Clearly, f1f_1 satisfies (2). To verify the functional equation for f2f_2 we first note that x+f2(y)+f22(z)3x + f_2(y) + f_2^2(z) \ge 3, hence (2) is satisfied if and only if
x+f2(y)+f22(z)=z+f2(y)+f22(x), x + f_2(y) + f_2^2(z) = z + f_2(y) + f_2^2(x),
i.e. f22(x)x=f22(z)zf_2^2(x) - x = f_2^2(z) - z for all x,zZ+x, z \in \mathbb{Z}_+. Clearly f22(z)z=0f_2^2(z) - z = 0 for z3z \ge 3. Since f2(f2(1))=f2(2)=1f_2(f_2(1)) = f_2(2) = 1 and f2(f2(2))=f2(1)=2f_2(f_2(2)) = f_2(1) = 2 we see that indeed f22(x)x=0f_2^2(x) - x = 0 for all xZ+x \in \mathbb{Z}_+. This shows that f2f_2 is a solution as well.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.