Exercise 779
Solution
- $n=1$ is a root, so $n^3-10n^2+30n-21=(n-1)(n^2-9n+21)$.
- The second factor $n^2-9n+21=(n-4.5)^2+0.75$ is always positive. For $n\ge2$ the value is a product of positive integers, so one factor must be $1$.
- $n-1=1$: $n=2$, value $1\cdot7=7$, prime. $n^2-9n+21=1$: $n=4$ or $5$, values $3\cdot1=3$ (prime) and $4\cdot1=4$ (not prime).
- So $\boxed{2}$ values: $n=2$ and $n=4$.