I was in a math contest the other day and this was the last question:
Find all $n\in \Bbb N$ for which $n^2+77n$ is a square of some natural number.
I only got this far:
Since $n^2+77n=n(n+77)$, I figured that this could be divided up into three separate cases:
1) $n=n+77$ (this has no solutions);
2) $n=a^2$ and $n+77=b^2$ for some $a,b\in \Bbb N$ (the only solution I managed to find by hand was $n=4$, but couldn't prove there weren't more);
3) $n$ and $n+77$ share some prime factors and in both numbers those prime factors have an odd power (if $n$ has a prime factor of $p^{2l-1}, l\in \Bbb N$, then $n+77$ should have a prime factor of $p^{2k-1}, k\in \Bbb N$).
This didn't seem like a very easy thing to solve/prove, so I continued searching:
$$n^2+77n=a^2, a\in \Bbb N$$ $$n^2+77-a^2=0$$ $$n_1=\dfrac {-77+\sqrt{77^2+4a^2}} 2$$ $$n_2=\dfrac {-77-\sqrt{77^2+4a^2}} 2$$ We have to only consider $n_1$, since $n_2$ is always negative and we are searching for natural numbers. So, now we only need to find such $a$, for which $\sqrt{4a^2+5929}$ is a natural number. No idea how to do that.
This was the point at which I had no idea what to do and just gave up. Any help would be appreciated.