Find all positive integers $n < 200$, such that $n^2 + (n + 1)^2$ is a perfect square.
Well setting this equal to $k^2$ is important. But before that, since all squares $\equiv 0$ or $1$ (mod $3$ $,4)$ so using this we get that one of the two numbers is divisible by $3$ and same for $4$ (one of the two is divisible by $4$). This gives us cases, like if $4,3 |n$ or $4|n$ and $3|n+1$ and so on. however this seems very tedious, and anyway, for example, the first case, I still don't get how I would solve $(12k)^2+(12k+1)^2=m^2$ for $k,m \in \mathbb N$. Help please; I'm stuck.
Say $n^2+(n+1)^2=k^2$. That is, $2n^2+2n+(1-k^2)=0$.
Solving this quadratic equation yields $n=\dfrac{-1+\sqrt{2k^2-1}}2$.
So $2k^2-1=m^2$ or $m^2-2k^2=-1$.
That is a Pell-type equation, and solutions are known to be $k=5, 29, 169, 985, ... .$
Can you take it from here?