Solutions to Problems 985-992

Q.985 For what values of the positive integer $n$ is

1. $5n + 2$
2. $7n + 2$

a perfect square?