Maths Olympiad Prep

Library / /279 of 462

Algebra Difficulty 6.0 National Olympiad Prove it Ireland

Find all functions f:ZZf : \mathbb{Z} \to \mathbb{Z} such that f(f(f(k)))=k+3f(f(f(k))) = k + 3 for all kZk \in \mathbb{Z}.

Solution

We use the notation fn:ZZ,nNf^n : \mathbb{Z} \to \mathbb{Z}, n \in \mathbb{N}, for the nn-fold iterate of ff. Note that
f(n+3)=f(f3(n))=f3(f(n))=f(n)+3 f(n + 3) = f(f^3(n)) = f^3(f(n)) = f(n) + 3
which, by an easy induction argument implies that
f(n+3k)=f(n)+3k,for all n,kZ.(20) f(n + 3k) = f(n) + 3k, \quad \text{for all } n, k \in \mathbb{Z}. \qquad (20)

It follows that once we know ff for a complete set of mod-3 representatives, such as {0,1,2}\{0, 1, 2\}, we know all values of ff. Furthermore, ff induces a function f3:Z3Z3f_3 : \mathbb{Z}_3 \to \mathbb{Z}_3: just work mod 3 on both the domain and image sides.
Moreover, ff cannot fix a residue class mod 3 since if f(n)=n+3mf(n) = n+3m, then (20) would imply that f2(n)=n+6mf^2(n) = n + 6m and f3(n)=n+9mf^3(n) = n + 9m, which is inconsistent with the identity f3(n)=n+3f^3(n) = n + 3. Thus, f3f_3 is a 3-cycle. Bearing in mind (20), it follows that ff is defined either by
f(n)={n+1+3i,n0(mod3),n+1+3j,n1(mod3),n+1+3k,n2(mod3),(21) f(n) = \begin{cases} n + 1 + 3i, & n \equiv 0 \pmod{3}, \\ n + 1 + 3j, & n \equiv 1 \pmod{3}, \\ n + 1 + 3k, & n \equiv 2 \pmod{3}, \end{cases} \qquad (21)
or
f(n)={n1+3i,n0(mod3),n1+3j,n1(mod3),n1+3k,n2(mod3),(22) f(n) = \begin{cases} n - 1 + 3i, & n \equiv 0 \pmod{3}, \\ n - 1 + 3j, & n \equiv 1 \pmod{3}, \\ n - 1 + 3k, & n \equiv 2 \pmod{3}, \end{cases} \qquad (22)
for some i,j,kZi, j, k \in \mathbb{Z}. In fact, the identity f3(n)=n+3f^3(n) = n + 3 allows us to compute kk in terms of i,ji, j in both cases: in (21), we must have k=ijk = -i - j while in (22), we must have k=2ijk = 2 - i - j.
With these equations, it is routine to check that all of these functions give solutions of the desired identity. In fact, this follows in (21) from the fact that f3f_3 is a 3-cycle so when we apply ff three times to any given number nn, we are adding 1+3i,1+3j1+3i, 1+3j, and 13i3j1-3i-3j in some order; the proof for (22) is similar.
Note that distinct pairs (i,j)(i, j) in either (21) or (22) give distinct functions (with kk specified as above), and also a function of type (21) never equals a function of type (22) since the associated function f3f_3 is different in both cases (but independent of ii and jj).

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.