Maths Olympiad Prep

Library / Baltic Way Shortlist /64 of 92

Baltic Way Shortlist, 2021

Algebra Difficulty 8.6 Shortlist Prove it Baltic Way

Find all k∈Zk \in \mathbb{Z} such that there exists a function f:Z→Zf : \mathbb{Z} \to \mathbb{Z} satisfying
f(f(n))=n+k f(f(n)) = n + k
for all n∈Zn \in \mathbb{Z}.

Solution

If k∈Zk \in \mathbb{Z} is even then for f:Z→Zf : \mathbb{Z} \to \mathbb{Z}, f(x)=x+k2f(x) = x + \frac{k}{2} we get:
f(f(n))=(n+k2)+k2=n+k f(f(n)) = \left(n + \frac{k}{2}\right) + \frac{k}{2} = n + k
For kk even it is therefore possible to find function f:Z→Zf : \mathbb{Z} \to \mathbb{Z} with the property that f(f(n))=n+kf(f(n)) = n + k for all n∈Zn \in \mathbb{Z}. It can therefore be assumed that kk is odd, in particular kk is non-zero.
For all n∈Zn \in \mathbb{Z} we get following:
f(n)−n=(f(n)+k)−(n+k)=f(f(f(n)))−(n+k)=f(n+k)−(n+k) f(n) - n = (f(n) + k) - (n + k) = f(f(f(n))) - (n + k) = f(n + k) - (n + k)
Using induction it can be shown that f(n+m⋅k)−(n+m⋅k)=f(n)−nf(n + m \cdot k) - (n + m \cdot k) = f(n) - n for all m∈Nm \in \mathbb{N}. If p,q∈Zp, q \in \mathbb{Z}, and p≡q(mod ∣k∣)p \equiv q(\text{mod } |k|) then there is a natural number mm such that p=q+m⋅kp = q + m \cdot k or q=p+m⋅kq = p + m \cdot k. In either case f(m)−m=f(n)−nf(m) - m = f(n) - n,
equivalently f(m)−f(n)=m−nf(m) - f(n) = m - n. As m≡n(mod∣k∣)m \equiv n \pmod{|k|}, f(m)−f(n)=m−n≡0(mod∣k∣)f(m) - f(n) = m - n \equiv 0 \pmod{|k|}, that is f(m)≡f(n)(mod∣k∣)f(m) \equiv f(n) \pmod{|k|}.
If m∈Zm \in \mathbb{Z}, f(f(m−k))=(m−k)+k=mf(f(m-k)) = (m-k)+k = m so mm is in the image of ff. As mm is arbitrary this means that ff is surjective. If m,n∈Zm, n \in \mathbb{Z} and f(m)=f(n)f(m) = f(n), we get:
m=(m+k)−k=f(f(m))−k=f(f(n))−k=(n+k)−k=n, m = (m + k) - k = f(f(m)) - k = f(f(n)) - k = (n + k) - k = n,
that is ff is injective. As ff is both injective and surjective it is bijective. Assume m,n∈Zm, n \in \mathbb{Z} and f(m)≡f(n)(mod∣k∣)f(m) \equiv f(n) \pmod{|k|}. Then
m≡m+k≡f(f(m))≡f(f(n))≡n+k≡n(mod∣k∣) m \equiv m + k \equiv f(f(m)) \equiv f(f(n)) \equiv n + k \equiv n \pmod{|k|}
Let h:{0,1,…,∣k∣−1}→{0,1,…,∣k∣−1}:x↦(f(x)(mod∣k∣))h : \{0, 1, \dots, |k| - 1\} \to \{0, 1, \dots, |k| - 1\} : x \mapsto (f(x) \pmod{|k|}). From last equation we infer that hh is injective. As
h(h(n))=f(f(n)(mod∣k∣))(mod∣k∣)=f(f(n))(mod∣k∣)=(n+k)(mod∣k∣)=n h(h(n)) = f(f(n) \pmod{|k|}) \pmod{|k|} = f(f(n)) \pmod{|k|} = (n + k) \pmod{|k|} = n
for all n∈{0,1,…,∣k∣−1}n \in \{0, 1, \dots, |k| - 1\}. That is hh is an involution and we see that hh is bijective. Assume hh has a fixed point n0n_0. As n0=h(n0)=f(n0)(mod∣k∣)n_0 = h(n_0) = f(n_0) \pmod{|k|} we conclude that f(n0)−n0=m⋅∣k∣f(n_0) - n_0 = m \cdot |k| where m∈Zm \in \mathbb{Z}.
It has already been shown that f(n0+m⋅∣k∣)−(n0+m⋅∣k∣)=f(n0)−n0=m⋅∣k∣f(n_0 + m \cdot |k|) - (n_0 + m \cdot |k|) = f(n_0) - n_0 = m \cdot |k| so:
k=f(f(n0))−n0=(f(f(n0))−f(n0))+(f(n0)−n0)=(f(n0+m⋅∣k∣)−(n0+m⋅∣k∣))+m⋅∣k∣=m⋅∣k∣+m⋅∣k∣=2⋅m∣k∣ \begin{aligned} k &= f(f(n_0)) - n_0 \\ &= (f(f(n_0)) - f(n_0)) + (f(n_0) - n_0) \\ &= (f(n_0 + m \cdot |k|) - (n_0 + m \cdot |k|)) + m \cdot |k| \\ &= m \cdot |k| + m \cdot |k| \\ &= 2 \cdot m |k| \end{aligned}
This implies ∣k∣=2∣m∣∣k∣|k| = 2|m||k|. As k≠0k \neq 0 we get 2∣m∣=12|m| = 1 which is impossible as 1 is odd. The assumption that n0n_0 is a fixed point of hh must therefore be false.
Given n∈Zn \in \mathbb{Z} h(n)≠nh(n) \neq n and h(h(n))=nh(h(n)) = n so the sets {n,h(n)}\{n, h(n)\} and {h(n),h(h(n))}\{h(n), h(h(n))\} are equal and each contains two distinct elements. Now
{0,1,…,∣k∣−1}=⋃{{n,h(n)}∣n∈{0,1,…,∣k∣−1}}. \{0, 1, \dots, |k| - 1\} = \bigcup \{\{n, h(n)\} | n \in \{0, 1, \dots, |k| - 1\}\}.
As each subset of A:={{n,h(n)}∣n∈{0,1,…,∣k∣−1}}A := \{\{n, h(n)\} | n \in \{0, 1, \dots, |k| - 1\}\} contains two elements it follows that the union ⋃A={0,1,…,∣k∣−1}\bigcup A = \{0, 1, \dots, |k| - 1\} contains an even number of elements. The cardinality of {0,1,…,∣k∣−1}\{0, 1, \dots, |k| - 1\} is ∣k∣|k| which is odd and we get a contradiction. This shows that if kk is odd there is no function f:Z→Zf : \mathbb{Z} \to \mathbb{Z} such that f(f(n))=n+kf(f(n)) = n + k for all n∈Zn \in \mathbb{Z}.
Function f:Z→Zf : \mathbb{Z} \to \mathbb{Z} satisfying f(f(n))=n+kf(f(n)) = n + k for all n∈Zn \in \mathbb{Z} can therefore be found if and only if kk is even. □\square

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

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.