Question 189Let $n = (p^2 + 2)^2 - 9(p^2 - 7)$ where $p$ is a prime number. What is the smallest value of the sum of the digits of $n$ and for what prime numbers $p$ is this value attained?