第 786 题:(2009 AMC 12b, 19)
For each positive integer $n$, let $f(n) = n^4 - 360n^2 + 400$. What is the sum of all values of $f(n)$ that are prime numbers?
$\textbf{(A)}\ 794\qquad \textbf{(B)}\ 796\qquad \textbf{(C)}\ 798\qquad \textbf{(D)}\ 800\qquad \textbf{(E)}\ 802$
- $f(n)=(n^2+20)^2-400n^2=(n^2-20n+20)(n^2+20n+20)$.
- The second factor is greater than $1$, so $f(n)$ is prime only if $n^2-20n+20=1$ (if it is $-1$ or smaller, $f(n)<0$). Then $n^2-20n+19=0$, $n=1$ or $n=19$.
- $f(1)=1\cdot41=41$ and $f(19)=1\cdot761=761$, both prime. The sum is $802$.
- The answer is (E).
For each positive integer $n$, let $f(n)=n^4-48n^2+64$. What is the sum of all values of $f(n)$ that are prime numbers?