The digits from 1 to 9 are written in order so that the digit n is written n times.
This forms the block of digits 1 2 2 3 3 3 4 4 4 4 ⋅ ⋅ ⋅ 9 9 9 9 9 9 9 9 9 .
The block is written 1 0 0 times.
What is the 2 0 1 8 t h digit written?
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.
T 1 1 2 T 2 2 3 3 T 3 3 4 4 4 T 4 4 ⋯ 9 9 9 9 9 9 9 9 T 9 9
Let the digit 1 to 9 be n . We note that the k th digit "position" of the last digit n is given by triangle number T n = 2 n ( n + 1 ) . For example, the last digit 1 is at T 1 = 2 1 ( 1 + 1 ) = 1 ; the last digit 2 is at T 2 = 2 2 ( 2 + 1 ) = 3 ; the last digit 4 is at T 4 = 2 4 ( 4 + 1 ) = 1 0 ; ... the last digit 9 is at T 9 = 2 9 ( 8 + 1 ) = 4 5 . The length of one block is therefore T 9 or 45. Therefore the positive of the 2018th digit in a block is given by 2 0 1 8 m o d 4 5 = 3 8 . Since 3 8 > T 8 = 2 8 ( 8 + 1 ) = 3 6 , the 2018th digit must be after 8 which is 9 .
Problem Loading...
Note Loading...
Set Loading...
Each block contains the sum of all the numbers from 1 to 9: 45.
Then, 2018 = 45 × 44 + 38.
So now, we just have to find the 38th number of a block, which is 9.