Donate to Remove ads

Got a credit card? use our Credit Card & Finance Calculators

Thanks to Wasron,jfgw,Rhyd6,eyeball08,Wondergirly, for Donating to support the site

1,002,023

cinelli
Lemon Slice
Posts: 554
Joined: November 9th, 2016, 11:33 am
Has thanked: 235 times
Been thanked: 162 times

1,002,023

#621525

Postby cinelli » October 19th, 2023, 10:23 am

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

UncleEbenezer
The full Lemon
Posts: 10818
Joined: November 4th, 2016, 8:17 pm
Has thanked: 1472 times
Been thanked: 3007 times

Re: 1,002,023

#621565

Postby UncleEbenezer » October 19th, 2023, 12:33 pm

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 :o

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.

cinelli
Lemon Slice
Posts: 554
Joined: November 9th, 2016, 11:33 am
Has thanked: 235 times
Been thanked: 162 times

Re: 1,002,023

#622333

Postby cinelli » October 22nd, 2023, 3:09 pm

Well done UncleEbenezer. You really have produced a model solution which cannot be improved.

Cinelli


Return to “Games, Puzzles and Riddles”

Who is online

Users browsing this forum: No registered users and 15 guests