Square Roots
Let be a prime number and its associated prime field. Then a number is called a square root of another number , if is a solution to the following equation:
In this case, is called a quadratic residue. On the other hand, if is given and the quadratic equation has no solution , we call a quadratic non-residue.
For any , we denote the set of all square roots of in the prime field as follows:
If is a quadratic non-residue, then (an empty set), and if , then . Moreover if is a quadratic residue, then it has precisely two roots for some . 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 is an odd prime number with associated prime field , then there are precisely many quadratic residues and 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 be a prime number and an element from the associated prime field. Then the Legendre symbol of 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 be an odd prime number and . Then the Legendre symbol can be computed as follows:
Last updated