Maths Olympiad Prep

Library / /5 of 6

Algebra Difficulty 8.9 Shortlist Prove it Vietnam

Define the sequence (an)(a_n) as a1=1a_1 = 1, a2n=ana_{2n} = a_n and a2n+1=an+1a_{2n+1} = a_n + 1 for all positive integers nn.

a) Find all positive integers nn such that akn=ana_{kn} = a_n for all integers 1kn1 \le k \le n.

b) Prove that there are infinitely many positive integers mm such that akmama_{km} \ge a_m for all positive integers kk.

Solution

a)
We prove by induction on nn that an=s2(n)a_n = s_2(n) for all n1n \ge 1 where s2(n)s_2(n) is the sum of the digits of nn in binary representation.

The base case n=1n = 1 is trivial. Now, we assume that an=s2(n)a_n = s_2(n) is proved for n=1,2,,kn = 1, 2, \dots, k, and prove it for n=k+1n = k + 1.

We shall prove the statement for kk with some cases as follows.

2k+12 \mid k+1, let k+1=x1x2...xm1xm(2)k+1 = \overline{x_1x_2...x_{m-1}x_m}(2) with x1=1,xm=0x_1 = 1, x_m = 0.
It follows k+12=x1x2...xm1(2)\frac{k+1}{2} = \overline{x_1x_2...x_{m-1}}(2), so
ak+1=ak+12=s2(k+12)=s2(k+1). a_{k+1} = a_{\frac{k+1}{2}} = s_2\left(\frac{k+1}{2}\right) = s_2(k+1).
2k2 \mid k, let k+1=x1x2...xm1xm(2)k+1 = \overline{x_1x_2...x_{m-1}x_m}(2) with x1=1,xm=1x_1 = 1, x_m = 1.
It follows k2=x1x2...xm1(2)\frac{k}{2} = \overline{x_1x_2...x_{m-1}}(2), so
ak+1=ak2+1=s2(k2)+1=s2(k+1). a_{k+1} = a_{\frac{k}{2}} + 1 = s_2\left(\frac{k}{2}\right) + 1 = s_2(k+1).
Therefore in all cases, we always have ak+1=s2(k+1)a_{k+1} = s_2(k+1). So that an=s2(n)a_n = s_2(n) for all positive integers nn. We distinguish two cases regarding the value of nn.

Case 1. n<3n < 3, it is easy to see that n{1,2}n \in \{1, 2\} satisfied.

Case 2. n3n \ge 3, we investigate three subcases

Subcase 1. if n=100...0(2)n = \overline{100...0}(2) then choose k=3k=3, so kn=1100...0(2)kn = \overline{1100...0}(2), which is not satisfying an=akna_n = a_{kn}.

Subcase 2. if n=111...1(2)n = \overline{111...1}(2) then we will prove nn in this case satisfied. Assume that n=2t1n = 2^t - 1, with k<nk < n and kk is odd, expand k=x1x2...xt(2)k = \overline{x_1x_2...x_t}(2). We have
kn=x1x2...xt00...0(2)x1x2...xt0(2)=x1x2...xt10y1y2...yt11 kn = \overline{x_1x_2...x_t\overline{00...0}(2)} - \overline{x_1x_2...x_t\overline{0}(2)} = \overline{x_1x_2...x_{t-1}\overline{0y_1y_2...y_{t-1}}\overline{1}}
with number x1x2...xt00...0(2)\overline{x_1x_2...x_t\overline{00...0}(2)} have tt digits 0 after xtx_t and yi=1+xi(mod2)y_i = 1+x_i \pmod 2 for all i<ti < t because
y1y2...yt11(2)+x1x2...xt11=100...0(2)(mod2) (t numbers 0). \overline{y_1y_2...y_{t-1}}\overline{1}(2) + \overline{x_1x_2...x_{t-1}}\overline{1} = \overline{100...0}(2) \pmod{2} \text{ (t numbers 0).}
Thus, s2(kn)=1+0+i=1t1(xi+yi)=ts_2(kn) = 1+0+\sum_{i=1}^{t-1}(x_i+y_i) = t for all kk odd.

On the other hand, if kk is even then s2(kn)=s2(k2v2(k)n)=ts_2(kn) = s_2\left(\frac{k}{2^{v_2(k)}} \cdot n\right) = t.

Thus, s2(kn)=ts_2(kn) = t for all k<n+1k < n+1.

Subcase 3. nn does not have the form of 2t2^t or 2t12^t-1. Let n=2pqn = 2^p \cdot q where qq is odd and greater than 1, we have

* p>0p > 0, let n=x1x2xm000(2)n = \overline{x_1x_2\dots x_m00\dots0}_{(2)} with pp digits 0, so xm=1x_m = 1. Choose k=10001k = \overline{100\dots01} with k1k-1 digits 0, so
nk=2p(x1xm00(2)+x1xm(2))=2px1xmx1xm. nk = 2^p (\overline{x_1\dots x_m 0\dots 0}_{(2)} + \overline{x_1\dots x_m}_{(2)}) = 2^p \overline{x_1\dots x_m x_1\dots x_m}.
Therefore, s2(kn)=2s2(n)s_2(kn) = 2s_2(n), which is not satisfied.

* p=0p = 0, let n=x1x2xkxk+1xk+2xtn = \overline{x_1x_2\dots x_kx_{k+1}x_{k+2}\dots x_t}, with x1=1=xk+1=1x_1 = 1 = x_{k+1} = 1 and xk+2==xt=0x_{k+2} = \dots = x_t = 0 because tt does not have the form of 2t12^t - 1.
Choose k=10001(2)k = \overline{100\dots01}_{(2)} with t2t-2 digits 0. It follows that
kn=2t1n+n=x1x2xt000(2)+x1x2xt(2)=x1x2xk1000x2x3xt(2) \begin{aligned} kn &= 2^{t-1}n + n = \overline{x_1x_2\dots x_t00\dots0}_{(2)} + \overline{x_1x_2\dots x_t}_{(2)} \\ &= \overline{x_1x_2\dots x_k100\dots0x_2x_3\dots x_t}_{(2)} \end{aligned}
with x1x2xk1000x2x3xt(2)\overline{x_1x_2\dots x_k100\dots0x_2x_3\dots x_t}_{(2)} have tk+1t-k+1 digits 0 from ttht^{th} in the left to kthk^{th} in the right and x1x2xt000(2)\overline{x_1x_2\dots x_t00\dots0}_{(2)} have t1t-1 digits 0 at the end.
Thus, s2(kn)=s2(n)+x1+x2++xk>s2(n)s_2(kn) = s_2(n) + x_1 + x_2 + \dots + x_k > s_2(n) since x1=1x_1 = 1, which do not satisfied akn=ana_{kn} = a_n for all knk \le n.

Hence, there are only n=2n=2 and n=2t1n=2^t-1 satisfied.

b)
Choose m=2pm = 2^p, so am=1akma_m = 1 \le a_{km} for all positive integers kk.

\square

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 and solution reproduced as published; topic and difficulty added by this site.