Prove that for any integer $n$ $\geqslant$ $3$ there is a Pythagorean triangle with one of its legs having length n. For which integers n will there be a primitive Pythagorean triangle with n as one of its legs.
For the first part I tried to start induction with $n = 3$. If we take the other legs to be 4 and 5 then $3^2 + 4^2 = 5^2$
But I'm not sure how to proceed.
For natural $u,v$ the numbers $$a=u^2-v^2$$ $$b=2uv$$ $$c=u^2+v^2$$ satisfy $$a^2+b^2=c^2$$
If the given number $N$ is even choose $u=\frac{N}{2}$ , $v=1$
If $N$ is odd , choose $u=\frac{N+1}{2}$ , $v=\frac{N-1}{2}$
This way you will even get a primitive pythagorean triple containing $N$