0

Do we have a fast method for proving that the equation $x^2+y^2=0$ over $\mathbb{F}_{7}$ has one solution $(0,0)$ without testing all the elements of $\mathbb{F}_{7}$?

olgaolgano
  • 55
  • 5

2 Answers2

3

Yes, at least for prime fields – using quadratic reciprocity:

Indeed, if the equation $x^2+y^2=0$ has a solution such that $x,y\ne 0$, then $-1$ is a square in $\mathbf F_p$. Now, the $1$st supplementary law of quadratic reciprocity asserts that $$\biggl(\frac{-1}{p}\biggr)=\bigl(-1\bigr)^{\tfrac{p-1}2}, $$ and if $p=7$, this is equal to $-1$.

Bernard
  • 175,478
1

To answer the general question suggested in the title, consider a finite field $\mathbb F_q$. Then:

$x^2+y^2=0$ has a nontrivial solution in $\mathbb F_q$ iff $z^2+1=0$ has a solution in $\mathbb F_q$ iff there is an element of order $4$ in $\mathbb F_q^\times$ iff $4$ divides $q-1$, since $\mathbb F_q^\times$ is cyclic.

lhf
  • 216,483