AMC 10 · 2025 · #10

Grade 8 algebra
polynomial-factoringpolynomial-rootsfactors identify-subproblems ↑ Prerequisites: polynomial-factoring
📏 Long solution 💡 3 insights
Problem
Two cubic expressions are given: f(n)=n³-5n²+2n+8 and g(n)=n³-6n²+5n+12. Find every integer n for which the fraction f(n)/g(n) comes out to a whole number, then add all those integers together.

Pick an answer.

(A)
2
(B)
3
(C)
4
(D)
5
(E)
6

AMC 10 2025 problem © Mathematical Association of America (MAA AMC). Reproduced for educational use.

How to solve
Strategy Identify Subproblems

A ratio of two ugly cubics looks hopeless head-on, so Tool #7 (Identify Subproblems) splits it into three clean jobs: factor f, factor g, then compare. Tool #6 (Guess and Check) cracks each cubic by testing small integers to find a first root. Once both are factored, Tool #15 (Organize Information in More Ways) rewrites the reduced fraction (n-2)/(n-3) as 1+1/(n-3), which turns "when is this an integer?" into a simple divisibility question. Tool #3 (Eliminate Possibilities) then removes the value that secretly breaks the original fraction.

1STEP 1

Factor the top cubic

Testing n=-1 in f gives 0, so n+1 is a factor; dividing it out leaves n²-6n+8, hence f(n)=(n+1)(n-2)(n-4).

f(n)=n³-5n²+2n+8=(n+1)(n-2)(n-4)
2STEP 2

Factor the bottom cubic

Same trick on g: n=-1 works again, and the leftover quadratic is n²-7n+12, so g(n)=(n+1)(n-3)(n-4).

g(n)=n³-6n²+5n+12=(n+1)(n-3)(n-4)
3STEP 3

Cancel the shared factors

Both share n+1 and n-4, so cancelling them — legal only where they are nonzero — leaves just (n-2)/(n-3).

f(n)/g(n)=(n+1)(n-2)(n-4)/(n+1)(n-3)(n-4)=(n-2)/(n-3)
4STEP 4

Split off the whole part

Write n-2 as (n-3)+1, and the ratio splits into 1+1/(n-3), so only the leftover piece decides the outcome.

(n-2)/(n-3)=((n-3)+1)/(n-3)=1+1/(n-3)
5STEP 5

When is the leftover a whole number?

1/(n-3) is whole only if n-3 divides 1, and the only integer divisors of 1 are 1 and -1.

1/(n-3)inZ⇔ (n-3) ∣ 1⇔ n-3∈{1,-1}
6STEP 6

Solve for the candidate values

Solve the two tiny equations: n-3=1 gives n=4 and n-3=-1 gives n=2, so the candidates are n=4 and n=2.

n-3=1→ n=4; n-3=-1→ n=2
7STEP 7

Throw out the fake solution and add up

At n=4 both cubics vanish, so 0/0 is undefined and n=4 is out; only n=2 survives, making the sum 2, choice (A).

g(4)=0→ reject; f(2)/g(2)=0/6=0; sum=2=(A)
Answer
2
Test the winner directly: f(2)=8-20+4+8=0 and g(2)=8-24+10+12=6, so f(2)/g(2)=0/6=0 is an integer, confirming n=2 genuinely works. The only other candidate, n=4, makes both cubics zero at once (0/0), so rejecting it is correct — that is exactly why the answer is 2 and not 2+4=6, ruling out the trap choice (E). Since the reduced form 1+1/(n-3) can only be an integer at the two spots where n-3=±1, no other integer can sneak in, confirming the sum is 2.
💡Key takeaway

Factor both cubics, cancel what they share to get 1+1/(n-3), and the only whole-number results come from n-3=±1 — but toss out n=4 because it makes the real fraction 0/0.

  • Factor the top cubic
  • Factor the bottom cubic
  • Cancel the shared factors
  • Split off the whole part
  • When is the leftover a whole number?
  • Solve for the candidate values
  • Throw out the fake solution and add up