Maths Olympiad Prep

Library / /507 of 520

Algebra Difficulty 7.7 National olympiad, round 2 Prove it

Let Z0\mathbb{Z}_{\geqslant 0} be the set of all nonnegative integers. Find all the functions f:Z0Z0f: \mathbb{Z}_{\geqslant 0} \rightarrow \mathbb{Z}_{\geqslant 0} satisfying the relation
f(f(f(n)))=f(n+1)+1 f(f(f(n)))=f(n+1)+1
for all nZ0n \in \mathbb{Z}_{\geqslant 0}. (Serbia)

Solution

To start, we get from (*) that f4(n)=f(f3(n))=f(f(n+1)+1) and f4(n+1)=f3(f(n+1))=f(f(n+1)+1)+1 f^{4}(n)=f\left(f^{3}(n)\right)=f(f(n+1)+1) \quad \text { and } \quad f^{4}(n+1)=f^{3}(f(n+1))=f(f(n+1)+1)+1 thus f4(n)+1=f4(n+1). f^{4}(n)+1=f^{4}(n+1) . I. Let us denote by RiR_{i} the range of fif^{i}; note that R0=Z0R_{0}=\mathbb{Z}_{\geqslant 0} since f0f^{0} is the identity function. Obviously, R0R1R_{0} \supseteq R_{1} \supseteq \ldots Next, from (2) we get that if aR4a \in R_{4} then also a+1R4a+1 \in R_{4}. This implies that Z0\R4\mathbb{Z}_{\geqslant 0} \backslash R_{4} - and hence Z0\R1\mathbb{Z}_{\geqslant 0} \backslash R_{1} - is finite. In particular, R1R_{1} is unbounded. Assume that f(m)=f(n)f(m)=f(n) for some distinct mm and nn. Then from ()(*) we obtain f(m+1)=f(m+1)= f(n+1)f(n+1); by an easy induction we then get that f(m+c)=f(n+c)f(m+c)=f(n+c) for every c0c \geqslant 0. So the function f(k)f(k) is periodic with period mn|m-n| for kmk \geqslant m, and thus R1R_{1} should be bounded, which is false. So, ff is injective. II. Denote now Si=Ri1\RiS_{i}=R_{i-1} \backslash R_{i}; all these sets are finite for i4i \leqslant 4. On the other hand, by the injectivity we have nSif(n)Si+1n \in S_{i} \Longleftrightarrow f(n) \in S_{i+1}. By the injectivity again, ff implements a bijection between SiS_{i} and Si+1S_{i+1}, thus S1=S2=\left|S_{1}\right|=\left|S_{2}\right|=\ldots; denote this common cardinality by kk. If 0R30 \in R_{3} then 0=f(f(f(n)))0=f(f(f(n))) for some nn, thus from (*) we get f(n+1)=1f(n+1)=-1 which is impossible. Therefore 0R0\R3=S1S2S30 \in R_{0} \backslash R_{3}=S_{1} \cup S_{2} \cup S_{3}, thus k1k \geqslant 1. Next, let us describe the elements bb of R0\R3=S1S2S3R_{0} \backslash R_{3}=S_{1} \cup S_{2} \cup S_{3}. We claim that each such element satisfies at least one of three conditions (i)b=0,(ii)b=f(0)+1(i) b=0,(i i) b=f(0)+1, and (iii) b1S1b-1 \in S_{1}. Otherwise b1Z0b-1 \in \mathbb{Z}_{\geqslant 0}, and there exists some n>0n>0 such that f(n)=b1f(n)=b-1; but then f3(n1)=f(n)+1=bf^{3}(n-1)=f(n)+1=b, so bR3b \in R_{3}. This yields 3k=S1S2S31+1+S1=k+2, 3 k=\left|S_{1} \cup S_{2} \cup S_{3}\right| \leqslant 1+1+\left|S_{1}\right|=k+2, or k1k \leqslant 1. Therefore k=1k=1, and the inequality above comes to equality. So we have S1={a}S_{1}=\{a\}, S2={f(a)}S_{2}=\{f(a)\}, and S3={f2(a)}S_{3}=\left\{f^{2}(a)\right\} for some aZ0a \in \mathbb{Z}_{\geqslant 0}, and each one of the three options (i), (ii), and (iii) should be realized exactly once, which means that {a,f(a),f2(a)}={0,a+1,f(0)+1}. \left\{a, f(a), f^{2}(a)\right\}=\{0, a+1, f(0)+1\} . III. From (3), we get a+1{f(a),f2(a)}a+1 \in\left\{f(a), f^{2}(a)\right\} (the case a+1=aa+1=a is impossible). If a+1=f2(a)a+1=f^{2}(a) then we have f(a+1)=f3(a)=f(a+1)+1f(a+1)=f^{3}(a)=f(a+1)+1 which is absurd. Therefore f(a)=a+1 f(a)=a+1 Next, again from (3) we have 0{a,f2(a)}0 \in\left\{a, f^{2}(a)\right\}. Let us consider these two cases separately. Case 1. Assume that a=0a=0, then f(0)=f(a)=a+1=1f(0)=f(a)=a+1=1. Also from (3) we get f(1)=f2(a)=f(1)=f^{2}(a)= f(0)+1=2f(0)+1=2. Now, let us show that f(n)=n+1f(n)=n+1 by induction on nn; the base cases n1n \leqslant 1 are established. Next, if n2n \geqslant 2 then the induction hypothesis implies n+1=f(n1)+1=f3(n2)=f2(n1)=f(n), n+1=f(n-1)+1=f^{3}(n-2)=f^{2}(n-1)=f(n), establishing the step. In this case we have obtained the first of two answers; checking that is satisfies (*) is straightforward. Case 2. Assume now that f2(a)=0f^{2}(a)=0; then by (3) we get a=f(0)+1a=f(0)+1. By (4) we get f(a+1)=f(a+1)= f2(a)=0f^{2}(a)=0, then f(0)=f3(a)=f(a+1)+1=1f(0)=f^{3}(a)=f(a+1)+1=1, hence a=f(0)+1=2a=f(0)+1=2 and f(2)=3f(2)=3 by (4). To summarize, f(0)=1,f(2)=3,f(3)=0. f(0)=1, \quad f(2)=3, \quad f(3)=0 . Now let us prove by induction on mm that (1) holds for all n=4k,4k+2,4k+3n=4 k, 4 k+2,4 k+3 with kmk \leqslant m and for all n=4k+1n=4 k+1 with k<mk<m. The base case m=0m=0 is established above. For the step, assume that m1m \geqslant 1. From (*) we get f3(4m3)=f(4m2)+1=4mf^{3}(4 m-3)=f(4 m-2)+1=4 m. Next, by (2) we have f(4m)=f4(4m3)=f4(4m4)+1=f3(4m3)+1=4m+1. f(4 m)=f^{4}(4 m-3)=f^{4}(4 m-4)+1=f^{3}(4 m-3)+1=4 m+1 . Then by the induction hypothesis together with (*) we successively obtain f(4m3)=f3(4m1)=f(4m)+1=4m+2,f(4m+2)=f3(4m4)=f(4m3)+1=4m+3,f(4m+3)=f3(4m3)=f(4m2)+1=4m, \begin{aligned} & f(4 m-3)=f^{3}(4 m-1)=f(4 m)+1=4 m+2, \\ & f(4 m+2)=f^{3}(4 m-4)=f(4 m-3)+1=4 m+3, \\ & f(4 m+3)=f^{3}(4 m-3)=f(4 m-2)+1=4 m, \end{aligned} thus finishing the induction step. Finally, it is straightforward to check that the constructed function works: f3(4k)=4k+7=f(4k+1)+1,f3(4k+1)=4k+4=f(4k+2)+1,f3(4k+2)=4k+1=f(4k+3)+1,f3(4k+3)=4k+6=f(4k+4)+1. \begin{aligned} & f^{3}(4 k)=4 k+7=f(4 k+1)+1, \quad f^{3}(4 k+1)=4 k+4=f(4 k+2)+1, \\ & f^{3}(4 k+2)=4 k+1=f(4 k+3)+1, \quad f^{3}(4 k+3)=4 k+6=f(4 k+4)+1 . \end{aligned}

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.