When setting the type for a book, a publisher wanted to use a particular font to number the book's pages. They found that they needed 2775 digit characters for the whole book.
How many pages does the book contain?
Single digit pages are 1 to 9; # characters = 1*9 = 9
Double digit pages are 10 to 99; # characters = 2*90 = 180
3 digit pages are 100 to 999; # characters = 3*900 = 2700
Total number of characters used for pages including 3 characters or less
= 2700 + 180 + 9
= 2889
So, number of pages using 2775 characters
= 999 -(2889 - 2775)/3
= 999 - 38
= 961