0

Let $x,y,n \in \mathbb{N} $. The $n$ is given and then we would like to solve: $x^2 + y^2 = n^2$ Is it possible? If yes, how to do it? Thanks in advance.

DeepSea
  • 77,651
user180834
  • 1,453

1 Answers1

0

$x = k(a^2-b^2), y = 2kab, n = k(a^2+b^2), a > b$. So if $n$ is not of the form $k(a^2+b^2)$, it has no solution.

DeepSea
  • 77,651