Roots of Polynomials
Example: What are the roots of modulo some prime ?
Clearly, works, but are there any other solutions?
Suppose . As is prime, we see divides or divides . These cases correspond to the solutions we already have, so there are no more solutions.
More generally, we have the following:
Theorem: Let be a polynomial over of degree . Then has at most roots.
Proof: We induct. For degree 1 polynomials , we have the unique root .
Suppose is a degree with at least one root . Then write where has degree . Now means is a multiple of .
Since is prime, divides , or divides . In the former case, we have the root , and the latter case is equivalent to saying , which by induction has at most solutions.
Composite Moduli
Let be a product of distinct primes: . The Chinese Remainder Theorem implies we can solve a polynomial over each and then combine the roots together to find the solutions modulo . This is because a root of in corresponds to
where each is a root of in .
Example: Solve .
has the solutions and (since they are both prime), thus the solutions modulo are the ones corresponding to:
-
: this is
-
: this is
-
: this is
-
: this is
Generalizing the last example, whenever is the product of two distinct odd primes we always have four square roots of unity. (When one of the primes is we have a degenerate case because .) An interesting fact is that if we are told one of the non-trivial square roots, we can easily factorize (how?).
In order to describe the solutions of a polynomial over for any , we need to find the roots of over for prime powers . We shall leave this for later.
Wilson’s Theorem
Since the only square roots of 1 modulo are for a prime , for any element , we have unless . Thus in the list we have each element and its inverse exactly once, hence . On the other hand when is composite, is divisible by all the proper factors of so we have:
Theorem: For an integer we have if and only if is prime.
At first glance, this seems like a good way to tell if a given number is prime but unfortunately there is no known fast way to compute .
Wilson’s Theorem can be used to derive similar conditions:
Theorem: For an odd integer , let . Then
if and only if is prime.
Proof:
and the result follows from Wilson’s Theorem.