solutions for the diophantine equation $x^2+y^2=n$

65 Views Asked by At

Are there any solutions for the diophantine equation $x^2+y^2=n$ ?

For $n \in \mathbb{P} \wedge n \equiv1\pmod4$ solutions are widely known.

Can we generalize a bit?