I was solving this question, and I'm hitting a wall.
Let $S_n=n^2+20n+12$, ${{n}\in{\mathbb{N}}}$. What is the sum of all possible values of $n$ for which $S_n$ is a perfect square?
Here is how I have tried to solve.
$\begin{align}n&\equiv0,1,2,...,9\pmod{10}\\\text{So,}\qquad S_n&\equiv1,6\pmod{10}\\\text{So,}\qquad n&\equiv2,3,7,8\pmod{10}\end{align}$
But even then I have an infinite number of numbers. I have no idea where to go now.
Can anyone help?