Square Roots
Let p∈P be a prime number and Fp its associated prime field. Then a number x∈Fp is called a square root of another number y∈Fp, if x is a solution to the following equation:
In this case, y is called a quadratic residue. On the other hand, if y is given and the quadratic equation has no solution x , we call y a quadratic non-residue.
For any y∈Fp, we denote the set of all square roots of y in the prime field Fp as follows:
If y is a quadratic non-residue, then y=∅ (an empty set), and if y=0, then y={0}. Moreover if y=0 is a quadratic residue, then it has precisely two roots y={x,p−x} for some x∈Fp. We adopt the convention to call the smaller one (when interpreted as an integer) the positive square root and the larger one the negative square root.
If p∈P≥3 is an odd prime number with associated prime field Fp, then there are precisely (p+1)/2 many quadratic residues and (p−1)/2 quadratic non-residues.
Legendre symbol
In order to describe whether an element of a prime field is a square number or not, the so-called Legendre symbol can sometimes be found in the literature.
Let p∈P be a prime number and y∈Fp an element from the associated prime field. Then the Legendre symbol of y is defined as follows:
The Legendre symbol provides a criterion to decide whether or not an element from a prime field has a quadratic root or not. This, however, is not just of theoretical use: the so-called Euler criterion provides a compact way to actually compute the Legendre symbol. To see that, let p∈P≥3 be an odd prime number and y∈Fp. Then the Legendre symbol can be computed as follows:
Last updated