I am asked to find a primitive Pythagorean triple $(x, y, z)$ such that $x^{2}+y^{2}=z^{2}$ and $|x-y|=1$, and $x\geq100$ and $y\geq 100$.
I know the result should be x = 119, y = 120 and z = 169, but I don't know how to "find" it systematically. By the theorem, we can have
$x=r^{2}-s^{2}$
$y=2rs$
$z=r^{2}+s^{2}$
I am stuck.
Ps: I found this question prove that there are infinitely many primitive pythagorean triples $x,y,z$ such that $y=x+1$ But where does the hint come from?
You basically search integer solutions to the equation $$2rs-(r^2-s^2)=1$$ which is equivalent to $$(r+s)^2-2r^2=1$$ which can be written as $$a^2-2b^2=1$$
This pell-equation has fundamental solution $a=3\ ,\ b=2$ giving $r=2$ and $s=1$ and the other solutions can be found by succesively multiplying the matrix $$\pmatrix{ 3 & 4 \\ 2 & 3}$$ with the current solution