第 852 题:(2025 AMC 10b, 10)
Let $f(n)=n^3-5n^2+2n+8$ and $g(n)=n^3-6n^2+5n+12.$ What is the sum of all integers $n$ such that $\tfrac{f(n)}{g(n)}$ is an integer?
$\textbf{(A)}~2\qquad\textbf{(B)}~3\qquad\textbf{(C)}~4\qquad\textbf{(D)}~5\qquad\textbf{(E)}~6$
- $f(n)=(n-2)(n-4)(n+1)$ and $g(n)=(n-3)(n-4)(n+1)$. For $n\notin\{-1,3,4\}$, $\frac fg=\frac{n-2}{n-3}=1+\frac1{n-3}$.
- This is an integer when $n-3=\pm1$: $n=4$ (excluded, $g=0$) or $n=2$.
- So the sum is $2$. The answer is (A).
Let $f(n)=n^3-7n+6$ and $g(n)=n^3-3n^2-10n+24$. What is the sum of all integers $n$ such that $\frac{f(n)}{g(n)}$ is an integer?