On the blackboard, my friend Arbi writes the number 1, 2, 3, and so on. What is the 1 millionth digit that he writes?
Note : Arbi writes so that 12345678910111213141516 and so on. So the 10th digit that he writes is '1', not '10'.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The following table show the total number of digits n for i t h term ( a i = i ) for i = 9 , 9 9 , 9 9 9 . . . , that is before the number of digits k of i increases by 1 :
k 1 2 3 4 5 6 7 8 9 i 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 k × 1 0 k 9 1 8 0 2 7 0 0 3 6 0 0 0 4 5 0 0 0 0 5 4 0 0 0 0 0 6 3 0 0 0 0 0 0 7 2 0 0 0 0 0 0 0 8 1 0 0 0 0 0 0 0 0 n 9 1 8 9 2 8 8 9 3 8 8 8 9 4 8 8 8 8 9 5 8 8 8 8 8 9 6 8 8 8 8 8 8 9 7 8 8 8 8 8 8 8 9 8 8 8 8 8 8 8 8 8 9
From the table, we can tell that for n = 1 0 0 0 0 0 0 , 9 9 9 9 9 < i < 9 9 9 9 9 9 and that:
i = 9 9 9 9 9 + ⌈ 6 1 0 0 0 0 0 0 − 4 8 8 8 8 9 ⌉ = 9 9 9 9 9 + ⌈ 6 5 1 1 1 1 1 ⌉
= 9 9 9 9 9 + ⌈ 8 5 1 8 5 . 1 6 6 6 7 ⌉ = 9 9 9 9 9 + 8 5 1 8 6 = 1 8 5 1 8 5
Let us check what is the n i − 1 of the last digit of i − 1 = 1 8 5 1 8 4 :
n i − 1 = 4 8 8 8 8 9 + 6 × 8 5 1 8 5 = 9 9 9 9 9 9
Therefore, for n = 1 0 0 0 0 0 0 or the 1 0 0 0 0 0 0 t h digit of the sequence is the first digit of 1 8 5 1 8 5 which is 1 .