Every field of Section 2.1 is infinite. Number
Systems: From
to has
already met finite ones: it proved that the integers
modulo a prime
form a field (Number Systems: From to , Theorem 3.5.2).
This section restates that result in the language of Definition 2.1.1, gives
these fields a name of their own, , and computes in
them: inverses, linear equations, and the elimination
method of Section 2.1, now run modulo . Finite fields are not
a curiosity; coding theory and computer algebra do
linear algebra over them every day.
Arithmetic
modulo n, recalled
Fix an integer . The ring of Number Systems: From to , Definition 3.4.2
consists of the classes of integers under congruence modulo
, and two classes
are equal exactly when their representatives differ by a
multiple of :
This is the class test of Number
Systems (Number Systems: From to , Theorem 3.4.1
(a), read with Number Systems: From to , Definition 3.4.2).
Sums and products are computed on representatives. The
first example collects what is known about this
arithmetic, in the language of Definition 2.1.1.
Example
(Arithmetic on and the Field
)
Let , and
define and for . Show that
these operations are well defined, that they satisfy
every clause of Definition 2.1.1 except
possibly (F8) and the condition in (F7), and that
holds
exactly when . Then write out the addition and
multiplication tables for .
Solution. All of this was proved in
Number Systems, and we collect it.
Well-definedness. The formulas use
representatives, so the answer must not depend on which
representatives are chosen. For the ideal of this is Number Systems: From to , Theorem 3.4.1
(b), and
is defined as that quotient (Number Systems: From to , Definition 3.4.2).
The clauses. By Number Systems: From to , Theorem 3.4.3
(a), is a
commutative ring with zero and one : clauses (F1)–(F6)
and (F9) hold, and so does (F7) without the condition
. The
negative of is
, since .
The condition . By Number Systems: From to , Theorem 3.4.3
(c), if
and only if . For every class equals , and is the zero
ring.
Size. By Number Systems: From to , Theorem 3.4.3
(b), each class is for exactly one , the remainder of any representative on
division by . So
has
exactly
elements.
The tables for . Write and for and . Since and , the
class test gives ; the other entries are read off
directly: Here (F8) holds as well: the only non-zero
element is , and
. So
is a field. In it , and therefore
.
The tables of are those of the
two-element field of Number Systems: From to , Example (A field with two elements that cannot be ordered),
with and read as classes. The
one surprise is : it says that is even, and nothing
more. It is also the field promised by the warning on
order in Section 2.1, where “” fails.
Which
moduli give fields
For ,
whether is
a field now comes down to one clause, (F8): does every
non-zero class have an inverse? An inverse of is a class with , that is, an
integer with
, that
is, integers
with .
Such a combination is what Bézout’s theorem produces.
The linear-algebra volumes cite it in the following
special form.
Lemma
2.2.1 (Bézout’s Lemma for Integers)
Let
with , and
suppose that the only positive integer dividing both
and is . Then there are with
Proof. Since , , so
is a common divisor of and with (Number Systems: From to , Definition 3.2.2
and the well-definedness paragraph after it). By
hypothesis, .
So and are coprime, and Number Systems: From to , Corollary 3.2.2
gives
with .
The general statement, for any pair of integers not
both zero and with in place of , is Number Systems: From to , Theorem 3.2.1;
the Euclidean algorithm computes the and . We keep the special
case under its own name because the linear-algebra
volumes cite it in this form.
Theorem
2.2.2 ( Is a Field
Exactly for Prime )
Let be
an integer. Then is a field (Definition 2.1.1) if and
only if is
prime.
Idea. By Example (Arithmetic on and the
Field ),
only (F8) is in question. If is prime and , then , so the only
positive common divisor of and is , and Lemma 2.2.1 hands over
, that
is, .
If instead
with , then with both factors non-zero, which Theorem 2.1.1 (f) forbids
in a field. Number Systems ran this argument,
with Number Systems: From to , Theorem 3.5.1
in the role of the lemma.
So for each prime there is a field with
exactly elements,
and for each composite the ring is not a field.
The fields deserve a short name.
The fields
with p elements
Definition
2.2.1 (The Field )
Let be a
prime. The field is , with the
operations of Example (Arithmetic on and the
Field ).
It has exactly
elements (Number Systems: From to , Theorem 3.4.3
(b)), which we write , without brackets: the number
stands for the class . For integers , “ in ” means , that is, .
So , , , , , … are fields,
by Theorem 2.2.2, while , and are not. To
decide that a given is prime, the remark
after Number Systems: From to , Lemma 3.3.4
says it is enough to check that no with divides
.
Computing in is computing with
integers and replacing the answer by its remainder on
division by . The
words “in ”
must be said whenever an equation would be false in
: “ in ” is true, because
;
“”
alone is false. Every result of Section 2.1 now holds in
. For
instance, by Corollary 2.1.2 the only
elements of
whose square is
are and .
Quick check. Find the inverse of
in .
Solution. The inverse is the
with .
Testing the candidates in turn, the products leave
remainders , and . So in , and by Theorem 2.1.1 (c) it is the
only inverse.
For small ,
trial is fast. For larger the Euclidean algorithm
of Number Systems finds the inverse directly:
if ,
then
by Number Systems: From to , Corollary 3.2.2,
and Number Systems: From to , Theorem 3.5.1
gives .
Example
(Inverses in
and in )
- (i) List the
inverses of the non-zero elements of . (ii) Find the
inverse of in
.
Solution.
(i) In : since , and . So , , , , , , using (F6) for the reversed pairs. Each
element of appears exactly
once as an inverse, as it must: the inverse of is (Theorem 2.1.1 (g)), so two
elements with the same inverse are equal. The elements
and are their own
inverses, and by Corollary 2.1.2 no others
are.
(ii) First, is prime, by the
criterion recalled after Definition 2.2.1: no with divides it
(the remainders of on division by are ), and . Run the Euclidean algorithm on
: Back-substitute from the last line: So , hence (Number Systems: From to , Corollary 3.2.2),
and Number Systems: From to , Theorem 3.5.1
gives
in .
Check: .
Since is a
field, each result of Section 2.1 about equations holds
there word for word; what changes is how the numbers are
computed. An elimination of the same kind as Section
2.1’s opening one, done over , looks like
this.
Example
(Elimination over )
Solve the system , over .
Solution. In the inverses are
, , and , since and
.
By elimination. Scale the first equation by
. In
, , and , so the
scaled equation reads . Taking times it away from the
second equation removes and leaves since and . Multiply by : . Then in .
By the formula. With , , , , , , the coefficient
is non-zero, so Proposition 2.1.3 (b)
applies: The two methods agree. Check: and
in . By Proposition 2.1.3 (b),
is
the only solution.
Quick check. Which elements satisfy
?
Solution. Exactly and . By Corollary 2.1.2, if and only if
or , and in , since . Check:
.
Warning. A non-zero class of need not have an
inverse. In the equation
has
no solution, since is always one of
; and
has
two solutions, and (as ). So division
by modulo is allowed when is prime and , or more
generally when (Number Systems: From to , Theorem 3.5.1),
and not otherwise.
Exercises
A. Check your
understanding
Exercise
(A1)
- (a) True or false:
is a
field. Justify your answer.
- (b) List the
inverses of in .
- (c) Compute in .
- (d) True or false:
for every
.
- (e) How many
elements does have, and is
in ?
Solution.
(a) False. is not
prime, so Theorem 2.2.2 applies;
concretely with and , which Theorem 2.1.1 (f) forbids
in a field.
(b) , , , , as in Example (Elimination over ).
(c) , so the answer is .
(d) True: and in . (This agrees with
Exercise (B1) (c): the
solutions of in any field are and , and has no other
elements.)
(e) is prime (neither
nor divides it, and ),
so is
defined and has
elements. And in , since .
B. Practice
Exercise
(B1)
- (a) Solve in .
- (b) Solve the system
, over .
Solution.
(a) Adding to both sides gives
in . Since
in , , and Proposition 2.1.3 (a) gives
. Check: .
(b) Here , , , , , , and in . Since , . By Proposition 2.1.3 (b),
since . Check:
and in . Hence , and it
is the only solution.
Exercise
(B2: Which Are Fields?)
Determine which of , , and are fields.
Justify your answer.
Exercise
(B3)
Find all solutions of in , and all solutions
of in .
Solution. In , . By Corollary 2.1.2, holds
exactly for
and .
Check: .
In the
squares of are . None is , so has no solution
in .
C. Going deeper
Exercise
(C1: A Field with Four Elements)
Let be the set
of formal expressions with : four symbols , , and , where means and . Define with all arithmetic of coefficients in . (The product is
what multiplying out gives if is replaced by
.)
- (a) Write out the
addition and multiplication tables of .
- (b) Prove that is a field.
- (c) Show that there
is no bijection with and for all . So this
four-element field is not in
disguise.
Solution (Hint 1). For (c): where
must send
?
Solution (Hint 2). For (c): look
for a non-zero element of whose square is
zero, and ask which element of is sent to it.
Solution.
(a) Using the
formulas, with in : For instance, , and .
(b) Let , , with
. Since is a field (Example (Arithmetic on and the
Field )),
the coefficients obey every rule of Section 2.1, and in
addition for every .
Addition works on each coefficient
separately, so (F1) and (F2) for are (F1) and (F2) for
, applied
twice; the element satisfies (F3); and satisfies (F4),
since and
.
(F6). Exchanging with leaves the product
formula as it was: and , by (F1) and (F6) in .
(F7). With , . And , because the
first coefficients and of differ.
(F9). Since , and multiplying out the coefficients regroups
this as .
(F5). Write with and . Then , and multiplying out, where the second line uses . On the
other side, with and , and . Multiplying
out gives and , again using . The
coefficients agree, so .
(F8). From the table, and . So every non-zero element has an inverse:
, ,
.
This proves that is a field.
- (c) Assume, for a
contradiction, that is such a
bijection. To begin, in . Adding to both sides
gives ; this is additive cancellation, whose proof
(Theorem 2.1.1 (b), first
half) uses only (F1)–(F4), which hold in the commutative
ring (Number Systems: From to , Theorem 3.4.3
(a)). Surjectivity provides with ; this
is not , because .
But and injectivity turns this into . By (b), is a field, so Theorem 2.1.1 (f) gives
, a
contradiction. Hence no such exists.
Marking scheme. (10 points)
- 2: (a) both tables correct, with at least one
product computed from the formula.
- 1: (b) addition clauses (F1)–(F4), coefficientwise,
with .
- 1: (b) (F6) and (F7), including .
- 2: (b) (F5) and (F9) by expanding coefficients, with
in used and
named.
- 1: (b) (F8) from the table.
- 1: (c) , with the cancellation justified in .
- 2: (c) an with by surjectivity, then by injectivity,
contradicting the absence of zero divisors in . A solution that
instead takes
with by surjectivity and uses in (from the addition
table) to get
earns these 2 points; still
earns the line above.
Fatal errors (0 for the step): “ is because both
have four elements”; using in (c) that is a field. A
solution of (b) that checks (F5) and (F9) by listing all
triples from the
tables earns the same points.
By Theorem 2.2.2, is not a field,
so a field with four elements cannot be found among the
rings ;
part (c) shows that is not even a disguised
copy of .
Chapter 5 builds this field again, from polynomials over
, and explains
where the rule comes from.
Exercise
(C2: Find the error)
Here is a claim with a proof.
Claim. Let be a prime. Then is a field.
Proof. (1) By Example (Arithmetic on and the
Field ),
only (F8) needs checking. (2) Let ; then . (3) Put .
(4) Then . (5) So every non-zero class has
an inverse, and is a field.
Is the claim true? Does the proof prove it? If not,
name the line that fails, the error, and give a
counterexample to the step.
Solution. The claim is
true: it is Theorem 2.2.2, direction
.
The proof is wrong, at line (3), and
line (4) inherits the fault. The classes of are classes of
integers, and “” names a class only
when is an
integer, that is, when or . The rule of Number Systems: From to , Definition 3.4.2
is stated for integers only; line (4) applies it to the non-integer
, a general
“fact” that no result supplies. This is entry (N9) of Logic and Proof, Example (What is not allowed):
citing a line that is not available. The proof also
never uses that
is prime, a sign that something is wrong: the same lines
would “prove” that is a field.
A counterexample to the step: , . Then , so is not an element
of . (The
inverse of
exists, but it is , which line (3) does
not produce.)
A repair: since is prime and , the only
positive common divisor of and is ; Lemma 2.2.1 gives , and then
, because .
Exercise
(C3)
Find all solutions of in , in and in .
Solution. Each field is finite, so
we can test every element; this finds all solutions.
In : the
values at
are and . No
solution.
In : the
values at are ,
and . The only
solution is .
In : the
values at are the remainders of
on division by ,
namely . The solutions are and , since
and
.
The three answers differ in number (none, one, two),
although the equation looks the same. Section 2.5
returns to this equation with completing the square,
which needs
to be invertible: it is in and , and it is not in
.