Maths Olympiad Prep

Track / Stage 6 / 179 of 400 #1659 of 2444

Problem 1659

National Olympiad, first round
Algebra Difficulty 6.3 Prove it Indian National Mathematical Olympiad · India

Let N\mathbb{N} denote the set of all natural numbers. Define a function T:NNT: \mathbb{N} \to \mathbb{N} by T(2k)=kT(2k) = k and T(2k+1)=2k+2T(2k + 1) = 2k + 2. We write T2(n)=T(T(n))T^2(n) = T(T(n)) and in general Tk(n)=Tk1(T(n))T^k(n) = T^{k-1}(T(n)) for any k>1k > 1.
(i) Show that for each nNn \in \mathbb{N}, there exists kk such that Tk(n)=1T^k(n) = 1.
(ii) For kNk \in \mathbb{N}, let ckc_k denote the number of elements in the set {n:Tk(n)=1}\{n : T^k(n) = 1\}. Prove that ck+2=ck+1+ckc_{k+2} = c_{k+1} + c_k, for k1k \ge 1.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Next problem →

Official solution

(i) For n=1n = 1, we have T(1)=2T(1) = 2 and T2(1)=T(2)=1T^2(1) = T(2) = 1. Hence we may assume that n>1n > 1.
Suppose n>1n > 1 is even. Then T(n)=n/2T(n) = n/2. We observe that (n/2)n1(n/2) \le n - 1 for n>1n > 1.
Suppose n>1n > 1 is odd so that n3n \ge 3. Then T(n)=n+1T(n) = n + 1 and T2(n)=(n+1)/2T^2(n) = (n + 1)/2. Again we see that (n+1)/2(n1)(n + 1)/2 \le (n - 1) for n3n \ge 3.
Thus we see that in at most 2(n1)2(n-1) steps TT sends nn to 1. Hence k2(n1)k \le 2(n-1). (Here 2(n1)2(n-1) is only a bound. In reality, less number of steps will do.)

(ii) We show that cn=fn+1c_n = f_{n+1}, where fnf_n is the nn-th Fibonacci number.
Let nNn \in \mathbb{N} and let kNk \in \mathbb{N} be such that Tk(n)=1T^k(n) = 1. Here nn can be odd or even. If nn is even, it can be either of the form 4d+24d + 2 or of the form 4d4d.
If nn is odd, then 1=Tk(n)=Tk1(n+1)1 = T^k(n) = T^{k-1}(n+1). (Observe that k>1k > 1; otherwise we get n+1=1n+1 = 1 which is impossible since nNn \in \mathbb{N}.) Here n+1n+1 is even.
If n=4d+2n = 4d + 2, then again 1=Tk(4d+2)=Tk1(2d+1)1 = T^k(4d + 2) = T^{k-1}(2d + 1). Here 2d+1=n/22d + 1 = n/2 is odd.
Thus each solution of Tk1(m)=1T^{k-1}(m) = 1 produces exactly one solution of Tk(n)=1T^k(n) = 1 and nn is either odd or of the form 4d+24d + 2.
If n=4dn = 4d, we see that 1=Tk(4d)=Tk1(2d)=Tk2(d)1 = T^k(4d) = T^{k-1}(2d) = T^{k-2}(d). This shows that each solution of Tk2(m)=1T^{k-2}(m) = 1 produces exactly one solution of Tk(n)=1T^k(n) = 1 of the form 4d4d.
Thus the number of solutions of Tk(n)=1T^k(n) = 1 is equal to the number of solutions of Tk1(m)=1T^{k-1}(m) = 1 and the number of solutions of Tk2(l)=1T^{k-2}(l) = 1 for k>2k > 2. This shows that ck=ck1+ck2c_k = c_{k-1} + c_{k-2} for k>2k > 2. We also observe that 2 is the only number which goes to 1 in one step and 4 is the only number which goes to 1 in two steps. Hence c1=1c_1 = 1 and c2=2c_2 = 2. This proves that cn=fn+1c_n = f_{n+1} for all nNn \in \mathbb{N}.

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