- •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
INTEGERS |
301 |
so the process eventually stops when the remainder becomes zero. If r1 = 0, then gcd(m, n) = n. Otherwise, rk = gcd(m, n), where rk is the last nonzero remainder and can be expressed as a linear combination of m and n by eliminating remainders.
Proof. Express rk as a linear combination of m and n by eliminating remainders in the equations from the second last equation up. Hence every common divisor of m and n divides rk . But rk is itself a common divisor of m and n (it divides every ri —work up through the equations). Hence rk = gcd(m, n).
Two integers m and n |
are called relatively prime if gcd(m, n) = 1. Hence |
12 and 35 are relatively |
prime, but this is not true for 12 and 15 because |
gcd(12, 15) = 3. Note that 1 is relatively prime to every integer m. The following theorem collects three basic properties of relatively prime integers.
Theorem 11. If m and n are integers, not both zero:
(i) m and n are relatively prime if and only if 1 = xm + yn for some integers x and y.
(ii) If d = gcd(m, n), then |
m |
|
n |
||
|
|
and |
|
are relatively prime. |
|
|
|
dd
(iii)Suppose that m and n are relatively prime.
(a)If m|k and n|k, where k Z, then mn|k.
(b)If m|kn for some k Z, then m|k.
Proof. (i) If 1 = xm + yn with x, y Z, then every divisor of both m and n divides 1, so must be 1 or −1. It follows that gcd(m, n) = 1. The converse is by the euclidean algorithm.
(ii). By Theorem 8, write d = xm + yn, where x, y Z. Then 1 = x |
m |
+ y |
n |
|
|
|
, |
||
d |
d |
|||
and (ii) follows from (i). |
|
|
|
(iii). Write 1 = xm + yn, where x, y Z. If k = am and k = bn, a, b Z, then k = kxm + kyn = (xb + ya)mn, and (a) follows. As to (b), suppose that kn = qm, q Z. Then k = kxm + kyn = (kx + qn)m, so m|k.
PRIME FACTORIZATION
Recall that an integer p is called a prime if:
(i)p 2.
(ii)The only positive divisors of p are 1 and p.
The reason for not regarding 1 as a prime is that we want the factorization of every integer into primes (as in Theorem 5) to be unique. The following result is needed.
302 |
INTEGERS |
Theorem 12. Euclid’s Lemma. Let p denote a prime.
(i)If p|mn where m, n Z, then either p|m or p|n.
(ii)If p|m1m2 · · · mr where each mi Z, then p|mi for some i.
Proof. (i) Write d = gcd(m, p). Then d|p, so as p is a prime, either d = p or d = 1. If d = p, then p|m; if d = 1, then since p|mn, we have p|n by
Theorem 11. |
|
(ii) This follows from (i) using induction on r. |
By Theorem 5, every integer n 2 can be written as a product of (one or more) primes. For example, 12 = 22 · 3, 15 = 3 · 5, 225 = 32 · 52. This factorization is unique.
Theorem 13. Prime Factorization Theorem. Every integer n 2 can be written as a product of (one or more) primes. Moreover, this factorization is unique except for the order of the factors. That is, if
n = p1p2 · · · pr and n = q1q2 · · · qs ,
where the pi and qj are primes, then r = s and the qj can be relabeled so that pi = qi for each i.
Proof. The existence of such a factorization was shown in Theorem 5. To prove uniqueness, we induct on the minimum of r and s. If this is 1, then n is a prime and the uniqueness follows from Euclid’s lemma. Otherwise, r 2 and
s 2. Since p1|n = q1q2 · · · qs Euclid’s lemma shows that p1 |
divides some qj , |
||||||||
say |
p |
q |
possible relabeling of the q ). But then p |
1 = |
q because q |
1 |
is |
||
|
1| 1 (after |
n |
j |
|
1 |
|
|||
a prime. Hence |
|
= p2p3 · · · pr = q2q3 · · · qs , so, by induction, r − 1 = s − 1 |
|||||||
p1 |
|||||||||
and q2, q3, . . . , qs |
can be relabeled such that pi = qi |
for all i = 2, 3, . . . , r. The |
|||||||
theorem follows. |
|
|
|
|
|
|
|
||
It follows that every integer n 2 can be written in the form |
|
|
|||||||
|
|
|
|
n = p1n1 p2n2 · · · prnr , |
|
|
|
|
|
where p1, p2, . . . , pr are distinct primes, ni 1 for each i, and the pi and ni |
are |
determined uniquely by n. If every ni = 1, we say that n is square-free, while if n has only one prime divisor, we call n a prime power.
If the prime factorization n = p1n1 p2n2 · · · prnr of an integer n is given, and if d is a positive divisor of n, then these pi are the only possible prime divisors of d (by Euclid’s lemma). It follows that
Corollary 14. If the prime factorization of n is n = p1n1 p2n2 · · · prnr , then the positive divisors d of n are given as follows:
d = p1d1 p2d2 · · · prdr where 0 di ni for each i.
INTEGERS |
303 |
This gives another characterization of the greatest common divisor of two positive integers m and n. In fact, let p1, p2, . . . , pr denote the distinct primes that divide one or the other of m and n. If we allow zero exponents, these numbers can be written in the form
n = p1n1 p2n2 · · · prnr |
ni 0 |
m = p1m1 p2m2 · · · prmr |
mi 0. |
It follows from Corollary 14 that the positive common divisors d of m and n
have the form
d = p1d1 p2d2 · · · prdr
where 0 di min(mi , ni ) for each i. [Here min(mi , ni ) denotes the smaller of the integers mi and ni .] Clearly then, we obtain gcd(m, n) if we set di = min(mi , ni ) for each i. Before recording this observation (in Theorem 15 below), we first consider a natural question: What if we use max(mi , ni ) for each exponent? [Here max(mi , ni ) is the larger of the integers mi and ni .] This leads to the dual of the notion of a greatest common divisor.
If |
m |
and |
n are positive integers, write n |
= |
pn1 pn2 |
· · · |
pnr |
and |
m |
= |
||
m1 |
m2 |
|
mr |
|
1 2 |
r |
|
|||||
p1 |
p2 |
|
· · · pr |
where, as before, the pi are distinct primes and we have mi 0 |
||||||||
and ni |
0 for each i. We define the least common multiple of m and n, denoted |
lcm(m, n), by
lcm(m, n) = p1max(m1 ,n1)p2max(m2,n2) · · · prmax(mr ,nr ).
It is clear by Corollary 14 that lcm(m, n) is a common multiple of m and n, and that it is a divisor of any such common multiple. Hence lcm(m, n) is indeed playing a role dual to that of the greatest common divisor. This discussion is summarized in
Theorem 15. Suppose that m and n are positive integers, and write
n = p1n1 p2n2 · · · prnr |
ni 0 |
m = p1m1 p2m2 · · · prmr |
mi 0, |
where the pi are distinct primes. Then: |
|
gcd(m, n) = p1min(m1,n1)p2min(m2,n2 ) · · · prmin(mr ,nr )
lcm(m, n) = p1max(m1 ,n1)p2max(m2,n2) · · · prmax(mr ,nr ).
The fact that max(m, n) + min(m, n) = m + n for any integers m and n gives immediately:
Corollary 16. mn = gcd(m, n)lcm(m, n) for all positive integers m and n.
304 |
INTEGERS |
Example 17. Find gcd(600, 294) and lcm(600, 294). |
|
Proof. We have 600 = 23 · 3 · 52 |
and 294 = 3 · 2 · 72 so, as above, write |
600 |
= 23315270 |
294 |
= 21315072. |
Then gcd(600, 294) = 21315070 = 6, while lcm(600, 294) = 23315272 = 29,400. Note that Corollary 16 is verified by the fact that 600 · 294 = 6 · 29,400.
Of course, using Theorem 15 requires finding the prime factorizations of the integers m and n, and that is not easy. One useful observation is that if n 2 is
not a prime, then it has a prime factor p √n (it cannot have two factors greater
√
than n), so when looking for prime divisors of n it is only necessary to test the primes p √n. But for large integers, this is difficult, if not impossible. The euclidean algorithm (and Corollary 16) is a better method for finding greatest common divisors and least common multiples.
Note that this all generalizes: Given a finite collection a, b, c, . . . of positive integers, write them as
a = p1a1 p2a2 · · · prar |
ai 0 |
b = p1b1 p2b2 · · · prbr |
bi 0 |
c = p1c1 p2c2 · · · prcr |
ci 0, |
. |
. |
. |
. |
. |
. |
where the pi are the distinct primes that divide at least one of a, b, c, . . .. Then define their greatest common divisor and least common multiple as follows:
gcd(a, b, c, . . .) = p1min(a1,b1,c1 ,···)p2min(a2,b2,c2,···) · · · prmin(ar ,br ,cr ,···)
lcm(a, b, c, . . .) = p1max(a1,b1,c1,···)p2max(a2,b2,c2,···) · · · prmax(ar ,br ,cr ,···).
Then Theorem 15 extends as follows: gcd(a, b, c, . . .) is the common divisor of a, b, c, . . ., that is, a multiple of every such common divisor, and lcm(a, b, c, . . .) is the common multiple of a, b, c, . . ., that is, a divisor of every such common multiple.
This is as far as we go into number theory, the study of the integers, a subject that has fascinated mathematicians for centuries. There remain many unanswered questions, among them the celebrated Goldbach conjecture that every even number greater than 2 is the sum of two primes. This appears to be very difficult, but it is known that every sufficiently large even number is the sum of a prime and a number that is the product of at most two primes.
However, the twentieth century brought one resounding success. The fact that 32 + 42 = 52 shows that the equation ak + bk = ck has integer solutions if k = 2.
INTEGERS |
305 |
However, Fermat asserted that there are no positive integer solutions if k 3. He wrote a note in his copy of Arithmetica by Diophantus that “I have discovered a truly remarkable proof but the margin is to small to contain it.” The result became known as Fermat’s last theorem and remained open for 300 years. But in 1997, Andrew Wiles proved the result: He related Fermat’s conjecture to a problem in geometry, which he solved.