I would like to prove the following:
Take any odd convergent of $\sqrt 2$. The denominator gives the hypotenuse of a triangle; the numerator split into two consecutive integers gives the other two sides.
For example, the first $10$ convergents of $\sqrt 2$ are:
$$1,\quad \frac 3 2,\quad \frac 7 5,\quad \frac {17} {12},\quad \frac {41} {29},\quad \frac {99} {70},\quad \frac {239} {169},\quad \frac {577} {408},\quad \frac {1393} {985},\quad \frac {3363} {2378}$$
By looking at odd convergents, we see that
- $7 = 3 + 4$ and $5^2 = 3^2 + 4^2$;
- $41 = 20 + 21$ and $29^2 = 20^2 + 21^2$;
- $239 = 119 + 120$ and $169^2 = 119^2 + 120^2$;
- and so on.
Now, the convergents are given by $h_n / k_n$ with $$h_1 = 1 \qquad h_2 = 3 \qquad h_{n+2} = 2 h_{n+1} + h_n$$ $$k_1 = 1 \qquad k_2 = 2 \qquad k_{n+2} = 2 k_{n+1} + k_n$$ and I have noticed that the statement is equivalent to the fact that $$h_{2n+1}^2 - 2 k_{2n+1}^2 = -1$$
One way to prove it is by solving both recurrence relations, substituting the closed formulas and checking that the equality above holds for any $n$. This is quite long and involves some tedious computations.
Another way is by induction, but I believe one needs to strengthen the inductive hypothesis, since the equality involves only odd indices whereas the recurrence relation of $h_n, k_n$ involves both odd and even indices. I'm not sure how to do that.
Are there any alternative ways to prove the statement? A geometric proof would be particularly interesting, if there is one.