Hence (and not otherwise) prove that there do not exist three consecutive integer values of n for which 31n+17 is a perfect square.
Notice that you must use the result of part (a) in your proof for part (b).