1

List proofs of the fact that the number of solutions to $x^2 + y^2 = 1$ over $\Bbb Z/p$, where $p$ is a prime $\neq 2$, is $p-(-1)^{\frac{p-1}2}$. I thought of two.

I write one below.

user26857
  • 52,094
wlad
  • 8,185
  • 1
    Temporarily use projective coordinates: We first study the number of solutions of the homogenized version $X^2+Y^2=Z^2$. This is equivalent to $X^2=Z^2-Y^2=(Z-Y)(Z+Y)$. Because $(Z;Y)\mapsto (Z+Y,Z-Y)$ is a bijection this is easy to do. Then we need to count the solutions, where $Z=0$. This is where the Legendre character value $$\left(\frac{-1}p\right)=(-1)^{(p-1)/2}$$ comes into play. Throw away those and divided whatever you have remaining by $p-1$ for the purposes of dehomogenizing $Z=1$. – Jyrki Lahtonen Jun 15 '15 at 20:26