Show that there are infinitely many primitive Pythagorean triples ${x,y,z}$ satisfying $z=x+1$. Then show that there are infinitely many primitive Pythagorean triples ${x,y,z}$ satisfying $z=y+2.$
For the first part I have that $x^2 + y^2 = (x+1)^2$ {$4,3,5$} satisfies this but I'm not sure how to prove that there are infinitely many.
For the second part I have $x^2 + y^2 = (y+2)^2$, again {$4,3,5$} satisfies.
hint for the first
$$x^2+y^2=(x+1)^2=x^2+2x+1$$
$$\implies y^2-1=2x $$
take an odd $y$ and get $x=(y^2-1)/2$ and $z=x+1$.
for example,
$$y=3\implies x=8/2=4\implies z=5$$