Skip to main content

2019 AMC 10A Problem 9

Problem 9 of 25EasierNumber TheoryCounting & Probability

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?

Answer choices

Show solution

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 2ab2\le a\le b. When a<ba<b, the distinct factors aa and bb both occur in (m2)!=(n1)!(m-2)!=(n-1)!. When a=ba=b, we have a3a\ge3, and the two multiples aa and 2a2a both occur in (m2)!(m-2)!, so a2=ma^2=m divides that factorial as well. Thus (n1)!(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 9971=996.997-1=996. Thus, B is the correct answer.

More practice

Concepts: factorial · divisibility · prime

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.