Let
be a polynomial over
.
We say that
is irreducible if there do not exist polynomials
of lower degree than
such that
.
Let
be the algebraic closure of
.
Let
be a root of
, i.e.
.
If
is an irreducible polynomial of degree
then
.
``Fermat's Little Theorem for
'' states that
for all
, if
then
(equality in the field
).
Therefore
divides
and since
is
irreducible, this implies that
divides
.
Moreover,
does not divide
for any
.
Combining the preceding two exercises we obtain a polynomial time
algorithm for testing irreducibility of polynomials over
.