Maths Olympiad Prep

Library / /44 of 63

, 2011

Number theory Difficulty 8.5 Shortlist Prove it Turkey

Let t(n)t(n) denote the sum of the digits in the binary representation of a positive integer nn, and let k2k \ge 2 be an integer.

a. Show that there exists a sequence (ai)i=1(a_i)_{i=1}^\infty of integers such that am3a_m \ge 3 is an odd integer and t(a1a2am)=kt(a_1 a_2 \cdots a_m) = k for all m1m \ge 1.

b. Show that there is an integer NN such that t(35(2m+1))>kt(3 \cdot 5 \cdots (2m + 1)) > k for all integers mNm \ge N.

Solution

a.
Let bn=2(k+1)nk12(k+1)n1=2(k+1)n(k1)++2(k+1)n+1b_n = \frac{2^{(k+1)n}k - 1}{2^{(k+1)n} - 1} = 2^{(k+1)n(k-1)} + \dots + 2^{(k+1)n} + 1 for n0n \ge 0 and
an=bnbn1=(2(k+1)nk1)(2(k+1)n11)(2(k+1)n1)(2(k+1)n1k1)for n1. a_n = \frac{b_n}{b_{n-1}} = \frac{(2^{(k+1)n}k - 1)(2^{(k+1)n-1} - 1)}{(2^{(k+1)n} - 1)(2^{(k+1)n-1}k - 1)} \quad \text{for } n \ge 1.
Since (2(k+1)n1,2(k+1)n1k1)=2((k+1)n,(k+1)n1)1=2(k+1)n11(2^{(k+1)n} - 1, 2^{(k+1)n-1}k - 1) = 2^{((k+1)n, (k+1)n-1)} - 1 = 2^{(k+1)n-1} - 1, ana_n is an integer and t(a1a2an)=t(bn)=kt(a_1a_2\dots a_n) = t(b_n) = k for all n1n \ge 1.

b.
It suffices to show that t(n(2r1))rt(n(2^r - 1)) \ge r for all positive integers nn and rr. We will use induction on nn.

* For n=1n = 1, t(n(2r1))=t(2r1)=rt(n(2^r - 1)) = t(2^r - 1) = r.
* Let n>1n > 1. If nn is even, then t(n(2r1))=t((n/2)(2r1))rt(n(2^r - 1)) = t((n/2)(2^r - 1)) \ge r by the induction hypothesis. Assume that n=2j+1n = 2j + 1 where jj is a positive integer. Then
t(n(2r1))=t((2j+1)(2r1))=t((2j+2)(2r1)2r+1)=t((2j+2)(2r1)2r)+1t((2j+2)(2r1))1+1=t((j+1)(2r1))r \begin{align*} t(n(2^r - 1)) &= t((2j + 1)(2^r - 1)) \\ &= t((2j + 2)(2^r - 1) - 2^r + 1) \\ &= t((2j + 2)(2^r - 1) - 2^r) + 1 \\ &\ge t((2j + 2)(2^r - 1)) - 1 + 1 \\ &= t((j + 1)(2^r - 1)) \\ &\ge r \end{align*}
where we used the induction hypothesis and the fact that t(i2r)t(i)1t(i - 2^r) \ge t(i) - 1 for i>2ri > 2^r.

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.