A hard question on page numbers for P4–P5, with a step-by-step solution, diagrams and the answer. Common in the Hua Xia Cup's P2 to P5 papers: how many digits in all, how often a digit appears, and pages torn out.
The question
A printer numbers a book's pages from page 1 to the last page, using 387 digits in all.
How many pages does the book have?
Show the hints (3)
💡Hint 1: How many digits do pages 1–9 use? And pages 10–99?
💡Hint 2: The first 99 pages use fewer than 387. The rest go 3 to a page.