Bunuel
How many times will the digit 7 be written when listing the integers from 1 to 1000?
A. 110
B. 111
C. 271
D. 300
E. 304
HoozanI will prefer to answer it using method-1
Method-1:From 1 to 100: DIgit 7 is written 20 times
From 101 to 200: DIgit 7 is written 20 times
From 201 to 300: DIgit 7 is written 20 times
From 301 to 400: DIgit 7 is written 20 times
From 401 to 500: DIgit 7 is written 20 times
From 501 to 600: DIgit 7 is written 20 times
From 601 to 699: DIgit 7 is written 20 times
From 700 to 800: DIgit 7 is written 120 times ('7' comes at hundred's place in each number)
From 801 to 900: DIgit 7 is written 20 times
From 901 to 1000: DIgit 7 is written 20 times
Total Usages of digit 7 = 20*9+120 = 300
Method-2: Case-1: Numbers using Digit 7 only onceTotal Such cases = 3C1 = 3
'7' At Unit's place : 9 * 9 * 1 = 81
(Unit place can be filled only using digit 7
Ten's place can be filled in 9 places using any digit from 0 to 9 except 7
Hundred's place can be filled in 9 places using any digit from 0 to 9 except 7
Total Such numbers = 3*81 = 243
Case-2: Numbers using Digit 7 Twice'7' At two place : Total Cases = 3C2 = 3 (choosing two places out of three digit places for digit '7')
Total Numbers = 9 Numbers
(Third place can be filled using any digit from 0 to 9 except '7')
ie. Total Such numbers = 3*9 = 27
Case-3: 7 is used at all the three places in a three digit numberTotal Such numbers = 1 number
Total Usages of digit '7' = 243*1 + 27*2 + 1*3 = 300
Answer: Option D