Acertijos de Mileto42 a riddle every day · the solution, the next day Versión en español

2026-10-18 · Logic / Math

The Printer's Digits

A printer numbers the pages of a notebook, starting at page 1 and counting up one by one, skipping none. Each page has its number printed on it exactly once, and no page in the notebook is left unnumbered.

When he is done, the printer counts how many digits he has had to print in all (page 7, for instance, takes one digit, while page 25 takes two) and arrives at exactly 306.

How many pages does the notebook have?

See solution

The notebook has 138 pages.

Pages 1 through 9 use 9 digits in all. Pages 10 through 99 make up 90 two-digit pages, or 180 digits. By the end of page 99, 9 + 180 = 189 digits have been used.

That leaves 306 − 189 = 117 digits, which go to three-digit pages (from page 100 onward). 117 ÷ 3 = 39 pages, so pages 100 through 138.

Check: 9 + 180 + 39 × 3 = 9 + 180 + 117 = 306. Since the digit total grows with every page added, only one page count can give exactly 306, so the solution is unique.