The book that took 792 digits to number
A printer numbers the pages of a book from 1 upwards. When the job is finished, exactly 792 digits have been printed in total (a page numbered 123 uses three digits).
How many pages does the book have?
Show a hint
Count the digits used by the one-digit pages, then the two-digit pages, and see how many are left for the three-digit pages.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
The sum of all digits from 1 to a millionEight eights that add to a thousandFour fours from zero to tenHow many times is the digit 1 written from 1 to 1000?How many times is the digit 7 written from 1 to 1000?
All questions →