Let $S_n = n^2 + 20n + 12$, where $n$ a positive integer. What is the sum of all possible values of $n$, for which $S_n$ is a perfect square?
Help me to solve it.
Let $S_n = n^2 + 20n + 12$, where $n$ a positive integer. What is the sum of all possible values of $n$, for which $S_n$ is a perfect square?
Help me to solve it.
Notice that: $$S_n=n^2+20n+12=(n+10)^2-88 \ .$$
Assume that $S_n$ to be a perfect square; i.e. $S_n=m^2$, then we have: $(n+10)^2-88=m^2$,
let's dfine $N:=(n+10)$.
This implies that $(N-m)(N+m)=88$; notice that $(N-m)$ and $(N+m)$ have the same pairity, both of them are odd or both of them are even. We have the following cases:
$(N-m)= 1$ and $(N+m)=88$; which is imposible by the above notices.
$(N-m)= 2$ and $(N+m)=44$; which gives the solution $N=23$, $m=21$; $n=13$.
$(N-m)= 4$ and $(N+m)=22$; which gives the solution $N=13$, $m=9$; $n=3$.
$(N-m)= 8$ and $(N+m)=11$; which is imposible by the above notices.
$(N-m)=11$ and $(N+m)= 8$; which is imposible by the above notices.
$(N-m)=22$ and $(N+m)= 4$; which gives the solution $N=13$, $m=-9$; $n=3$.
$(N-m)=44$ and $(N+m)= 2$; which gives the solution $N=23$, $m=-21$; $n=13$.
$(N-m)=88$ and $(N+m)= 1$; which is imposible by the above notices.
At first you without loss of generality you can assume that $m$ is non-negative, and also note that $ N = n+10 > 0+10=10.$