Maths Olympiad Prep

Library / TSExams /3 of 6

TSExams

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)={(2ai−1+1,bi−1−ai−1−1)if ai−1<bi−1,(ai−1−bi−1−1,2bi−1+1)if ai−1>bi−1,(ai−1,bi−1)if ai−1=bi−1. (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)={(2ri−1,2si−1,2ti−1+1)if ai−1<bi−1,(2ri−1−1,2si−1−1,2ti−1−1)if ai−1>bi−1,(ri−1,si−1,ti−1)if ai−1=bi−1. (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=(1−ri)a0+(1−si)b0−tib_i = (1 - r_i)a_0 + (1 - s_i)b_0 - t_i for all i≥0i \ge 0.

Now let kk be the smallest non-negative integer such that ak=bka_k = b_k. For any integer ll with 0≤l≤k0 \le l \le k we claim that rl−sl=tl+1−2sl=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+1≤kl + 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 (2rl−1,2sl−1,2tl−1)(2r_l - 1, 2s_l - 1, 2t_l - 1). In either case, rl+1−sl+1=2(rl−sl)r_{l+1} - s_{l+1} = 2(r_l - s_l) and tl+1+1−2sl+1=2(tl+1−2sl)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=(1−rk)a0+(1−sk)b0−tkr_k a_0 + s_k b_0 + t_k = (1 - r_k)a_0 + (1 - s_k)b_0 - t_k. This implies (2rk−1)+2tk=(1−2sk)n(2r_k - 1) + 2t_k = (1 - 2s_k)n. Therefore (n+3)(1−2sk)=2(rk−sk)+2tk−4sk+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 1−2sk1 - 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,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.