-1
$\begingroup$

Let $p$ be an integer prime of the form $4k+1$ and let $n=p^r$. Find the number of solutions to $x^2+y^2 = n$. The cases $r$ even and $r$ odd will be slightly different.

  • 0
    hint https://proofwiki.org/wiki/Fermat's_Two_Squares_Theorem2017-02-15

1 Answers 1

0

There exists some $z\in\Bbb Z[i]$ such that $p=z\bar z$. Then $p^r=z^r\bar z^r=z^j\bar z^{r-j}\overline{z^j\bar z^{r-j}}$

This gives different pairs $(m,n)$ such that $m^2+n^2=p^r$ for $0\le j< r-j$ of $r$ is odd and $1\le j\le r-j$ if $r$ is even. This makes $\lfloor (r+1)/2\rfloor$ solutions (I have counted only strictly positive solutions).

  • 0
    what about $n = 2^r$2017-02-15