SpiritualYoda wrote:
Bunuel chetan2uThe answer will be 300 for all the digits except 0 and 1, right? For 0, the answer will be 303 (Considering 3 zeroes in 1000) and for 1, the answer will be 301 (Considering one 1 in 1000).
Let me know if my understanding is correct?
Hi..
if we write all as 000 to 999, we will have 3000 digits as 3(number of digits in each number )*1000(total numbers)=3000..
In these 3000, all 10 digits will be 3000/10=300..
But we do not have 0s in single digit and two digits..
so 000,as we do not have 0, so 3 0s missing
00a.. from 1 to 9, they are not written as 001,002...009, so 2*9=18 x 0s missing
0ab.....from 10 to 99, they are not written as 010,011...099, so 1*90=90 x 0s missing
Total 3+18+90=111 number of 0s are less..
Thus, from 1 to 999, we have 300 of all 9 digits - 1 to 9, while we have 300-111=189 of 0s.
Add 1000,
digit 0 is used 189+3=192 times
digit 1 is used 300+1=301 times
digits 2 to 9, 300 times each
_________________