I have the following problem. Find all numbers natural n, such that $n^2+58n$ is a square number.
My first idea was, $n^2+58n=m^2$
$58n=(m-n)(m+n)$ such that $m-n$ or $m+n$ must be divisible by 29, but this leads to nothing.
I have the following problem. Find all numbers natural n, such that $n^2+58n$ is a square number.
My first idea was, $n^2+58n=m^2$
$58n=(m-n)(m+n)$ such that $m-n$ or $m+n$ must be divisible by 29, but this leads to nothing.
Another hint. You can look at the problem as a quadratic equation $$x^2+58x-m^2=0$$ with $\Delta=58^2+4m^2$ and (excluding negative $n$'s) $$n=\frac{-58+2\sqrt{29^2+m^2}}{2}=-29+\sqrt{29^2+m^2}$$ which reduces to finding integers of the forms $29^2+m^2=q^2$, which is easier since $29$ is a prime and $$29^2=(q-m)(q+m)$$ allows for the following cases