With $n \neq 4$ find all natural numbers $(n,k)$ such that $n^2 + (n-1)^2 = k^2$
This is part of a problem I am working on. I am trying to find out whether $n=4$ is the only answer or there exist many more answers.
I tried using the theorem for primitive Pythagorean triplets setting $n=u^2-v^2$ and $n-1=2uv$ where $(u,v)=1$. However I couldn't get anywhere after this
Please help on how to go forward I'm stuck!
Edit- Further, is there a way of generating values on $n$ ?
You have $u^2-v^2=1+2uv$ and $(u-v)^2-2v^2=1$. This is a Pell equation. You can use this to generate all possible values of $n$.