Skip to main content

2019 AMC 10A Problem 9

Problem 9 of 25EasierNumber TheoryArithmetic

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 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.
AoPS wiki

Tagged: factorial · divisibility · prime

More practice