2019 AMC 10A Problem 9

Attempt Problem 9 of the 2019 AMC 10A 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 2019 AMC 10A solutions, or check the answer key.

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

9.

What is the greatest three-digit positive integer nn for which the sum of the first nn positive integers is not a divisor of the product of the first nn positive integers?
995995
996996
997997
998998
999999
Answer: B
Concepts:factorialdivisibilityprime
Small hint:
The sum 1+2+⋯+n1+2+\cdots+n equals n(n+1)2\frac{n(n+1)}{2}
Big hint:
The obstruction comes from when n+1n+1 contributes a new prime factor
Solution:
The sum of the first nn numbers is n(n+1)2.\dfrac{n(n + 1)}{2}. We need this to not divide n!.n!.
Put m=n+1m=n+1. If mm is composite, write m=abm=ab with 2≤a≤b2\le a\le b. When a<ba<b, the distinct factors aa and bb both occur in (m−2)!=(n−1)!(m-2)!=(n-1)!. When a=ba=b, we have a≥3a\ge3, and the two multiples aa and 2a2a both occur in (m−2)!(m-2)!, so a2=ma^2=m divides that factorial as well. Thus (n−1)!(n-1)! is divisible by mm, and consequently n! is divisible by n(n+1)2.n! \text{ is divisible by } \frac{n(n+1)}2.
Conversely, if n+1n+1 is prime, that prime factor does not occur in n!n!, so the divisibility fails. Since 997997 is prime while 998,999,998,999, and 10001000 are composite, the greatest three-digit value is 997−1=996.997-1=996.
Thus, B is the correct answer.
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.