Background
I'm currently taking a course in number theory and the following problem came up.
Problem
Find all the right triangles where the small sides differ by one.
My Attempt
Let $\Delta ABC$ be my triangle with sides $a,b,c\in\Bbb N$ and $a^2+b^2=c^2$. Without loss of generality we can assume $a<b$, and thus $b=a+1$.
This gives the following equation: $2a^2+2a+1=c^2$, which I yet can't use. When reading another question on the site, a user gets to $a=\sqrt{b+c}$ when they assume $b=a+1$. They don't explain what is the process to get there.
I tried to obtain a solution, but could't get around the equations. The most I got to was $b^2-a^2=a+b$.
Now parametrizing the sides I get:
$ \begin{align} (a,b,c) &= (m^2-n^2,2mn,m^2+n^2) \\ &= (m^2-n^2,m^2-n^2+1,m^2+n^2) \\ & =(2mn-1,2mn,m^2+n^2) \end{align} $
When I plug this solutions into the Pythagorean identity, I get curves with degree $4$ which I can't solve for any of the two variables. Even if I plug them into Mathematica, I get solutions with irrational numbers.
How can I find a solution to the equations? For example one of the curves is
$$m^4+n^4+6(mn)^2-4mn+1=0$$
When solving, I get a radical solution and I don't know how to make sure that it is an integer.
Any hints or comments are very much appreciated.
You got the equation $$2a^2+2a+1=c^2$$
Hint : For this equation (quadratic in $a$) to posses integer solutions for $a$ and $c$, it's discriminant must also be a perfect square.
$$\Delta = 8c^2-4=\lambda^2 $$