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.
find the number of integer solutions of n = x^2 + y^2
-1
$\begingroup$
number-theory
prime-factorization
-
0hint https://proofwiki.org/wiki/Fermat's_Two_Squares_Theorem – 2017-02-15
1 Answers
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).
-
0what about $n = 2^r$ – 2017-02-15