Question Statement:-
Show that the quadratic equation $x^2+7x-14(q^2+1)=0$, where $q$ is an integer, has no integral roots.
My attempt at a solution:-
For the given quadratic equation having rational coefficients to have integral roots the discriminant $D$ of the equation needs to be a perfect square.
$$\therefore D=(7)^2+56(q^2+1)=56q^2+105=7(8q^2+15)$$
Now, from the expression for the discriminant we see that $(8q^2+15)$ is always odd so for the discriminant to be a perfect square, the following condition needs to be satisfied
$$8q^2+15=7(2n+1)^2,\qquad\qquad\text{where n $\in Z$}$$
So $$2(q^2+1)=7(n^2+n)$$
After this I was having trouble coming up with a way to disprove the above equality that I came up with, if you could help me out as to how to proceed from here on or maybe suggest a way that makes it easier for me to prove what the question asks.
If $7(8q^2+15)$ is a perfect square, $8q^2+15$ is divisible by $7$, which is equivalent to $q^2 \equiv -1 \pmod 7$. This is well known to be impossible.