UPSC CSE 2019 CSAT · Question 9

UPSC CSE 2019 CSAT question on Number System 1000 Digit

CSAT is a qualifying paper.

The number of times the digit 5 will appear while writing the integers from 1 to 1000 is

  1. 269
  2. 271
  3. 300
  4. 302
Show answer

Answer: C. 300

Solution

  1. Count appearances of the digit 5, not merely the numbers containing 5. For example, 55 contributes two appearances.
  1. First consider 000 to 999, written as three-digit strings. At each of the units, tens and hundreds positions, every digit 0–9 occurs equally often: 100 times.
  1. The digit 5 therefore occurs 100 + 100 + 100 = 300 times. Leading zeros add no 5s, so this also counts 1 to 999.
  1. The last number, 1000, contains no 5. Final count = 300.

Why the other options are wrong

  • (a) 269 undercounts the 300 position-wise appearances by 31. Each of the three positions must contribute 100.
  • (b) 271 undercounts by 29; the hundreds position alone gives 100 appearances, and tens and units give 100 each.
  • (d) 302 overcounts by 2; 1000 contains no 5 to add to the 300 appearances in 1–999.

Quick trick

  • For digits 1–9 in the range 1–999, use 100 occurrences per position × 3 positions.
  • Count repeated digits separately: 555 contributes three appearances.

Remember

When the full range is 000–999, any chosen nonzero digit appears equally often at each place.

Hence the answer is (c).

Share
Ask Atlas (5) for similar questions
  1. 2026 · Q29 Number System Appear Digit — Same idea: counting appearances of digit 5 across a range of numbers.
  2. 2020 · Q26 Number System Integers Digit — Counts integers containing a given digit, a closely related digit-occurrence pattern.
  3. 2017 · Q80 Number System Digits Printed — Counts total digits written across a numbered range, same digit-place counting approach.
  4. 2023 · Q19 Number System Sum Digits — Counts digits appearing across a range of integers, same place-by-place digit counting.
  5. 2021 · Q29 Number System 1000 Integers — Digit-based counting over an integer range with a condition on digits.

← Full UPSC CSE 2019 CSAT paper · All Basic numeracy questions