A librarian used 2893 digits to number the pages of a book. How many pages does the book have?
1000
As we know, number of digits each for 0 to 9 is 1,
Similarly, number of digits each for 10 to 99 and 100 to 999 are 2 and 3 respectively.
So, total number of digits till page number 999,
=((9−0)×1)+((99−9)×2)+((999−99)×3)=9+(90×2)+(900×3)=2889
The next page number will be 1000, so total number of digits =(2889+4)=2893
Or number of pages in the book = 1000.