2025 AMC 10B Problem 10
Let and What is the sum of all integers such that is an integer?
Show solution without answering
Key insight
Subtracting gives f − g = (n−4)(n+1), a factor of both. The fraction becomes (n−2)/(n−3), but n = 4 is out because g(4) = 0.
Solution
1. Subtract to find something in common. The two cubics have the same term, so subtract them and it disappears:
2. Test those numbers in . Try : . Try : . So and are both factors of . The third factor must make the constant term : , so it is :
3. Factor the same way. , so
4. Simplify the fraction. When is not , or , cancel the common factors:
This is a whole number only when is, which means or . So or .
- Check the numbers where we cancelled. At , and , the original denominator is , so the fraction does not exist at all. That rules out , even though the simplified fraction looked fine there.
- Check . and , so the fraction is , a whole number.
Only works, so the sum is .
The answer is .
Why this works
When two polynomials start the same way, subtracting them gives something smaller that often shows their shared factors. After cancelling, pulling out the whole-number part () turns "is this a whole number?" into "what divides ?". Whenever you cancel a factor, go back and check the values that made it zero; the original fraction may not exist there.
Alternative approach
Look for whole-number roots of each cubic. A whole-number root must divide the constant term. For , try divisors of : , and dividing by leaves . For , try divisors of : , and dividing by leaves the same . Cancel it to get , then finish as above.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
Subtract first; the cubic terms cancel:
That suggests testing and in : and . So divides , and since is monic of degree ,
Then .
For every outside the common factor cancels:
This is an integer exactly when divides , that is or .
Now check the excluded values. At the denominator is zero, so the quotient does not exist; in particular must be discarded even though it survived the cancelled form. Only remains, and is indeed an integer.
The sum of all such is .
The answer is .
Review in the AoPS books
- Intermediate Algebra, Chapter 6: Polynomial Division (§6.2, §6.4)
- Introduction to Number Theory, Chapter 1: Integers: The Basics (§1.4, §1.5)
- Introduction to Algebra, Chapter 11: Special Factorizations
- Intermediate Algebra, Chapter 7: Polynomial Roots Part I (§7.1, §7.2, §7.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.