Assume that all positive integers are written down consecutively from left to right as in 1234567891011...... The 6389th digit in this sequence is
Assume that all positive integers are written down consecutively from left to right as in 1234567891011...... The 6389th digit in this sequence is
Entered answer:
Solution
The sequence is: 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 ...
Each number contributes a different number of digits depending on how many digits it has. So we group numbers by their digit-length and count how many digits each group contributes, until we reach the digit.
| Range | How many numbers? | Digits per number | Total digits used |
|---|---|---|---|
How do we get numbers from to ? → . Same logic: .
Digits used up through all -digit numbers:
digits
We've only used digits so far, and we need the digit. So we still need more digits from the -digit numbers.
Digits remaining:
digits
These digits will come from -digit numbers (starting from ). Each -digit number uses digits, so:
(exactly, no remainder)
So we need exactly complete four-digit numbers.
Since the division is exact, we land perfectly on the last digit of the four-digit number.
If there was a remainder — say we got remainder — that would mean after writing complete -digit numbers, we'd still need more digits, which would be the and digits of the four-digit number.
The first -digit number is , so:
four-digit number
Why subtract ? Because itself is already the number, so the number is , not .
Since had no remainder, we land exactly on the last digit of .
The last digit of is .
The digit is .
Related questions:
IPMAT Indore 2022
IPMAT Indore 2025
IPMAT Indore 2023