Anti Champernowne

Logic Level 2

12345678910111213141516 12345678910111213141516 \ldots

The number above shows a concatenating of the natural numbers in ascending order. What is the 2838 3 rd 28383^\text{rd} digit from the left (1 being the first) of the number above?


The answer is 3.

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.

4 solutions

Sunil Gupta
Mar 20, 2015

single digit numbers- total number of digits = 9.
2 digit numbers- total number of digits = 2x90 =180.
3 digit numbers- total number of digits = 3x900 =2700.
sum of these = 9+180+2700=2889.
4 digit numbers- total number of digits = 4x9000 =36000.
hence the 28383 rd digit belongs to a four digit number.
28383-2889=25494.
the 25494th digit of all 4 digit number is required dividing 25494 by 4 gives a quotient of 6373 and a remainder of 2. Hence the 28383rd term is the second digit of 6374 which is 3.
hence answer is 3.


the 28383rd term is second digit of 7373 and not of 6374 so check your calculations after dividing 25494 by 4 and getting 6373 u forgot to add the 999 whose sum of no of digits you have subtracted from the total no of digits when you add 999 to 6373 you get 7372 and thus the required answer is second digit of 7373 which is also 3 (is that a coincidence??? Well definitely not)

Arpit Singh - 5 years, 9 months ago

Log in to reply

I did it right, first you have to remove 1,2,3 digits numbers that's why i subtract 2889.

Sunil Gupta - 5 years, 8 months ago

Log in to reply

You are wrong

Kushagra Sahni - 5 years, 8 months ago

You are absolutely right I also solved the same way. Sunil Gupta is absolutely wrong.

Kushagra Sahni - 5 years, 8 months ago

I think it is the second digit of 7373. When you get 6373 R2 you are finding out how many numbers you need to go up (past 1000). If you don't believe me (and Arpit Singh) look at the following example:

What is the 12th digit of all 4 digit numbers? Well 12/4=3 so you need to go 3 numbers up from 1000 (including 1000) and you get 1002. Then, since there is no remainder, you don't need to go up any partial amounts of numbers, so you get 2. Listing out the numbers 100010011002, we can see this to be the case.

As for our problem 6373 numbers up from 1000 is 7372. Then you must go two numbers past that into the second digit of 7373.

Ethan Ooamii - 5 years, 6 months ago

Wrong, Arpit Singh is right

Kushagra Sahni - 5 years, 8 months ago

wow, brilliant solution, at first sight at the problem, I cannot think of a way to give the answer, I thought there's no solution. , but you made it. thank you. (:

Hubert Hernandez Jr. - 5 years, 9 months ago

...737273737374...

The second 3 of 7373 is the 28383rd.

Lu Chee Ket - 5 years, 6 months ago

The first 4 4- digit number is 1000 1000 , so the 6373 r d 6373rd 4 4- digit number will be 7372 7372 .
The remainder then obtained is 2 2 , as you wrote, so the next four digits are 7373 7373 , returning the answer as 3 3 .

Shourya Pandey - 5 years, 2 months ago

should be 7373^^ (and second term is indeed 3)

Arvo Muñoz - 3 years, 6 months ago

Arpit Singh is right

Arka Dutta - 2 years, 2 months ago
Brock Brown
Mar 20, 2015

Python 2.7:

1
2
3
4
5
6
number = ''
new = 1
while len(number) <= 28383:
    number = number + str(new)
    new += 1
print 'Answer:', number[28382]

in response to brock brown solution is not like this(if it is, your answer will have been one of the choices)

Sunil Gupta - 6 years, 2 months ago

Log in to reply

It is one of the choices; the program outputs 3 \boxed{3} , the 28383th digit of 12345678910111213... 12345678910111213...

Brock Brown - 6 years, 2 months ago

Log in to reply

ya you are right i understad :)

Sunil Gupta - 6 years, 2 months ago

Log in to reply

@Sunil Gupta I am confused what is the actual solution? And answer?

Shyambhu Mukherjee - 5 years, 6 months ago

pff I prefer javaa

Axel Ordóñez - 5 years, 9 months ago
Eeshan Khan
Nov 25, 2015

Let's look at a solution involving the value of subsequent nos in the sequence. There are 9 singles, 90 doubles, 900 triples, 9999 quad digit nos and so on.The no of digits done so far is 9999+900+99+9=11007. 28383-11007=17376. Divide it by 4 to know the value of the no. Needed in the sequence to cover the gap.Add it to 9999 to get 14343, with last digit 3. BTW, such questions should actually be in a school level programming test

Lisandro Rainone
Sep 25, 2018
  • The number of digits of the first 9999 numbers is: 9 + 90x2 + 900x3 + 9000x4 = 38889.
  • We can deduct that our answer is in a 4-digit number, so we can subtract multiples of 4 to 38889 so as to get the closest number to 28383 38889 - 4x2000 = 30889 ; 30889 - 4x600 = 28489 ; 28489 - 4x25 = 28389 ; 28389 - 4x2 = 28381
  • Now we sum: 2000+600+25+2=2627.
  • So the 28381st digit number will be the last digit number of 9999-2627=7372.
  • The next number will be 7373, so the 28383rd digit number is 3

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...