Consider F is a finite field with $ q$ elements, where $q=p^n$, p prime, and n is an integer. Give the number of solutions of pairs (x,y) for the equation $$ x^2-y^2=a $$ according to the value of $ q $ and $ a $ in F.
I have resolved the case where $p=2$ and $p≠2$ with $a=0$. However, I encountered an issue in the case where $p≠2$ and $a≠0$. My initial idea was to find all possible differences between square numbers and then look for cases with equal differences. However, I quickly realized that I couldn't solve the problem $ a^2+b^2=c^2+d^2 $ in a finite field.
Later, I changed my strategy and found that all solutions satisfy the form $$ \left(\frac{b^{-1}+ab}{2},\frac{b^{-1}-ab}{2}\right) $$ However, I am unable to determine the total number of solutions of this form.
Please provide me with some ideas or help me solve this problem. Thanks!
I know no theory of finite fields, but taking the question from what you achieved, we have to count the size of the set $$S=\left\{\left(\frac{b^{-1}+ab}{2},\frac{b^{-1}-ab}{2}\right):b\in F^*\right\}.$$
Breaking the problem in smaller parts, I'd count the left $L=\left\{\frac 1 2(b^{-1}+ab):b\in F^*\right\}$ and right $R=\left\{\frac 1 2(b^{-1}-ab):b\in F^*\right\}$ pieces separately.
Now to count the size of $L$, I'd note that purely syntactically it's defined as the image of a function $f_L:F^*\to F^*$ $$f_L(b)=\frac 1 2(b^{-1}+ab).$$ If the function were an injection, we'd know the answer because $L=f_L(F^*)$ would be the whole $F^*$ (because it's finite), so next I'd try to "measure the non-injectivity" of $f_L$.
To this goal, take $f_L(b)=f_L(b')$ and see that (if I computed right) $b'$ is either $b$ or $1/ab$, and conversely.$$\forall b,b'\in F^*:f_L(b)=f_L(b')\Leftrightarrow (b=b' \textrm{ or } bb'=1/a)$$ That is, for each $b\in F^*$, $f_L$ produces either a unique result, or is the same as $f_L(1/ab)$. The former happens only if $b=1/ab$, that is, if $b^2=1/a$.
Therefore, the total number of different outputs of $f_L$ is the number of square roots of $1/a$ plus half of the rest of $F^*$: $$|L|=|f_L(F^*)| = \left|\sqrt{\{1/a\}}\right| + \frac 1 2\left|F^*\setminus\sqrt{\{1/a\}}\right|$$ where I lazily denoted $\sqrt{\{1/a\}}=\{b\in F^*:b^2=1/a\}$.
Similarly, $|R|= \left|\sqrt{\{-1/a\}}\right| + \frac 1 2\left|F^*\setminus\sqrt{\{-1/a\}}\right|$.
If what I read here (http://cap-lore.com/MathPhys/Field/finite/sqrt.html) is true, then $|\sqrt{\pm\{1/a\}}|$ is either 0 or 2, but I don't know why. You can substitute in the formulas to get a further evaluated answer. Anyway, we're back in finite fields theory land so I hope you can take it from here :)