1999 AMC 12 Problem 25

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

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

25.

There are unique integers a2,a_2, a3,a_3, a4,a_4, a5,a_5, a6,a_6, a7a_7 such that
57=a22!+a33!+a44!+a55!+a66!+a77!, \begin{aligned} &\frac{5}{7} = \frac{a_2}{2!} + \frac{a_3}{3!} + \frac{a_4}{4!} \\ &\quad {}+ \frac{a_5}{5!} + \frac{a_6}{6!} + \frac{a_7}{7!}, \end{aligned}
where 0≤ai<i0 \le a_i \lt i for i=2,i = 2, 3,3, …,\ldots, 7.7. Find a2+a3+a4+a5+a6+a7.a_2 + a_3 + a_4 + a_5 + a_6 + a_7.
88
99
1010
1111
1212
Answer: B
Concepts:number basefactorialmodular arithmetic
Small hint:
Multiply both sides by 7!7!
Big hint:
Reduce modulo 7,7, then 6,6, then 5,…5, \ldots to peel off one digit at a time
Solution:
Multiplying by 7!=50407! = 5040 gives 3600=2520a2+840a3+210a4+42a5+7a6+a7. \begin{aligned} &3600 = 2520a_2 + 840a_3 \\ &\quad {}+ 210a_4 + 42a_5 \\ &\quad {}+ 7a_6 + a_7. \end{aligned} Reducing modulo 7,7, a7=2.a_7 = 2.
Then 3600−27=514\dfrac{3600 - 2}{7} = 514 =360a2+120a3= 360a_2 + 120a_3 +30a4+6a5+ 30a_4 + 6a_5 +a6.+ a_6. Reducing modulo 66 gives a6=4,a_6 = 4, and continuing this way yields a5=0,a4=1,a3=1,a2=1.a_5 = 0, a_4 = 1, a_3 = 1, a_2 = 1.
The sum is 1+1+1+0+4+2=9.1 + 1 + 1 + 0 + 4 + 2 = 9.
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.