2019 AMC 10A Problem 9
What is the greatest three-digit positive integer for which the sum of the first positive integers is a divisor of the product of the first positive integers?
Show solution without answering
Key insight
Dividing n! by n(n+1)/2 leaves 2 times (n-1)! over n+1. This fails to be whole only when n+1 is a prime, and the largest prime below 1000 is 997.
Solution
The sum of the first positive integers is , and their product is .
1. Look at a small case first. Take : the sum is and the product is . does not divide . Now : the sum is and the product is . It divides.
2. Divide in general. Write . Then
So the question is whether divides , that is, .
3. When is a prime (bigger than ): a prime divides a product only if it divides one of the factors. Every factor here is smaller than , so none of them is a multiple of it. The sum is not a divisor. (In step 1, is prime.)
4. When is not prime, it splits into smaller factors that all show up among (with plenty of room when is this large). So the sum is a divisor.
5. Search from the top. We want the largest three-digit with prime.
- : , not prime.
- : , not prime.
- : , not prime.
- : . Try every prime up to (since ): none divides . So is prime.
The largest such is .
The answer is .
Why this works
Simplifying the fraction first turned a question about two big formulas into "does divide a product of smaller numbers?" A prime can never divide a product of numbers all smaller than itself, which is exactly why primes are the failures. Cancel what you can before thinking about divisibility.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
The sum is and the product is . Their quotient is
so the sum divides the product exactly when divides .
If is a prime , then divides none of the factors nor the , so does not divide : the sum is not a divisor. If is composite, its prime factors are all at most and appear (with room to spare) inside , so the sum does divide the product.
So we need the largest three-digit with prime. Check downward: , , and are composite, while is prime (it has no prime factor up to ). Hence .
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 1: Integers: The Basics (§1.4, §1.5)
- Introduction to Number Theory, Chapter 2: Primes and Composites
- Introduction to Algebra, Chapter 11: Special Factorizations
- Introduction to Number Theory, Chapter 5: Divisor Problems (§5.2, §5.3)
Similar problems
Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.