I am assigned to find solutions to the Pell-type equation $x^2-2y^2=-1$. So far, I only have $(7,5), (41,29)$ and $(239,169)$.
My question is, is there a general formula to find all its solutions? Are there infinitely many solutions? If it's possible to write Mathematica code that would find its solutions, what would the code look like?
Thanks a lot.