- •List of Symbols
- •Classical Algebra
- •Modern Algebra
- •Binary Operations
- •Algebraic Structures
- •Extending Number Systems
- •Algebra of Sets
- •Number of Elements in a Set
- •Boolean Algebras
- •Propositional Logic
- •Switching Circuits
- •Divisors
- •Posets and Lattices
- •Normal Forms and Simplification of Circuits
- •Transistor Gates
- •Representation Theorem
- •Exercises
- •Groups and Symmetries
- •Subgroups
- •Cyclic Groups and Dihedral Groups
- •Morphisms
- •Permutation Groups
- •Even and Odd Permutations
- •Equivalence Relations
- •Normal Subgroups and Quotient Groups
- •Morphism Theorem
- •Direct Products
- •Groups of Low Order
- •Action of a Group on a Set
- •Exercises
- •Translations and the Euclidean Group
- •Matrix Groups
- •Finite Groups in Two Dimensions
- •Proper Rotations of Regular Solids
- •Finite Rotation Groups in Three Dimensions
- •Necklace Problems
- •Coloring Polyhedra
- •Counting Switching Circuits
- •Exercises
- •Monoids and Semigroups
- •Finite-State Machines
- •Quotient Monoids and the Monoid of a Machine
- •Exercises
- •Rings
- •Integral Domains and Fields
- •Subrings and Morphisms of Rings
- •New Rings From Old
- •Field of Fractions
- •Convolution Fractions
- •Exercises
- •Euclidean Rings
- •Euclidean Algorithm
- •Unique Factorization
- •Factoring Real and Complex Polynomials
- •Factoring Rational and Integral Polynomials
- •Factoring Polynomials over Finite Fields
- •Linear Congruences and the Chinese Remainder Theorem
- •Exercises
- •Ideals and Quotient Rings
- •Computations in Quotient Rings
- •Morphism Theorem
- •Quotient Polynomial Rings that are Fields
- •Exercises
- •Field Extensions
- •Algebraic Numbers
- •Galois Fields
- •Primitive Elements
- •Exercises
- •Latin Squares
- •Orthogonal Latin Squares
- •Finite Geometries
- •Magic Squares
- •Exercises
- •Constructible Numbers
- •Duplicating a Cube
- •Trisecting an Angle
- •Squaring the Circle
- •Constructing Regular Polygons
- •Nonconstructible Number of Degree 4
- •Exercises
- •The Coding Problem
- •Simple Codes
- •Polynomial Representation
- •Matrix Representation
- •Error Correcting and Decoding
- •BCH Codes
- •Exercises
- •Induction
- •Divisors
- •Prime Factorization
- •Proofs in Mathematics
- •Modern Algebra in General
- •History of Modern Algebra
- •Connections to Computer Science and Combinatorics
- •Groups and Symmetry
- •Rings and Fields
- •Convolution Fractions
- •Latin Squares
- •Geometrical Constructions
- •Coding Theory
- •Chapter 2
- •Chapter 3
- •Chapter 4
- •Chapter 5
- •Chapter 6
- •Chapter 7
- •Chapter 8
- •Chapter 9
- •Chapter 10
- •Chapter 11
- •Chapter 12
- •Chapter 13
- •Chapter 14
- •Index
FACTORING POLYNOMIALS OVER FINITE FIELDS |
195 |
|
For example, Eisenstein’s criterion can be used to show that x5 |
− |
2, |
x7 + 2x3 + 12x2 − 2 and 2x3 + 9x − 3 are all irreducible over Q. |
|
|
Example 9.31. Show that φ(x) = xp−1 + xp−2 + · · · + x + 1 is irreducible over Q for any prime p. This is called a cyclotomic polynomial and can be written
φ(x) = (xp − 1)/(x − 1).
Solution. We cannot apply Eisenstein’s criterion to φ(x) as it stands. However,
if we put x = y + 1, we obtain |
|
|
|||||||||
1 |
|
|
+ 1)p |
|
|
|
|
|
|||
φ(y + 1) = |
|
|
[(y |
− 1] |
|
|
|||||
y |
|
|
|||||||||
= yp−1 + p 1 yp−2 + p 2 yp−3 + · · · + 2 y + p |
|||||||||||
|
|
|
|
|
|
|
p |
|
p |
p |
|
|
|
|
|
|
|
|
− |
|
− |
|
|
p |
p! |
|
|
|
|
|
|
||||
where k = |
|
|
|
|
is |
the binomial coefficient. |
Hence p divides |
||||
k!(p |
− |
k)! |
|||||||||
p |
|
|
p − 1, the prime p does not divide k!(p − k)!, so |
||||||||
|
|
|
|||||||||
k!(p − k)! k . If 1 k |
|||||||||||
|
p |
|
|
|
|
|
|
+ 1) is irreducible by Eisenstein’s criterion, so |
|||
it must divide k . Hence φ(y |
|||||||||||
φ(x) is irreducible. |
|
|
|
|
|
|
|
|
|||
FACTORING POLYNOMIALS OVER FINITE FIELDS
The roots of a polynomial in Zp [x] can be found by trying all the p possible values.
Example 9.32. Does x4 + 4 Z7[x] have any roots in Z7?
Solution. We see from Table 9.3 that x4 + 4 is never zero and therefore has no roots in Z7.
Proposition 9.33. A polynomial in Z2[x] has a factor x + 1 if and only if it has an even number of nonzero coefficients.
Proof. Let p(x) = a0 + a1x + · · · + anxn Z2[x]. By the factor theorem, (x + 1) is a factor of p(x) if and only if p(1) = 0. (Remember that x − 1 = x + 1
TABLE 9.3. Values Modulo 7
x |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
|
|
|
|
|
|
|
|
x4 |
0 |
1 |
2 |
4 |
4 |
2 |
1 |
x4 + 4 |
4 |
5 |
6 |
1 |
1 |
6 |
5 |
196 9 POLYNOMIAL AND EUCLIDEAN RINGS
in Z2[x].) Now p(1) = a0 + a1 + · · · + an, which is zero in Z2 if and only if p(x) has an even number of nonzero coefficients.
Example 9.34. Find all the irreducible polynomials of degree less than or equal to 4 over Z2.
Solution. Degree 1 polynomials are irreducible; in Z2[x] we have x and x + 1.
Let p(x) = a0 + · · · + anxn Z2[x]. If p(x) has degree n, then an is nonzero, so an = 1. The only possible roots are 0 and 1. The element 0 is a root if and only if a0 = 0, and 1 is a root if and only if p(x) has an even number of nonzero terms. Hence the following are the polynomials of degrees 2, 3, and 4 in Z2[x] with no linear factors:
x2 |
+ x + 1 |
+ x2 |
+ 1 |
(degree 2) |
x3 |
+ x + 1, x3 |
(degree 3) |
||
x4 |
+ x + 1, x4 |
+ x2 |
+ 1, x4 + x3 + 1, x4 + x3 + x2 + x + 1 |
(degree 4). |
If a polynomial of degree 2 or 3 is reducible, it must have a linear factor; hence the polynomials of degree 2 and 3 above are irreducible. If a polynomial of degree 4 is reducible, it either has a linear factor or is the product of two irreducible quadratic factors. Now there is only one irreducible quadratic in Z2[x], and its square (x2 + x + 1)2 = x4 + x2 + 1 is reducible.
|
|
Hence the |
irreducible polynomials of degree |
|
4 over Z |
2 |
are x, x |
+ |
1, |
|||||||||||||||||||||
|
2 |
3 |
+ |
|
+ 1, |
|
3 |
+ |
|
2 |
+ 1, |
|
4 |
+ |
|
|
|
4 |
+ |
|
3 |
|
|
|
||||||
x |
4 |
+ x |
3+ 1, |
2 |
|
x |
x |
|
x |
|
x |
|
x |
+ 1, |
x |
|
x |
|
+ 1, and |
|
|
|||||||||
x |
|
+ x |
+ x |
|
+ x + 1. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
For example, the polynomials of degree 4 in Z2[x] factorize into irreducible |
||||||||||||||||||||||||||||
factors as follows. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
x4 |
|
|
|
|
|
|
|
|
= x4 |
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
x4 + 1 |
|
|
|
|
|
|
|
= (x + 1)4 |
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
x4 + x |
|
|
|
|
|
|
|
= x(x + 1)(x2 + x + 1) |
|
|
||||||||||||||
|
|
|
|
|
|
x4 + x + 1 |
|
|
|
|
|
is irreducible |
|
|
|
|
|
|
|
|
||||||||||
|
|
|
|
|
|
x4 + x2 |
|
|
|
|
|
|
|
= x2(x + 1)2 |
|
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
x4 + x2 + 1 |
|
|
|
|
= (x2 + x + 1)2 |
|
|
|
|
|
|
|||||||||||||
|
|
|
|
|
|
x4 + x2 + x |
|
|
|
|
= x(x3 + x + 1) |
|
|
|
|
|
|
|||||||||||||
|
|
|
|
|
|
x4 + x2 + x + 1 |
|
|
= (x + 1)(x3 + x2 + 1) |
|
|
|||||||||||||||||||
|
|
|
|
|
|
x4 + x3 |
|
|
|
|
|
|
|
= x3(x + 1) |
|
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
x4 + x3 + 1 |
|
|
|
|
is irreducible |
|
|
|
|
|
|
|
|
|||||||||||
|
|
|
|
|
|
x4 + x3 + x |
|
|
|
|
= x(x3 + x2 + 1) |
|
|
|
|
|
||||||||||||||
|
|
|
|
|
|
x4 + x3 + x + 1 |
|
|
= (x + 1)2(x2 + x + 1) |
|
|
|||||||||||||||||||
|
|
|
|
|
|
x4 + x3 + x2 |
|
|
|
|
= x2(x2 + x + 1) |
|
|
|
|
|
||||||||||||||
|
|
|
|
|
|
x4 + x3 + x2 + 1 |
|
= (x + 1)(x3 + x + 1) |
|
|
||||||||||||||||||||
|
|
|
|
|
|
x4 + x3 + x2 + x |
|
= x(x + 1)3 |
|
|
|
|
|
|
|
|
||||||||||||||
|
|
|
|
|
|
x4 + x3 + x2 + x + 1 |
|
is irreducible |
|
|
|
|
|
|
|
|
||||||||||||||
LINEAR CONGRUENCES AND THE CHINESE REMAINDER THEOREM |
197 |
LINEAR CONGRUENCES AND THE CHINESE
REMAINDER THEOREM
The euclidean algorithm for integers can be used to solve linear congruences. We first find the conditions for a single congruence to have a solution and then show how to find all its solutions, if they exist. We then present the Chinese remainder theorem, which gives conditions under which many simultaneous congruences, with coprime moduli, have solutions. These solutions can again be found by using the euclidean algorithm.
First let us consider a linear congruence of the form
ax ≡ b mod n.
This has a solution if and only if the equation ax + ny = b
has integer solutions for x and y. The congruence is also equivalent to the equation [a][x] = [b] in Zn.
Theorem 9.35. The equation ax + ny = b has solutions for x, y Z if and only if gcd(a, n)|b.
Proof. Write d = gcd(a, n). If ax + ny = b has a solution, then d|b because d|a and d|n. Conversely, let d|b, say b = k · d. By Theorem 9.9, there exist s, t Z such that as + nt = d. Hence ask + ntk = k · d and x = sk, y = tk is a solution to ax + ny = b.
The euclidean algorithm gives a practical way to find the integers s and t in Theorem 9.35. These can then be used to find one solution to the equation.
Theorem 9.36. The congruence ax ≡ b mod n has a solution if and only if d|b, where d = gcd(a, n). Moreover, if this congruence does have at least one solution, the number of noncongruent solutions modulo n is d; that is, if [a][x] = [b] has a solution in Zn, then it has d different solutions in Zn.
Proof. The condition for the existence of a solution follows immediately from Theorem 9.35. Now suppose that x0 is a solution, so that ax0 ≡ b mod n. Let d = gcd(a, n) and a = da , n = dn . Then gcd(a , n ) = 1, so the following statements are all equivalent.
(i)x is a solution to the congruence ax ≡ b mod n.
(ii)x is a solution to the congruence a(x − x0) ≡ 0 mod n.
(iii)n|a(x − x0).
(iv)n |a (x − x0).
198 |
|
|
|
|
|
|
|
9 POLYNOMIAL AND EUCLIDEAN RINGS |
||
(v) |
n |(x − x0). |
|
|
Z. |
|
|
||||
(vi) |
x |
= |
x0 |
+ |
kn for some k |
|
|
|
||
|
|
|
|
|
|
|
||||
Now x0, x0 + n , x0 + 2n , . . . , x0 + (d − 1)n |
form a complete set of noncon- |
|||||||||
gruent solutions modulo n, and there are d such solutions. |
|
|||||||||
Example 9.37. Find the inverse of [49] in the field Z53. |
|
|||||||||
Solution. Let |
[x] = [49]−1 in |
Z53. Then |
[49] · [x] = [1]; that |
is, 49x ≡ 1 |
||||||
mod 53. We can solve this congruence by solving the equation 49x − 1 = 53y, where y Z. By using the euclidean algorithm we have
53 = 1 · 49 + 4 and 49 = 12 · 4 + 1.
Hence gcd(49, 53) = 1 = 49 − 12 · 4 = 49 − 12(53 − 49) = 13 · 49 − 12 · 53.
Therefore, 13 · 49 ≡ 1 mod 53 and [49]−1 = [13] in Z53. |
|
|
Theorem 9.38. Chinese Remainder Theorem. Let |
m = m1m2 · · · mr , |
where |
gcd(mi , mj ) = 1 if i = j . Then the system of simultaneous congruences |
|
|
x ≡ a1 mod m1, x ≡ a2 mod m2, . . . , |
x ≡ ar mod mr |
|
always has an integral solution. Moreover, if solution is the set of integers satisfying x ≡ b
b is one solution, the complete mod m.
|
Proof. This result follows from the ring isomorphism |
|
|
|
f : Zm → Zm1 × Zm2 × · · · × Zmr |
of |
Theorem 8.20 |
defined by f ([x]m) = ([x]m1 , [x]m2 , . . . , [x]mr ). The integer |
x |
is a solution |
of the simultaneous congruences if and only if f ([x]m) = |
([a1]m1 , [a2]m2 , . . . , [ar ]mr ). Therefore, there is always a solution, and the solution |
|
set consists of exactly one congruence class modulo m. |
|
One method of finding the solution to a set of simultaneous congruences is to use the euclidean algorithm repeatedly.
x |
≡ |
36 mod 41 |
Example 9.39. Solve the simultaneous congruences x |
5 mod 17 . |
|
|
≡ |
|
Proof. Any solution to the first congruence is of the form x = 36 + 41t where t Z. Substituting this into the second congruence, we obtain
36 + 41t ≡ 5 mod 17 that is, 41t ≡ −31 mod 17.
LINEAR CONGRUENCES AND THE CHINESE REMAINDER THEOREM |
199 |
Reducing modulo 17, we have 7t ≡ 3 mod 17. Solving this by the euclidean algorithm, we have
17 = 2 |
· 7 + 3 and 7 |
= 2 · 3 + |
1. |
|
Therefore, 1 = 7 − 2(17 − 2 |
· 7) = 7 · 5 − 17 |
· 2 and 7 · 5 ≡ 1 mod 17. Hence |
||
7 · 15 ≡ 3 mod 17, so t ≡ 15 mod 17 is the solution to |
7t |
≡ 3 mod 17. |
||
We have shown that if x = 36 + 41t is a solution to both congruences, then
t= 15 + 17u, where u Z. That is,
x = 36 + 41t = 36 + 41(15 + 17u) = 651 + 697u
or x ≡ 651 mod 697 is the complete solution. |
|
Example 9.40. Find the smallest positive integer that has remainders 4, 3, and 1 when divided by 5, 7, and 9, respectively.
Solution. We have to solve the three simultaneous congruences
x ≡ 4 mod 5, x ≡ 3 mod 7, and x ≡ 1 mod 9.
The first congruence implies that x = 4 + 5t, where t Z. Substituting into the second congruence, we have
4 + 5t ≡ 3 mod 7.
Hence 5t ≡ −1 mod 7. Now 5−1 = 3 in Z7, so t ≡ 3 · (−1) ≡ 4 mod 7. Therefore, t = 4 + 7u, where u Z, and any integer satisfying the first two congruences is of the form
x = 4 + 5t = 4 + 5(4 + 7u) = 24 + 35u.
Substituting this into the third congruence, we have 24 + 35u ≡ 1 mod 9 and −u ≡ −23 mod 9. Thus u ≡ 5 mod 9 and u = 5 + 9v for some v Z.
Hence any solution of the three congruences is of the form |
|
x = 24 + 35u = 24 + 35(5 + 9v) = 199 + 315v. |
|
The smallest positive solution is x = 199. |
|
The Chinese remainder theorem was known to ancient Chinese astronomers, who used it to date events from observations of various periodic astronomical phenomena. It is used in this computer age as a tool for finding integer solutions to integer equations and for speeding up arithmetic operations in a computer.
Addition of two numbers in conventional representation has to be carried out sequentially on the digits in each position; the digits in the ith position have to
200 9 POLYNOMIAL AND EUCLIDEAN RINGS
be added before the digit to be carried over to the (i + 1)st position is known. One method of speeding up addition on a computer is to perform addition using residue representation, since this avoids delays due to carry digits.
Let m = m1m2 · · · mr , where the integers mi are coprime in pairs. The residue representation or modular representation of any number x in Zm is the r-tuple
(a1, a2, . . . , ar ), where x ≡ ai mod mi .
For example, every integer from 0 to 29 can be uniquely represented by its residues modulo 2, 3, and 5 in Table 9.4.
This residue representation corresponds exactly to the isomorphism
Z30 → Z2 × Z3 × Z5.
Since this is a ring isomorphism, addition and multiplication are performed simply by adding and multiplying each residue separately.
For example, to add 4 and 7 using residue representation, we have
(0, 1, 4) + (1, 1, 2) = (0 + 1, 1 + 1, 4 + 2) = (1, 2, 1).
Similarly, multiplying 4 and 7, we have
(0, 1, 4) · (1, 1, 2) = (0 · 1, 1 · 1, 4 · 2) = (0, 1, 3).
Fast adders can be designed using residue representation, because all the residues can be added simultaneously. Numbers can be converted easily into residue form; however, the reverse procedure of finding a number with a given residue representation requires the Chinese remainder theorem. See Knuth [19, Sec. 4.3.2] for further discussion of the use of residue representations in computers.
TABLE 9.4. Residue Representation of the Integers from 0 to 29
|
Residues |
|
|
Residues |
|
|
Residues |
||||||
|
Modulo: |
|
|
Modulo: |
|
|
Modulo: |
||||||
|
|
|
|
|
|
|
|
|
|
|
|
||
x |
2 3 5 |
|
x |
2 |
3 |
5 |
|
x |
2 |
3 |
5 |
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
0 |
0 |
0 |
|
10 |
0 |
1 |
0 |
|
20 |
0 |
2 |
0 |
1 |
1 |
1 |
1 |
|
11 |
1 |
2 |
1 |
|
21 |
1 |
0 |
1 |
2 |
0 |
2 |
2 |
|
12 |
0 |
0 |
2 |
|
22 |
0 |
1 |
2 |
3 |
1 |
0 |
3 |
|
13 |
1 |
1 |
3 |
|
23 |
1 |
2 |
3 |
4 |
0 |
1 |
4 |
|
14 |
0 |
2 |
4 |
|
24 |
0 |
0 |
4 |
5 |
1 |
2 |
0 |
|
15 |
1 |
0 |
0 |
|
25 |
1 |
1 |
0 |
6 |
0 |
0 |
1 |
|
16 |
0 |
1 |
1 |
|
26 |
0 |
2 |
1 |
7 |
1 |
1 |
2 |
|
17 |
1 |
2 |
2 |
|
27 |
1 |
0 |
2 |
8 |
0 |
2 |
3 |
|
18 |
0 |
0 |
3 |
|
28 |
0 |
1 |
3 |
9 |
1 |
0 |
4 |
|
19 |
1 |
1 |
4 |
|
29 |
1 |
2 |
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
