Skip to main content
OlympiadHQ

Browse · MathNet

Print

Cesko-Slovacko-Poljsko 2006

2006 number theory

Problem

Prove, that for every integer there is a positive integer with following property: in decimal representation of one can find a block of exactly consecutive zeros, i.e. where , are nonzero digits.
Solution
First we show there are arbitrarily long blocks of zeros in powers of . To get at least zeros in , this power must be of the form with positive integers and having at most digits, i.e. . Thus it is sufficient to find with having residue less than modulo . By Euler's theorem for every positive integer we have (as ) Multiplying by we obtain for some positive integer . By previous we set and . We would like to have with . Such a value of exists definitely, e.g. (since ). It follows by presented, that in there is a block of at least zeros.

Let us take (for a given ) power of (say ) containing a block of exactly zeros with . We will study what happens to this block when considering subsequent powers, i.e. when multiplying the number with block by . For some nonzero digits we have Thus . The number has either the same number of digits as , 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 divisible by ). Globally the length of the block either decreases by , or does not change, or increases. Similarly when we will multiply by again and again, the length of the block in every step decreases at most by . Thus the only possibility how to avoid block of length is to remain the length more than . This is anyway impossible. Namely has in its prime factorization the prime with some exponent, say . When we times multiply by , 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 ). Hence after sufficient number of steps we obtain the power of with a block of exactly zeros.

Techniques

Fermat / Euler / Wilson theoremsPrime numbers