Professional Documents
Culture Documents
Mathematics
The set of integers (positive, negative, and zero) forms a ring under the usual
operations of addition and multiplication. This ring is conventionally denoted by
the label Z.
r = + s.
• The least common multiple of two integers r and s, denoted by LCM(r, S),
is the smallest positive integer that is divisible by both of them.
e.g LCM(8, 20) = 40
• s = Rd[c]
s is the remainder or residue of c when divided by d
• s c (mod d).
s is congruent to c modulo d.
It means that s and c have the same remainder when divided by d, but s is not
necessarily smaller than d.
Hence,
(i) Rd[a + b] = Rd { Rd [a] + Rd [b] }
(ii) Rd [a . b] = Rd { Rd [a] . Rd [b]}
Euclidean Algorithm
Given two distinct non-zero integers r and s, their GCD can be computed by an
iterative application of the division algorithm. Suppose that r < s and that both are
positive; the algorithm is
Corollary : For any integers r and s, there exist integers a and b such that
GCD(r, s) = ar + bs.
11 = 33 – 22
= 33 – (154 – 33 . 4)
= 5 . 33 – 154 = 5(803 – 5 . 154) – 154
Error Control Coding 34 Fall 21
= 5 . 803 – 26 . 154
= 5 . 803 + (-26) . 154
GCD = a . r + b .s
Definition : Let q be a positive integer. The quotient ring, called the ring of
integers modulo q and denoted by Z/(q), is the set {0,...,q- 1} with addition and
multiplication defined by
a + b = Rq[a + b]
a.b = Rq[ab]
• Two elements a and b of Z that map into the same element of Z/(q) are
congruent modulo q, and
Proof: Exercise.
Recall that GF(2), GF(3) can be described as addition and multiplication modulo
2 and 3.
Theorem : The quotient ring Z/(q) is a field if and only if q is a prime integer.
Proof
Suppose that q is a prime.
We must show that every nonzero element has a multiplicative inverse
s (0) Z/(q) . Then
1 < s < q-l
Because q is prime, GCD(s, q)= 1
1 = aq + bs for some integers a and b.
1 = Rq[1] = Rq[aq + bs] = Rq{Rq[aq] + Rq[bs]}
= Rq[bs] = Rq{Rq[b] Rq[s]}
= Rq{Rq[b] . s}
Error Control Coding 35 Fall 21
Hence Rq[b] is a multiplicative inverse for s under modulo-q multiplication.
Now suppose that q is composite. Then q = rs. If the ring is a field, then r has an
inverse r-1. Hence
Whenever the quotient ring Z/(q) is a field, it is also called by the name GF(q).
POLYNOMIAL RINGS
A polynomial over the field GF(q)
f(x)=fn-1xn-1+fn-2xn-2+ … + f1x+f0
• The set of all polynomials over GF(q) forms a ring if addition and multi-
plication are defined as the usual addition and multiplication of
polynomials.
GF(q)[x]
GCD[r(x), s(x)] = the monic polynomial of largest degree that divides r(x), s(x).
LCM[r(x), s(x)] = the monic polynomial of smallest degree divisible by r(x), s(x)
Formal Derivative.
r(x)=rn-1xn-1+rn-2xn-2+ … + r1x+r0
r’(x)=((n-1))rn-1xn-2 + ((n-2)) rn-2 xn-3+ … + r1
((i)) = 1 + 1+ … + 1
The remainder
s(x) = Rd(x) [c(x)]
s(x) c(x) (mod d(x))
Theorem
(i) Rd(x)[a(x)+ b(x)] = Rd(x)[a(x)] + Rd(x)[b(x)]
(ii) Rd(x)[a(x) . b(x)] = Rd(x){Rd(x)[a(x)] . Rd(x)[b(x)]}
Error Control Coding 37 Fall 21
Theorem (Unique Factorization Theorem)
A nonzero polynomial p(x) over a field has a unique factorization (up to the order
of the factors) into a field element times a product of prime polynomials over the
field.
ak(x)’s are different from all of the bj(x)’s otherwise common terms
could be canceled to give a lower-degree polynomial
Suppose that b1(x) has degree not larger than that of a1(x). Then
where deg s(x) < deg b1(x) < deg a1(x). Then
Factor both s(x) and the bracketed term into their prime factors
Divide by a field element to make all factors monic.
Because b1(x) does not appear on the left side, we have two different
factorizations of a monic polynomial whose degree is smaller than the
degree of p(x).
The contradiction proves the theorem.
Theorem : A polynomial p(x) has field element as a zero if and only if (x -) is
a factor of p(x). Furthermore, at most n field elements are zeros.
Definition : For any monic polynomial p(x) with nonzero degree over the field F,
the ring of polynomial modulo p(x) is the set of all polynomials with degree
smaller than that of p(x), together with polynomial addition and polynomial
multiplication modulo p(x).
F[x]/(p(x)).
Exercise.
E.g the ring of polynomials over GF(2), choose p(x)= x3 + 1. Then the ring of
polynomials modulo p(x) is GF(2)[x]/(x3 + 1).
{0, 1, x, x+1, x2, x2+1, x2+x, x2+x+1}
Error Control Coding 39 Fall 21
In this ring, (x2+1).(x2) = R [(x2 +1) . x2]
x 3 +1
=R [x(x3+1)+x2+x] = x2+x
x 3 +1
( because x4=x(x3+1)+x = x4+x+x )
Proof Suppose that p(x) is prime. To prove that the ring is a field, we must show
that every nonzero element has a multiplicative inverse.
Let s(x) F[x]/((p(x))).Then, deg s(x) < deg p(x).
Hence,
1 = Rp(x)[1] = Rp(x)[a(x) p(x) + b(x) s(x)]
= Rp(x){ Rp(x)[b(x)] Rp(x)[s(x)]}
= Rp(x){ Rp(x)[b(x)] . s(x)}
Whenever we can find a prime polynomial of degree n over GF(q), then we can
construct a Galois field with qn elements. In this construction, the elements are
represented by polynomials over GF(q) of degree less than n. There are qn such
polynomials and hence this many elements in the field.
Construction of GF(4)
Select p(x) = x2 + x +1 over GF(2). Field elements are
{0, 1, x, x+1}
+ 0 1 x x+1 . 0 1 x x+1
0 0 1 x x+1 0 0 0 0 0
1 1 0 x+1 x 1 0 1 x x+1
x x x+1 0 1 x 0 x x+1 1
x+1 x+1 x 1 0 x+1 0 x+1 1 x
0 00 0 0
1 01 1 1 x2 = x2 +x +1 + x +1
x 10 2 x Rp(x)[x2] = x + 1
x+1 11 3 x2
Binary Integer Exponential
GF(4)
+ 0 1 2 3 . 0 1 2 3
0 0 1 2 3 0 0 0 0 0
1 1 0 3 2 1 0 1 2 3
2 2 3 0 1 2 0 2 3 1
3 3 2 1 0 3 0 3 1 2
21=2, 22 = 4, 23 = 3, 24 = 1
Similarly, 31=3, 32 = 4, 33 = 2, 34 = 1
3 is also a primitive element of GF(5).
Order of this group is divisible by the order of any of its elements. [h, h 2, h3, …,
hc=1]
Theorem : Let 1, 2 , ….., q-1 denote the nonzero field elements of GF(q). Then
xq-1 - 1 (x - 1) ( x - 2)....(x -q-1).
Proof
GF(q) – contains q elements
The group under the multiplication contains q-1 elements (zero is not included)
Let be any nonzero element of GF(q), and let h be its order under the operation
of multiplication.
h = 1 h divides q-1.
(because , , …, h-1, h =1 is a subgroup
2
order of a subgroup divides
order of group coset decomposition)
Proof
If q- 1 is a prime every element except 0 and 1 has order q- l
Error Control Coding 42 Fall 21
Every element is primitive
GF(q) under multiplication is a cyclic group.
(q −1) /p iv i
Let bi = a i
s
b= bi
i =1
v
• The element bi has order p i i .
(q −1) /p iv i
b i i = a i(q −1) = 1
v
p i
Proof : bi = a i
v
order of bi divides p i i .
n
order of bi - p i i if ni < vi
( v −1)
pi i
bi =1
( v −1)
p i (q −1) /p i
But b i i = ai 1
v
bi has order p i i .
=z
2 = z2
3 = z + l
4 = z4 (z3 + z + 1) z + z2 + z z2 + z
5 = z5 (z3 + z + 1) z2 + z3 + z2 (z+1) + z2
6 = z6 (z3 + z + 1) z3 + z4 + z3 (z2 + z ) + (z+1) z2 +1
7 = z7 (z3 + z + 1) z4 + z5 + z4 (z2 + z +1) + (z2 + z ) 1
45 = 9 = 7.2 = 2 = z2
13 = 76 = 6 = z2 +1
* GF(16) q-1 = 15 every nonzero element has order that divides 15.
i.e. 1, 3, 5, or 15. An element with order 15 is primitive.
Definition : The number of clements in the smallest subfield of GF(q) is called the
characteristic of GF(q).
Theorem : Each Galois field contains a unique smallest subfield, which has a
prime number of elements. Hence the characteristic of every Galois field is a
prime number.
Proof
The field contains the elements 0 and 1. To define the subfield, consider the
subset G = {0, 1, 1+1, 1+1+1, ….} {0, 1, 2, 3, …}
a cyclic subgroup under addition
Error Control Coding 44 Fall 21
contains a finite number, p, of elements
. = (1 + 1 + … + l ) . = + + … +
multiplication is modulo p.
Thus the subset G contains the identity clement, is closed under addition and
multiplication, and contains all inverses under addition and multiplication.
G is a subfield, and it has modulo p arithmetic.
According to definition of fields, p must be a prime.
G GF(p).
Definition : Let GF(q) be a field and let GF(Q) be an extension field of GF(q). Let
be in GF(Q). The prime polynomial f(x) of smallest degree over GF(q) with f()
= 0 is called the minimal polynomial of over GF(q).
Proof
is always a zero of xQ-x which is a polynomial over GF(q). Now use the unique
factorization theorem:
where the factors on the right side are all prime polynomials over GF(q).
If is a zero of the left side, then it must be a zero of some term on the
right side
xQ - x = f1(x).f2(x)....fk(x)
Proof
as seen earlier.
Theorem : Let g(x) be any polynomial over GF(q). Then there exists an
extension field GF(Q) in which g(x) can be expressed as the product of linear
factors.
Definition : Any extension field of GF(q) in which g(x),a polynomial over GF(q),
factors into linear and constant terms is called a splitting field of g(x).
Also if
Also f() = 0
Corollary : Every Galois field has pm elements for some positive integer m and
prime p.
Proof
• Every Galois field has a subfield with p elements to which the earlier
theorem applies.
• For every prime p and positive integer m, there is a Galois field with p m
elements.
• For every finite field GF(q) and positive integer m, there exists at least one
prime polynomial over GF(q) of degree m.
• For every finite field GF(q) and positive integer m, there exists at least one
primitive polynomial over GF(q) of degree m.