+0  
 
0
352
1
avatar

If you write all the whole numbers upto 100000, the number of times you write the digit '1' is A and the number of times you write the digit '2' is B. what is the value of A-B ?

 Jul 5, 2020
 #1
avatar
0

Both digits, 1 and 2, appear 50,000 times each between 1 and 100,000, including ALL duplicates such as 111, 2222.....etc.

If you exclude All duplicates, then both 1 and 2 appear 40,951 times each between 1 and 100,000 inclusive.

 Jul 5, 2020

2 Online Users