Maths Olympiad Prep

Library / /6 of 16

, 2006

Number theory Difficulty 6.0 AIME, harder Prove it Czech-Polish-Slovak Mathematical Match

Prove, that for every integer k1k \ge 1 there is a positive integer nn with following property: in decimal representation of 2n2^n one can find a block of exactly kk consecutive zeros, i.e.
2n=a000b, k zeros  2^n = \dots a \overline{00\dots0} b\dots, \quad \text{ $k$ zeros }
where aa, bb are nonzero digits.

Solution

First we show there are arbitrarily long blocks of zeros in powers of 22. To get at least kk zeros in 2n2^n, this power must be of the form y10m+k+zy \cdot 10^{m+k} + z with y,zy, z positive integers and zz having at most mm digits, i.e. z<10mz < 10^m. Thus it is sufficient to find n,mn, m with 2n2^n having residue less than 10m10^m modulo 10m+k10^{m+k}. By Euler's theorem for every positive integer tt we have (as (2,5t)=1(2, 5^t) = 1)
2φ(5t)1(mod5t). 2^{\varphi(5^t)} \equiv 1 \pmod{5^t}.
Multiplying by 2t2^t we obtain
2t+φ(5t)2t(mod10t),thus2t+φ(5t)y10t+2t 2^{t+\varphi(5^t)} \equiv 2^t \pmod{10^t}, \quad \text{thus} \quad 2^{t+\varphi(5^t)} \equiv y \cdot 10^t + 2^t
for some positive integer yy. By previous we set n=t+φ(5t)n = t + \varphi(5^t) and m=tkm = t - k. We would like to have tt with 2t<10tk2^t < 10^{t-k}. Such a value of tt exists definitely, e.g. t=2kt = 2k (since 22k=4k<10k2^{2k} = 4^k < 10^k). It follows by presented, that in
22k+φ(52k)=y102k+22k 2^{2k+\varphi(5^{2k})} = y \cdot 10^{2k} + 2^{2k}
there is a block of at least kk zeros.

Let us take (for a given kk) power of 22 (say 2n2^n) containing a block of exactly rr zeros with rkr \ge k. We will study what happens to this block when considering subsequent powers, i.e. when multiplying the number with block by 22. For some nonzero digits a,ba, b we have
2n=a 0 0 y0 b r zerosz=y10r+s+z. 2^n = \underbrace{\dots a \ 0 \ 0 \ \dots}_{y} \underbrace{\dots 0 \ b \ \dots}_{r \text{ zeros}} \underbrace{\dots}_{z} = y \cdot 10^{r+s} + z.
Thus 2n+1=2y10r+s+2z2^{n+1} = 2y \cdot 10^{r+s} + 2z. The number 2z2z has either the same number of digits as zz, or one more. Hence at the "right side" the block of zeros either does not cut down, or cut down by one zero. At the "left side" the block can only extend (when yy divisible by 55). Globally the length of the block either decreases by 11, or does not change, or increases. Similarly when we will multiply by 22 again and again, the length of the block in every step decreases at most by 11. Thus the only possibility how to avoid block of length kk is to remain the length more than kk. This is anyway impossible. Namely yy has in its prime factorization the prime 55 with some exponent, say α\alpha. When we α\alpha times multiply 2n2^n by 22, under the next multiplying the block will not extend at the "left side". At the "right side" at least under every fourth multiplying the block cut down (since 24>102^4 > 10). Hence after sufficient number of steps we obtain the power of 22 with a block of exactly kk zeros.

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.