2006 AMC 12B Problem 22

Attempt Problem 22 of the 2006 AMC 12B 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 2006 AMC 12B solutions, or check the answer key.

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

22.

Suppose a,a, b,b, and cc are positive integers with a+b+c=2006,a + b + c = 2006, and a! b! c!=m⋅10n,a!\,b!\,c! = m \cdot 10^n, where mm and nn are integers and mm is not divisible by 10.10. What is the smallest possible value of n?n?
489489
492492
495495
498498
501501
Answer: B
Concepts:Legendre’s Formulatrailing zerosoptimization
Small hint:
Factors of 55 are scarcer than factors of 2,2, so nn counts the factors of 55 in a! b! c!a!\,b!\,c!
Big hint:
Use ⌊x⌋+⌊y⌋\lfloor x \rfloor + \lfloor y \rfloor +⌊z⌋≥⌊x+y+z⌋−2+ \lfloor z \rfloor \ge \lfloor x + y + z \rfloor - 2 at each power of 55
Solution:
Since factors of 22 are more plentiful than factors of 5,5, nn equals the number of factors of 55 in a! b! c!,a!\,b!\,c!, namely n=∑k≥1(⌊a5k⌋+⌊b5k⌋+⌊c5k⌋).n = \sum_{k \ge 1}\left(\left\lfloor \tfrac{a}{5^k}\right\rfloor + \left\lfloor \tfrac{b}{5^k}\right\rfloor + \left\lfloor \tfrac{c}{5^k}\right\rfloor\right).
For each k,k, ⌊a5k⌋+⌊b5k⌋\lfloor \frac{a}{5^k} \rfloor + \lfloor \frac{b}{5^k} \rfloor +⌊c5k⌋+ \lfloor \frac{c}{5^k} \rfloor ≥⌊20065k⌋−2.\ge \lfloor \frac{2006}{5^k} \rfloor - 2. Summing over k=1,2,3,4k = 1, 2, 3, 4 (as 2006<552006 \lt 5^5) gives n≥(401+80+16+3)−4⋅2=492. \begin{aligned} &n \ge (401 + 80 + 16 + 3) \\ &\quad {}- 4 \cdot 2 = 492. \end{aligned}
Equality is attainable, for example with a=b=624a = b = 624 and c=758.c = 758. So the minimum is 492.492.
Thus, the correct answer is B.
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.