Q50 / 125 · BITSAT 2017 · Mathematics

The number of times the digit 5 will be written when listing the integers from 1 to 1000, is

  • A
    271
  • B
    272
  • Correct answer
    C
    300
  • D
    None of these

Solution

Any number between 1 to 999 is of the form abc when 0≤a,b,c≤9. Let us first count the number in which 5 occurs exactly once.

Since, 5 can occur at one place in 1×C13×9×9=243 ways, next 5 can occur in exactly two places in C23×9=27.

Lastly, 5 can occur in all three digits in only one way.

Hence, the number of times 5 occurs

=1×243+27×2+1×3

=243+54+3=300

Hence, the correct answer is option: 'C'.

More Permutation Combination Questions