Suppose we write all natural numbers in order in a long line, with no gaps, like
12345678910111213141516171819202122...
What is the 1,002,023rd digit in this list?
Cinelli
Got a credit card? use our Credit Card & Finance Calculators
Thanks to gvonge,Shelford,GrahamPlatt,gpadsa,Steffers0, for Donating to support the site
1,002,023
-
- The full Lemon
- Posts: 10875
- Joined: November 4th, 2016, 8:17 pm
- Has thanked: 1478 times
- Been thanked: 3026 times
Re: 1,002,023
cinelli wrote:Suppose we write all natural numbers in order in a long line, with no gaps, like
12345678910111213141516171819202122...
What is the 1,002,023rd digit in this list?
Cinelli
Unusual for you. Neither computer nor brainpower required! Though plenty of scope for an off-by-one error below, and I'm not giving myself a headache to be too careful of that
The first nine digits are one-digit numbers.
The next 180 digits are 2*90 two-digit numbers.
The next 2700 are 3*900 three-digit numbers.
Etc.
Working with this observation, we can subtract from the left
1002023 - 9 = 1002014
1002014 - 180 = 1001834
1001834 - 2700 = 999134
999134 - 36000 = 963134
963134 - 450000 = 513134
So what we're looking for is the 513134th digit in a concatenation of six-digit numbers.
513134 / 6 = 85522 with remainder 2, so we want the second digit of the 85523rd six-digit number. That number is 185522, so the digit is an 8.
-
- Lemon Slice
- Posts: 560
- Joined: November 9th, 2016, 11:33 am
- Has thanked: 239 times
- Been thanked: 165 times
Re: 1,002,023
Well done UncleEbenezer. You really have produced a model solution which cannot be improved.
Cinelli
Cinelli
Return to “Games, Puzzles and Riddles”
Who is online
Users browsing this forum: No registered users and 2 guests