AMC 10 · 2017 · #16

Grade 4 arithmetic
systematic-enumerationcomplementary-countingplace-value complementary-countingcasework ↑ Prerequisites: systematic-enumeration
📏 Medium solution 💡 2 insights
📘 View easy version →
Problem
Count how many whole numbers from 1 up to 2017 have at least one digit that is 0 when written normally in base ten.

Pick an answer.

(A)
469
(B)
471
(C)
475
(D)
478
(E)
481

AMC 10 2017 problem © Mathematical Association of America (MAA AMC). Reproduced for educational use.

How to solve
Strategy Change Focus / Count the Complement

Counting numbers that have a 0 directly forces messy 'at least one' casework. Flip it: count the numbers with NO zero at all, which is clean because each digit just has to avoid 0. Split that count by how many digits the number has, count each group with a simple multiply rule, then subtract from the total 2017.

1STEP 1

Total count and the flip

All 2017 numbers split into two groups, so has a 0 = 2017 - has no 0; count the zero-free ones by digit length.

#(has a 0)=2017-#(no 0)
2STEP 2

One-digit numbers

The one-digit numbers 1 through 9 have nowhere to hide a 0, so all 9 are zero-free.

9 numbers, all zero-free
3STEP 3

Two- and three-digit numbers with no zero

Each digit avoids 0 by picking 1-9, giving 9 x 9 = 81 two-digit and 9 x 9 x 9 = 729 three-digit zero-free numbers.

9× 9=81, 9× 9× 9=729
4STEP 4

Four-digit numbers up to 2017 with no zero

From 1000-1999 the last three digits each avoid 0 for 9 x 9 x 9 = 729; every number 2000-2017 has a 0 after the 2, adding none.

9× 9× 9=729 (from 1000-1999); 0 from 2000-2017
5STEP 5

Add the zero-free counts and subtract

Zero-free total 9 + 81 + 729 + 729 = 1548, so the numbers with a 0 are 2017 - 1548 = 469.

2017-(9+81+729+729)=2017-1548=469
Answer
469
About a quarter of the numbers up to 2017 having a 0 feels right: 469 out of 2017 is roughly 23%. A rough estimate agrees, since for three-digit numbers the chance of being zero-free is (9/10)(9/10) = 81% per the last two digits, leaving about 19% with a zero, and the four-digit band 2000-2017 is entirely zero-containing, nudging the share up. The five answer choices cluster near 470, and only 469 comes out of an exact zero-free count of 1548.
💡Key takeaway

When 'at least one' is hard to count, count the opposite (none at all) and subtract from the total.

  • Total count and the flip
  • One-digit numbers
  • Two- and three-digit numbers with no zero
  • Four-digit numbers up to 2017 with no zero
  • Add the zero-free counts and subtract