Reasoning · Grade 4-1 Numbers and Digit Counts

Problem

Count digits used over a range

Pages are numbered 1, 2, 3, … with none skipped. Printing all the page numbers took 81 digit characters. A one-digit page costs 1 character, a two-digit page costs 2. Find the number of the last page.
Your answer
How to solve
Strategy Work Backwards — The finished total is given and the starting page is known, so this is an end-state problem: I spend the 81 digits from the front instead of counting up page by page. Pages do not all cost the same, so I first split them into blocks that cost the same each — the one-digit pages at 1 digit apiece and the two-digit pages at 2 digits apiece. Paying for the cheap block first tells me exactly how many digits are left for the next block, and dividing gives the number of pages that block buys.
1STEP 1

Split the pages into same-cost blocks

Group the pages into one-digit and two-digit.

2STEP 2

Pay for the one-digit pages

Pages 1 to 9 use 9 digits.

9 × 1 = 9
3STEP 3

See how many digits are left

That leaves 81 − 9 = 72.

81 - 9 = 72
4STEP 4

Turn the leftover digits into a page count

Two-digit pages number 72 ÷ 2 = 36.

72 ÷ 2 = 36
5STEP 5

Name the 36th two-digit page

Counting 36 on from page 10 lands on page 45.

10 + 36 - 1 = 45
6STEP 6

Check the digit total for 45 pages

9 + 36 × 2 = 81 checks out.

9 + 36 × 2 = 9 + 72 = 81
Answer
45 pages
9 + 36 × 2 = 81
The count is of digits, so 81 digits must buy fewer than 81 pages once numbers start costing 2 digits apiece — and 45 is indeed well under 81. It is also sensible that the book stops in the two-digit range: reaching page 100 would already need 9 + 90 × 2 + 3 = 192 digits, far more than 81, while pages 1 to 9 alone would use only 9. So the last page has to be a two-digit page, and 45 sits comfortably there.
Takeaway

Page numbers are not all the same price in digits, so count them in blocks — the cheap one-digit pages first, then see how many two-digit pages the leftover digits can buy.

  • Split the pages into same-cost blocks
  • Pay for the one-digit pages
  • See how many digits are left
  • Turn the leftover digits into a page count
  • Name the 36th two-digit page
  • Check the digit total for 45 pages