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.
Assuming that $(a,a+1,c)$ is a Pythagorean triple we have that $2a^2+2a+1=c^2$ or $(2a+1)^2=2c^2-1$, so $(2a+1)$ belongs to the set of solutions of $x^2-2y^2=-1$ ($x=2a+1$). By the theory of Pell equations all the positive solutions are generated by the fundamental solution $(x_1,y_1)=(1,1)$ via $$ x_n+\sqrt{2} y_n = (1+\sqrt{2})(3+2\sqrt{2})^n, $$ so the sequence $\{x_n\}_{n\geq 1}$ is a linear recurrent sequence with characteristic polynomial $x^2-6x+1$ (the minimal polynomial of $3+2\sqrt{2}$ over $\mathbb{Q}$), i.e. $x_{n+2}=6x_{n+1}-x_n$. This is also the recurrence fulfilled by the sequence $\{p_{2n+1}\}_{n\geq 0}$, where $\frac{p_n}{q_n}$ is the $n$-th convergent of $\sqrt{2}$, due to $$ \sqrt{2}=[1;2,2,2,\ldots]. $$ A simple induction then proves the wanted claim.