Skip to main contentSkip to solution

IPMAT Indore 2019 PYQsShort Answers (Quants). Free, no login required.

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

Correct Answer: 4

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 6389th6389^{th} digit.


RangeHow many numbers?Digits per numberTotal digits used
191 - 999119×1=99 \times 1 = 9
109910 - 9990902290×2=18090 \times 2 = 180
100999100 - 99990090033900×3=2700900 \times 3 = 2700
100099991000 - 999990009000449000×4=360009000 \times 4 = 36000

How do we get 9090 numbers from 1010 to 9999? → 9910+1=9099 - 10 + 1 = 90. Same logic: 999100+1=900999 - 100 + 1 = 900.


Digits used up through all 33-digit numbers:

9+180+2700=28899 + 180 + 2700 = 2889 digits

We've only used 28892889 digits so far, and we need the 6389th6389^{th} digit. So we still need more digits from the 44-digit numbers.


Digits remaining:

63892889=35006389 - 2889 = 3500 digits

These 35003500 digits will come from 44-digit numbers (starting from 10001000). Each 44-digit number uses 44 digits, so:

35004=875\dfrac{3500}{4} = 875 (exactly, no remainder)

So we need exactly 875875 complete four-digit numbers.

Since the division is exact, we land perfectly on the last digit of the 875th875^{th} four-digit number.

If there was a remainder — say we got 875875 remainder 22 — that would mean after writing 875875 complete 44-digit numbers, we'd still need 22 more digits, which would be the 1st1^{st} and 2nd2^{nd} digits of the 876th876^{th} four-digit number.


The first 44-digit number is 10001000, so:

875th875^{th} four-digit number =1000+8751=1874= 1000 + 875 - 1 = 1874

Why subtract 11? Because 10001000 itself is already the 1st1^{st} number, so the 875th875^{th} number is 1000+874=18741000 + 874 = 1874, not 1000+8751000 + 875.


Since 3500÷43500 \div 4 had no remainder, we land exactly on the last digit of 18741874.

The last digit of 18741874 is 44.


The 6389th6389^{th} digit is 44.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question