Maths Olympiad Prep

Library / /50 of 91

Algebra Difficulty 6.1 National Olympiad Prove it India

Let nn be a natural number. We define sequences aia_i and bib_i as follows. We let a0=1a_0 = 1 and b0=nb_0 = n. For i>0i > 0, we let
(ai,bi)={(2ai1+1,bi1ai11)if ai1<bi1,(ai1bi11,2bi1+1)if ai1>bi1,(ai1,bi1)if ai1=bi1. (a_i, b_i) = \begin{cases} (2a_{i-1} + 1, b_{i-1} - a_{i-1} - 1) & \text{if } a_{i-1} < b_{i-1}, \\ (a_{i-1} - b_{i-1} - 1, 2b_{i-1} + 1) & \text{if } a_{i-1} > b_{i-1}, \\ (a_{i-1}, b_{i-1}) & \text{if } a_{i-1} = b_{i-1}. \end{cases}
Given that ak=bka_k = b_k for some natural number kk, prove that n+3n + 3 is a power of 2.

Solution

We first note that ai+bi=n+1a_i + b_i = n + 1 for all natural numbers ii. We define three sequences {ri}\{r_i\}, {si}\{s_i\}, {ti}\{t_i\} as follows. Let r0=1r_0 = 1, s0=t0=0s_0 = t_0 = 0. For i>0i > 0, we let
(ri,si,ti)={(2ri1,2si1,2ti1+1)if ai1<bi1,(2ri11,2si11,2ti11)if ai1>bi1,(ri1,si1,ti1)if ai1=bi1. (r_i, s_i, t_i) = \begin{cases} (2r_{i-1}, 2s_{i-1}, 2t_{i-1} + 1) & \text{if } a_{i-1} < b_{i-1}, \\ (2r_{i-1} - 1, 2s_{i-1} - 1, 2t_{i-1} - 1) & \text{if } a_{i-1} > b_{i-1}, \\ (r_{i-1}, s_{i-1}, t_{i-1}) & \text{if } a_{i-1} = b_{i-1}. \end{cases}
It is then easy to verify that ai=ria0+sib0+tia_i = r_i a_0 + s_i b_0 + t_i and bi=(1ri)a0+(1si)b0tib_i = (1 - r_i)a_0 + (1 - s_i)b_0 - t_i for all i0i \ge 0.

Now let kk be the smallest non-negative integer such that ak=bka_k = b_k. For any integer ll with 0lk0 \le l \le k we claim that rlsl=tl+12sl=2lr_l - s_l = t_l + 1 - 2s_l = 2^l. We prove this claim by induction on ll. The claim is straightforward to check for l=0l = 0. Now, suppose that the claim is true for some non-negative integer l<kl < k. Since l+1kl + 1 \le k it follows that (rl+1,sl+1,tl+1)(r_{l+1}, s_{l+1}, t_{l+1}) equals either (2rl,2sl,2tl+1)(2r_l, 2s_l, 2t_l + 1) or (2rl1,2sl1,2tl1)(2r_l - 1, 2s_l - 1, 2t_l - 1). In either case, rl+1sl+1=2(rlsl)r_{l+1} - s_{l+1} = 2(r_l - s_l) and tl+1+12sl+1=2(tl+12sl)t_{l+1} + 1 - 2s_{l+1} = 2(t_l + 1 - 2s_l). Hence the claim.

Now if ak=bka_k = b_k then rka0+skb0+tk=(1rk)a0+(1sk)b0tkr_k a_0 + s_k b_0 + t_k = (1 - r_k)a_0 + (1 - s_k)b_0 - t_k. This implies (2rk1)+2tk=(12sk)n(2r_k - 1) + 2t_k = (1 - 2s_k)n. Therefore (n+3)(12sk)=2(rksk)+2tk4sk+2=2k+2(n+3)(1 - 2s_k) = 2(r_k - s_k) + 2t_k - 4s_k + 2 = 2^{k+2}. Hence n+3n+3 is a power of 2. In fact, since 12sk1 - 2s_k is also a power of 2, it follows that sk=0s_k = 0 and hence n+3=2k+2n + 3 = 2^{k+2}.

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.