Chapter 4. Finite Fields

Table of Contents

Groups, Modular Arithmetic and Finite Fields
Galois' Theorem and Polynomial Arithmetic
GF(pm)
GF(2m)

The origins and history of finite fields can be traced back to the 17th and 18th centuries, but there, these fields played only a minor role in the mathematics of the day. In more recent times, however, finite fields have assumed a much more fundamental role and in fact are of rapidly increasing importance because of practical applications in a wide variety of areas such as coding theory, cryptography, algebraic geometry and number theory.

Groups, Modular Arithmetic and Finite Fields

The structure of a finite field is a bit complex. So instead of introducing finite fields directly, we first have a look at another algebraic structure: groups. A group is a non-empty set (finite or infinite) G with a binary operator • such that the following four properties (Cain) are satisfied:

  • Closure: if a and b belong to G, then a•b also belongs to G;

  • Associative: a•(b•c)=(a•b)•c for all a, b, c in G;

  • Identity element: there is an element e in G such that a•e = e•a = a for every element a in G;

  • Inverse element: for every element a in G, there's an element a' such that a•a' = e where e is the identity element.

We usually denote a group by (G, •) or simply G when the operator is clear in the context. In general, a group is not necessarily commutative, i.e. a•b = b•a for all a and b in G. However, some groups do have this property. These commutative groups are also called Abelian groups. The name comes from, not the Bible, but from Niels Henrik Abel who was a Norwegian mathematician. If G has finitely many elements, we say that G is a finite group. The order of G is the number of elements in G; it is denoted by |G| or #G. Next, let us examine several sets and operations commonly used in mathematics to see whether they form groups or not.

The first set is the set of integers (Z) and the operators are addition and multiplication. The algebraic properties of the combinations can be summarised as in the following table:

 Addition Multiplication 
Closurea+b is an integera*b is an integer
Associativitya+(b+c) = (a+b)+ca*(b*c) = (a*b)*c
Existence of an identity elementa+0 = aa*1 = a
Existence of inverse elementsa+(-a) =0Only 1 and -1 have inverses: 1*1 = 1, -1*(-1) = 1
Commutativitya+b = b+aa*b = b*a

From the table, we can conclude that (Z, +) is a group but (Z, *) is not a group. The reason why (Z, *) is not a group is that most of the elements do not have inverses. Furthermore, addition is commutative, so (Z, +) is an abelian group. The order of (Z, +) is infinite.

The next set is the set of remainders modulo a positive integer n (Zn), i.e. {0, 1, 2, ..., n-1}. The operations are addition modulo n and addition modulo n.

 Addition modulo nMultiplication modulo n
Closurea+bc mod n, 0 ≤ c ≤ n-1a*bc mod n, 0 ≤ c ≤ n-1
Associativitya+(b+c) ≡ (a+b)+c mod na*(b*c) ≡ (a*b)*c mod n
Existence of an identity elementa+0 ≡ a mod na*1 ≡ a mod n
Existence of inverse elementsa+(n-a) ≡ 0 mod na has the inverse only when a is coprime to n
Commutativitya+b ≡ b+a mod na*b ≡ b*a mod n

Again (Zn, +) is a group and (Zn, *) is not. (Zn, +) is Abelian and finite. The order of (Zn, +) is n. Note that 0 is an element of Zn and 0 is not coprime to any number so that is no inverse for 0. Therefore (Zn, *) is not a group.

Important

Zn (or Z/nZ) is usually used to denote the group (Zn, +), i.e. the additive group of integers modulo n.

The last set is the set of remainders coprime to the modulus n. For example, when n = 8, the set is {1, 3 , 5, 7}. In particular, when n is a prime number, the set is {1, 2, ..., n-1}. Let's call this set Coprime-n. The operators are are addition modulo n and addition modulo n.

 Addition modulo nMultiplication modulo n
Closurea+b may be not in Coprime-n.a*bc mod n, c is in Coprime-n
Associativitya+(b+c) ≡ (a+b)+c mod na*(b*c) ≡ (a*b)*c mod n
Existence of an identity elementNoa*1 ≡ a mod n
Existence of inverse elementsNothe inverse exists for every a in Coprime-n
Commutativitya+b ≡ b+a mod na*b ≡ b*a mod n

Now (Coprime-n, +) is not a group and (Coprime-n, *) is a group. (Coprime-n, *) is Abelian and finite. When n is a prime number, the order of (Coprime-n, *) is n-1. But this only holds when n is a prime number. For example, when n =8, the order of (Coprime-8, *) is 4 not 7.

Important

Zn* is usually used to denote (Coprime-n, *), i.e. the multiplicative group of integers modulo n.

Now we are ready for finite fields. A field is a non-empty set F with two binary operators which are usually denoted by + and *, that satisfy the usual arithmetic properties:

  • (F, +) is an Abelian group with (additive) identity denoted by 0.

  • (F\{0}, ·) is an Abelian group with (multiplicative) identity denoted by 1.

  • The distributive law holds: (a+b)*c = a*c+b*c for all a, b, c ∈ F.

If the set F is finite, then the field is said to be a finite field. The order of a finite field is the number of elements in the finite field. By definition, (Z, +, *) does not form a field because (Z\{0}, *) is not a multiplicative group. (Zn, +, *) in general is not a finite field. For example, Z8/{0} = {1, 2, 3, 4, 5, 6, 7} along with modulo 8 multiplication does not form a group. However, when n is a prime number, things become different. For example Z5/{0} ={1, 2, 3, 4} along with modulo 5 multiplication forms the Abelian group Z5*. Therefore, (Z5, +, *) is a finite field. There is a (not so funny) limerick may help you memorise this fact:

In arctic and tropical climes,

The integers, addition, and times,

Taken (mod p) will yield

A full finite field,

As p ranges over the primes.