Calculation of Integral values of $x$ for which the expression $x^2+19x+92$ is a perfect square.
$\bf{My\; Solution::}$ Let $x^2+19x+92 = k^2\;,$ where $x,k\in \mathbb{Z}$
$$x^2+19x+(92-k^2)=0$$
Now $$\displaystyle x = \frac{-19\pm \sqrt{19^2-4(92-k^2)}}{2} = \frac{-19\pm \sqrt{4k^2-7}}{2}$$
Now for perfect square $\displaystyle 4k^2-7 = 0\Rightarrow k=\pm \frac{\sqrt{7}}{2}$
But it is wrong,
Please explain me how can i solve it and where i am wrong,
thanks
You need: $4k^2 - 7 = n^2 \to 4k^2 - n^2 = (2k-n)(2k+n) = 7$. This gives:
$2k - n = 1$, and $2k + n = 7$. So: $4k = 8$, and $k = 2$, and $n = 3$. Thus: $x = \dfrac{-19 \pm 3}{2} = -11$ or $-8$.
$2k - n = - 7$, and $2k + n = -1$. Thus: $4k = -8$, and $k = -2$. Thus: $n = 3$, and we have: $x = - 11$ or $-8$.
$2k + n = -7$, and $2k - n = -1$. Then: $4k = -8$, and $k = -2$. Thus: $n = -3$. And this also gives the same values of $x$ and $k$ as above.
The same is true for the case: $2k - n = 7$,and $2k + n = 1$