Prove that $x^2+y^2=z^n$ has a solution $(x, y, z)$ in $\mathbb{N}$ for all $n\in\mathbb{N}$
I tried to prove this by induction, but couldn't. ( This was probably because the solution for some $n$ isn't necessarily related to the solution for $n+1$)
I can't seem to see any other way other than induction for proving the statement. Any help/hints on solving this problem, or any alternative approach will be highly appreciated :)
Its easy to find a solution for $n=2$, $3^2+4^2=5^2$. Its also easy to find a solution for $n=3$, $2^2+2^2=2^3$.
Now notice that if $x^2+y^2=z^n$ then $$(x\cdot z)^2+(y\cdot z)^2=x^2\cdot z^2+y^2\cdot z^2=z^2(x^2+y^2)=z^{n+2}$$
Hence by induction it is possible for all $n$.
Edit: Just noticed I skipped the $n=1$ case. $1^2+1^2=2$. Done.