Maths Olympiad Prep

Library / /6 of 7

Algebra Difficulty 6.6 National olympiad Prove it Russia

A sequence of integers is written on an infinite tape. The first number is 11; each number except the first one is obtained by adding to the previous number its minimal nonzero digit (in decimal representation). Find the number of digits in the decimal representation of the number at 9100010009 \cdot 1000^{1000}th place in this sequence.
(I. Bogdanov)

Solution

Answer: 30013001.

Since each number in the sequence, starting from the second, is greater than the previous one by at least 11, the 9100010009 \cdot 1000^{1000}-th number is at least 9100010009 \cdot 1000^{1000}, so it has at least 30013001 digits. Denote the nn-th number of the sequence by ana_n, and let kk be the smallest index such that aka_k has 30023002 digits. If we show that k>910001000k > 9 \cdot 1000^{1000}, then the 9100010009 \cdot 1000^{1000}-th number has at most 30013001 digits, i.e., exactly 30013001 digits.

Consider numbers from 00 to 103001110^{3001} - 1 that do not have any 11s in their decimal representation. Padding each on the left with zeros to 30013001 digits, we get all sequences of length 30013001 consisting of digits other than 11. There are 930019^{3001} such sequences. Thus, among the numbers a1,,ak1a_1, \dots, a_{k-1}, there are at most 930019^{3001} numbers without a 11 in their decimal representation (since all are at most 103001110^{3001} - 1).

Now consider the process of obtaining aka_k from a1a_1. At each of the k1k-1 steps, we add a number from 11 to 99, and the number of steps where we add something other than 11 does not exceed 930019^{3001}. Therefore,
1030011aka1993001+1(k193001)=k1+893001, 10^{3001} - 1 \leq a_k - a_1 \leq 9 \cdot 9^{3001} + 1 \cdot (k-1 - 9^{3001}) = k-1 + 8 \cdot 9^{3001},
from which
k103001893001. k \geq 10^{3001} - 8 \cdot 9^{3001}.
It remains to show that 103001893001>910300010^{3001} - 8 \cdot 9^{3001} > 9 \cdot 10^{3000}. For this, it suffices to prove that 93002<1030009^{3002} < 10^{3000}. Note that 97=4782969<51069^7 = 4782969 < 5 \cdot 10^6, so 928<541024<10279^{28} < 5^4 \cdot 10^{24} < 10^{27} and 95<10549^5 < 10^{54}. Therefore,
93002=9592946<1054102946=103000. 9^{3002} = 9^5 \cdot 9^{2946} < 10^{54} \cdot 10^{2946} = 10^{3000}.

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.