1998 AMC 12 Problem 24

Attempt Problem 24 of the 1998 AMC 12 below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 1998 AMC 12 solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

24.

Call a 77-digit telephone number d1d2d3d_1d_2d_3-d4d5d6d7d_4d_5d_6d_7 memorable if the prefix sequence d1d2d3d_1d_2d_3 is exactly the same as either of the sequences d4d5d6d_4d_5d_6 or d5d6d7d_5d_6d_7 (possibly both). Assuming that each did_i can be any of the ten decimal digits 0,0, 1,1, 2,2, …,\ldots, 9,9, the number of different memorable telephone numbers is
19,81019{,}810
19,91019{,}910
19,99019{,}990
20,00020{,}000
20,10020{,}100
Answer: C
Concepts:inclusion-exclusiondigit strings
Small hint:
Count numbers satisfying each of the two matching conditions separately
Big hint:
If both matches hold, all seven digits are forced by one repeated digit
Solution:
Each matching condition gives 104=10,00010^4=10,000 numbers: choose the three prefix digits and the one unconstrained remaining digit. If both hold, then d1d2d3=d4d5d6=d5d6d7,d_1d_2d_3=d_4d_5d_6=d_5d_6d_7, forcing all digits equal, so there are 1010 overlaps. Inclusion-exclusion gives 10,000+10,000−10=19,990,10,000+10,000-10=19,990, so C is correct.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.