UPSC CSAT 2025 Q48: Digit Position in Concatenated Numbers — Solved

What is the 489th digit in the number 123456789101112 . . . ?

  1. 0
  2. 3
  3. 6
  4. 9

Answer: (d) 9

Solution

  1. The number is formed by writing 1, 2, 3, … one after another. Split the digits into blocks by how many digits each number has.
  2. Single-digit block: 1 to 9 gives 9 numbers × 1 digit = 9 digits. This covers positions 1 to 9.
  3. Two-digit block: 10 to 99 gives 90 numbers × 2 digits = 180 digits. Running total = 9 + 180 = 189. This covers positions 10 to 189.
  4. Position 489 is beyond 189, so it falls in the three-digit block. Digits still needed = 489 − 189 = 300.
  5. Each three-digit number uses 3 digits. Divide: 300 ÷ 3 = 100, remainder 0.
  6. So exactly 100 complete three-digit numbers are written, and the 489th digit is the last digit of the 100th three-digit number.
  7. The three-digit numbers start at 100. The 100th one is 100 + (100 − 1) = 199. Do not write 100 + 100 = 200.
  8. With remainder 0, take the last digit of 199, which is 9.
  9. Check: 199 takes positions 487, 488 and 489 (digits 1, 9, 9). Then 200 takes positions 490, 491 and 492 (digits 2, 0, 0). Position 489 is 9.

Answer: 9

Option-wise explanation

  • a: incorrect — 0 comes from an off-by-one error. A student who takes the 100th three-digit number as 100 + 100 = 200 reads its last digit as 0. The 100th three-digit number is 199, and the 0s of 200 sit at positions 491 and 492.
  • b: incorrect — No consistent count puts a 3 at position 489. The digits around it are 1, 9, 9 (from 199) and 2, 0, 0 (from 200). This option only catches a guess.
  • c: incorrect — 6 comes from miscounting the first two blocks as 99 numbers × 2 digits = 198 digits. That leaves 489 − 198 = 291 = 97 × 3, which points to 196 and its last digit 6. Numbers 1 to 9 have one digit each, so the correct total is 189.
  • d: correct — After 189 digits from 1 to 99, there are 300 digits left. That is exactly 100 three-digit numbers, from 100 to 199. Position 489 is the last digit of 199, which is 9.

How to eliminate

Memorise two cumulative totals: 9 (up to 9) and 189 (up to 99). Then 489 − 189 = 300. 300 ÷ 3 = 100 with no remainder, so you need the last digit of the 100th three-digit number, which is 199. The answer is 9. For a quick sanity check, note that 199 ends at 99 + 100 × 3 + 90 = 489. If you land on 0, you counted 200 instead of 199. Recount with the rule nth number from 100 = 99 + n. About 30–45 seconds once the 9/189 totals are memorised. Attempt it in the first pass.

Know more

Finding the nth digit of 123456789101112…

The digits come in blocks. Every number in a block has the same number of digits.

Numbers Count Digits used Cumulative
1–9 9 9 9
10–99 90 180 189
100–999 900 2700 2889
1000–9999 9000 36000 38889

Method

  1. Find the block: the first cumulative total that is at least n.
  2. Subtract the previous cumulative total. Call the result r.
  3. Divide r by the block's digit length d: r = d × q + s.
  4. If s = 0, the answer is the last digit of the qth number in the block.
  5. If s > 0, the answer is the sth digit of the (q + 1)th number in the block.
  6. The kth number in the block is (first number of the block) + k − 1.

Worked variant: the 1000th digit

  • 1000 > 189 and 1000 < 2889, so it lies in the three-digit block.
  • r = 1000 − 189 = 811 = 3 × 270 + 1.
  • 270 full numbers are 100 to 369. Remainder 1 means the 1st digit of the next number, 370.
  • The 1000th digit is 3.

The usual slip is in step 6. The kth number is start + k − 1, not start + k.