Top Banner

of 445

Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

Jun 02, 2018

Download

Documents

andropov1984
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    1/444

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    2/444

    Abstract Algebra

    Theory and Applications

    Thomas W. JudsonStephen F. Austin State University

    August 16, 2013

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    3/444

    ii

    Copyright 1997-2013 by Thomas W. Judson.

    Permission is granted to copy, distribute and/or modify this document under

    the terms of the GNU Free Documentation License, Version 1.2 or any laterversion published by the Free Software Foundation; with no Invariant Sections,no Front-Cover Texts, and no Back-Cover Texts. A copy of the license isincluded in the appendix entitled GNU Free Documentation License.

    A current version can always be found via abstract.pugetsound.edu.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    4/444

    Preface

    This text is intended for a one- or two-semester undergraduate course in

    abstract algebra. Traditionally, these courses have covered the theoreticalaspects of groups, rings, and fields. However, with the development ofcomputing in the last several decades, applications that involve abstractalgebra and discrete mathematics have become increasingly important, andmany science, engineering, and computer science students are now electing

    to minor in mathematics. Though theory still occupies a central role in thesubject of abstract algebra and no student should go through such a coursewithout a good notion of what a proof is, the importance of applicationssuch as coding theory and cryptography has grown significantly.

    Until recently most abstract algebra texts included few if any applications.However, one of the major problems in teaching an abstract algebra course

    is that for many students it is their first encounter with an environment thatrequires them to do rigorous proofs. Such students often find it hard to seethe use of learning to prove theorems and propositions; applied exampleshelp the instructor provide motivation.

    This text contains more material than can possibly be covered in a singlesemester. Certainly there is adequate material for a two-semester course, andperhaps more; however, for a one-semester course it would be quite easy toomit selected chapters and still have a useful text. The order of presentationof topics is standard: groups, then rings, and finally fields. Emphasis can beplaced either on theory or on applications. A typical one-semester coursemight cover groups and rings while briefly touching on field theory, usingChapters 1 through 6, 9, 10, 11, 13 (the first part), 16, 17, 18 (the firstpart), 20, and 21. Parts of these chapters could be deleted and applicationssubstituted according to the interests of the students and the instructor. Atwo-semester course emphasizing theory might cover Chapters 1 through 6,

    9, 10, 11, 13 through 18, 20, 21, 22 (the first part), and 23. On the other

    iii

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    5/444

    iv PREFACE

    hand, if applications are to be emphasized, the course might cover Chapters

    1 through 14, and 16 through 22. In an applied course, some of the moretheoretical results could be assumed or omitted. A chapter dependency chartappears below. (A broken line indicates a partial dependency.)

    Chapter 23

    Chapter 22

    Chapter 21

    Chapter 18 Chapter 20 Chapter 19

    Chapter 17 Chapter 15

    Chapter 13 Chapter 16 Chapter 12 Chapter 14

    Chapter 11

    Chapter 10

    Chapter 8 Chapter 9 Chapter 7

    Chapters 16

    Though there are no specific prerequisites for a course in abstract algebra,students who have had other higher-level courses in mathematics will generallybe more prepared than those who have not, because they will possess a bit

    more mathematical sophistication. Occasionally, we shall assume some basic

    linear algebra; that is, we shall take for granted an elementary knowledgeof matrices and determinants. This should present no great problem, since

    most students taking a course in abstract algebra have been introduced tomatrices and determinants elsewhere in their career, if they have not alreadytaken a sophomore- or junior-level course in linear algebra.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    6/444

    PREFACE v

    Exercise sections are the heart of any mathematics text. An exercise set

    appears at the end of each chapter. The nature of the exercises ranges overseveral categories; computational, conceptual, and theoretical problems areincluded. A section presenting hints and solutions to many of the exercises

    appears at the end of the text. Often in the solutions a proof is only sketched,and it is up to the student to provide the details. The exercises range indifficulty from very easy to very challenging. Many of the more substantial

    problems require careful thought, so the student should not be discouragedif the solution is not forthcoming after a few minutes of work.

    There are additional exercises or computer projects at the ends of manyof the chapters. The computer projects usually require a knowledge ofprogramming. All of these exercises and projects are more substantial innature and allow the exploration of new results and theory.

    Sage (sagemath.org) is a free, open source, software system for ad-vanced mathematics, which is ideal for assisting with a study of abstractalgebra. Comprehensive discussion about Sage, and a selection of relevantexercises, are provided in an electronic format that may be used with theSage Notebook in a web browser, either on your own computer, or at a publicserver such as sagenb.org. Look for this supplement at the books website:abstract.pugetsound.edu. In printed versions of the book, we include abrief description of Sages capabilities at the end of each chapter, right afterthe references.

    The open source version of this book has received support from theNational Science Foundation (Award # 1020957).

    Acknowledgements

    I would like to acknowledge the following reviewers for their helpful commentsand suggestions.

    David Anderson, University of Tennessee, Knoxville Robert Beezer, University of Puget Sound Myron Hood, California Polytechnic State University

    Herbert Kasube, Bradley University John Kurtzke, University of Portland Inessa Levi, University of Louisville

    http://localhost/var/www/apps/conversion/tmp/scratch_2/sagemath.orghttp://localhost/var/www/apps/conversion/tmp/scratch_2/sagenb.orghttp://localhost/var/www/apps/conversion/tmp/scratch_2/sagenb.orghttp://localhost/var/www/apps/conversion/tmp/scratch_2/abstract.pugetsound.eduhttp://localhost/var/www/apps/conversion/tmp/scratch_2/abstract.pugetsound.eduhttp://localhost/var/www/apps/conversion/tmp/scratch_2/sagenb.orghttp://localhost/var/www/apps/conversion/tmp/scratch_2/sagemath.org
  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    7/444

    vi PREFACE

    Geoffrey Mason, University of California, Santa Cruz Bruce Mericle, Mankato State University Kimmo Rosenthal, Union College Mark Teply, University of Wisconsin

    I would also like to thank Steve Quigley, Marnie Pommett, Cathie Griffin,Kelle Karshick, and the rest of the staff at PWS for their guidance throughoutthis project. It has been a pleasure to work with them.

    Thomas W. Judson

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    8/444

    Contents

    Preface iii

    1 Preliminaries 11.1 A Short Note on Proofs . . . . . . . . . . . . . . . . . . . . . 11.2 Sets and Equivalence Relations . . . . . . . . . . . . . . . . . 4

    2 The Integers 232.1 Mathematical Induction . . . . . . . . . . . . . . . . . . . . . 232.2 The Division Algorithm . . . . . . . . . . . . . . . . . . . . . 27

    3 Groups 373.1 Integer Equivalence Classes and Symmetries. . . . . . . . . . 37

    3.2 Definitions and Examples . . . . . . . . . . . . . . . . . . . . 423.3 Subgroups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49

    4 Cyclic Groups 594.1 Cyclic Subgroups . . . . . . . . . . . . . . . . . . . . . . . . . 594.2 Multiplicative Group of Complex Numbers . . . . . . . . . . 634.3 The Method of Repeated Squares . . . . . . . . . . . . . . . . 68

    5 Permutation Groups 765.1 Definitions and Notation . . . . . . . . . . . . . . . . . . . . . 775.2 Dihedral Groups . . . . . . . . . . . . . . . . . . . . . . . . . 85

    6 Cosets and Lagranges Theorem 946.1 Cosets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 946.2 Lagranges Theorem . . . . . . . . . . . . . . . . . . . . . . . 976.3 Fermats and Eulers Theorems . . . . . . . . . . . . . . . . . 99

    vii

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    9/444

    viii CONTENTS

    7 Introduction to Cryptography 103

    7.1 Private Key Cryptography. . . . . . . . . . . . . . . . . . . . 1047.2 Public Key Cryptography . . . . . . . . . . . . . . . . . . . . 107

    8 Algebraic Coding Theory 1158.1 Error-Detecting and Correcting Codes . . . . . . . . . . . . . 1158.2 Linear Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . 1248.3 Parity-Check and Generator Matrices . . . . . . . . . . . . . 1288.4 Efficient Decoding . . . . . . . . . . . . . . . . . . . . . . . . 135

    9 Isomorphisms 1449.1 Definition and Examples . . . . . . . . . . . . . . . . . . . . . 1449.2 Direct Products . . . . . . . . . . . . . . . . . . . . . . . . . . 149

    10 Normal Subgroups and Factor Groups 15910.1 Factor Groups and Normal Subgroups . . . . . . . . . . . . . 15910.2 The Simplicity of the Alternating Group . . . . . . . . . . . . 162

    11 Homomorphisms 16911.1 Group Homomorphisms . . . . . . . . . . . . . . . . . . . . . 16911.2 The Isomorphism Theorems . . . . . . . . . . . . . . . . . . . 172

    12 Matrix Groups and Symmetry 17912.1 Matrix Groups . . . . . . . . . . . . . . . . . . . . . . . . . . 17912.2 Symmetry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188

    13 The Structure of Groups 20013.1 Finite Abelian Groups . . . . . . . . . . . . . . . . . . . . . . 20013.2 Solvable Groups . . . . . . . . . . . . . . . . . . . . . . . . . 205

    14 Group Actions 21314.1 Groups Acting on Sets . . . . . . . . . . . . . . . . . . . . . . 21314.2 The Class Equation . . . . . . . . . . . . . . . . . . . . . . . 21714.3 Burnsides Counting Theorem . . . . . . . . . . . . . . . . . . 219

    15 The Sylow Theorems 23115.1 The Sylow Theorems . . . . . . . . . . . . . . . . . . . . . . . 23115.2 Examples and Applications . . . . . . . . . . . . . . . . . . . 235

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    10/444

    CONTENTS ix

    16 Rings 243

    16.1 Rings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24316.2 Integral Domains and Fields. . . . . . . . . . . . . . . . . . . 24816.3 Ring Homomorphisms and Ideals . . . . . . . . . . . . . . . . 25016.4 Maximal and Prime Ideals . . . . . . . . . . . . . . . . . . . . 25416.5 An Application to Software Design . . . . . . . . . . . . . . . 257

    17 Polynomials 26817.1 Polynomial Rings . . . . . . . . . . . . . . . . . . . . . . . . . 26917.2 The Division Algorithm . . . . . . . . . . . . . . . . . . . . . 27317.3 Irreducible Polynomials . . . . . . . . . . . . . . . . . . . . . 277

    18 Integral Domains 288

    18.1 Fields of Fractions . . . . . . . . . . . . . . . . . . . . . . . . 28818.2 Factorization in Integral Domains. . . . . . . . . . . . . . . . 292

    19 Lattices and Boolean Algebras 30619.1 Lattices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30619.2 Boolean Algebras . . . . . . . . . . . . . . . . . . . . . . . . . 31119.3 The Algebra of Electrical Circuits. . . . . . . . . . . . . . . . 317

    20 Vector Spaces 32420.1 Definitions and Examples . . . . . . . . . . . . . . . . . . . . 32420.2 Subspaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32620.3 Linear Independence . . . . . . . . . . . . . . . . . . . . . . . 327

    21 Fields 33421.1 Extension Fields . . . . . . . . . . . . . . . . . . . . . . . . . 33421.2 Splitting Fields . . . . . . . . . . . . . . . . . . . . . . . . . . 34521.3 Geometric Constructions. . . . . . . . . . . . . . . . . . . . . 348

    22 Finite Fields 35822.1 Structure of a Finite Field . . . . . . . . . . . . . . . . . . . . 35822.2 Polynomial Codes . . . . . . . . . . . . . . . . . . . . . . . . 363

    23 Galois Theory 376

    23.1 Field Automorphisms . . . . . . . . . . . . . . . . . . . . . . 37623.2 The Fundamental Theorem . . . . . . . . . . . . . . . . . . . 38223.3 Applications. . . . . . . . . . . . . . . . . . . . . . . . . . . . 390

    Hints and Solutions 401

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    11/444

    x CONTENTS

    GNU Free Documentation License 416

    Notation 424

    Index 428

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    12/444

    1Preliminaries

    A certain amount of mathematical maturity is necessary to find and study

    applications of abstract algebra. A basic knowledge of set theory, mathe-matical induction, equivalence relations, and matrices is a must. Even moreimportant is the ability to read and understand mathematical proofs. Inthis chapter we will outline the background needed for a course in abstract

    algebra.

    1.1 A Short Note on Proofs

    Abstract mathematics is different from other sciences. In laboratory sciencessuch as chemistry and physics, scientists perform experiments to discovernew principles and verify theories. Although mathematics is often motivated

    by physical experimentation or by computer simulations, it is made rigorousthrough the use of logical arguments. In studying abstract mathematics, wetake what is called an axiomatic approach; that is, we take a collection ofobjects Sand assume some rules about their structure. These rules are calledaxioms. Using the axioms forS, we wish to derive other information aboutSby using logical arguments. We require that our axioms be consistent; thatis, they should not contradict one another. We also demand that there not

    be too many axioms. If a system of axioms is too restrictive, there will befew examples of the mathematical structure.

    Astatementin logic or mathematics is an assertion that is either trueor false. Consider the following examples:

    3 + 56 13 + 8/2. All cats are black. 2 + 3 = 5.

    1

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    13/444

    2 CHAPTER 1 PRELIMINARIES

    2x= 6 exactly when x= 4. Ifax2 + bx + c= 0 and a = 0, then

    x=b b2 4ac

    2a .

    x3 4x2 + 5x 6.All but the first and last examples are statements, and must be either true

    or false.A mathematical proof is nothing more than a convincing argument

    about the accuracy of a statement. Such an argument should contain enoughdetail to convince the audience; for instance, we can see that the statement

    2x = 6 exactly when x = 4 is false by evaluating 2 4 and noting that6= 8, an argument that would satisfy anyone. Of course, audiences mayvary widely: proofs can be addressed to another student, to a professor, or

    to the reader of a text. If more detail than needed is presented in the proof,then the explanation will be either long-winded or poorly written. If toomuch detail is omitted, then the proof may not be convincing. Again itis important to keep the audience in mind. High school students requiremuch more detail than do graduate students. A good rule of thumb for an

    argument in an introductory abstract algebra course is that it should bewritten to convince ones peers, whether those peers be other students orother readers of the text.

    Let us examine different types of statements. A statement could be assimple as 10/5 = 2; however, mathematicians are usually interested inmore complex statements such as Ifp, then q, where p and qare bothstatements. If certain statements are known or assumed to be true, wewish to know what we can say about other statements. Here p is calledthe hypothesis and qis known as the conclusion. Consider the followingstatement: Ifax2 + bx + c= 0 and a = 0, then

    x=b b2 4ac

    2a .

    The hypothesis is ax2 + bx + c= 0 and a = 0; the conclusion is

    x=b b2 4ac

    2a .

    Notice that the statement says nothing about whether or not the hypothesisis true. However, if this entire statement is true and we can show that

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    14/444

    1.1 A SHORT NOTE ON PROOFS 3

    ax2 +bx+c = 0 with a= 0 is true, then the conclusion must be true. Aproof of this statement might simply be a series of equations:

    ax2 + bx + c= 0

    x2 +b

    ax= c

    a

    x2 + b

    ax +

    b

    2a

    2=

    b

    2a

    2 c

    ax +

    b

    2a

    2=

    b2 4ac4a2

    x + b

    2a=

    b2 4ac2a

    x=b b2 4ac

    2a .

    If we can prove a statement true, then that statement is called a propo-sition. A proposition of major importance is called atheorem. Sometimesinstead of proving a theorem or proposition all at once, we break the proof

    down into modules; that is, we prove several supporting propositions, whichare called lemmas, and use the results of these propositions to prove themain result. If we can prove a proposition or a theorem, we will often,with very little effort, be able to derive other related propositions calledcorollaries.

    Some Cautions and Suggestions

    There are several different strategies for proving propositions. In addition tousing different methods of proof, students often make some common mistakeswhen they are first learning how to prove theorems. To aid students whoare studying abstract mathematics for the first time, we list here some ofthe difficulties that they may encounter and some of the strategies of proofavailable to them. It is a good idea to keep referring back to this list as areminder. (Other techniques of proof will become apparent throughout thischapter and the remainder of the text.)

    A theorem cannot be proved by example; however, the standard way toshow that a statement is not a theorem is to provide a counterexample.

    Quantifiers are important. Words and phrases such as only, for all, forevery, and for some possess different meanings.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    15/444

    4 CHAPTER 1 PRELIMINARIES

    Never assume any hypothesis that is not explicitly stated in the theorem.You cannot take things for granted.

    Suppose you wish to show that an object existsand is unique. Firstshow that there actually is such an object. To show that it is unique,

    assume that there are two such objects, say r and s, and then showthat r= s.

    Sometimes it is easier to prove the contrapositive of a statement.Proving the statement Ifp, thenq is exactly the same as proving thestatement If not q, then not p.

    Although it is usually better to find a direct proof of a theorem, thistask can sometimes be difficult. It may be easier to assume that the

    theorem that you are trying to prove is false, and to hope that in thecourse of your argument you are forced to make some statement that

    cannot possibly be true.

    Remember that one of the main objectives of higher mathematics isproving theorems. Theorems are tools that make new and productive ap-plications of mathematics possible. We use examples to give insight intoexisting theorems and to foster intuitions as to what new theorems might betrue. Applications, examples, and proofs are tightly interconnectedmuch

    more so than they may seem at first appearance.

    1.2 Sets and Equivalence Relations

    Set Theory

    A set is a well-defined collection of objects; that is, it is defined in sucha manner that we can determine for any given object x whether or not xbelongs to the set. The objects that belong to a set are called its elementsor members. We will denote sets by capital letters, such as A or X; ifa isan element of the setA, we write a A.

    A set is usually specified either by listing all of its elements inside a pairof braces or by stating the property that determines whether or not an objectx belongs to the set. We might write

    X= {x1, x2, . . . , xn}for a set containing elements x1, x2, . . . , xn or

    X= {x: x satisfiesP}

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    16/444

    1.2 SETS AND EQUIVALENCE RELATIONS 5

    if each x in Xsatisfies a certain propertyP. For example, ifE is the set ofeven positive integers, we can describe Eby writing either

    E= {2, 4, 6, . . .} or E= {x: x is an even integer and x >0}.We write 2 Ewhen we want to say that 2 is in the set E, and3 / E tosay that3 is not in the set E.

    Some of the more important sets that we will consider are the following:

    N = {n: n is a natural number} = {1, 2, 3, . . .};Z = {n: n is an integer} = {. . . , 1, 0, 1, 2, . . .};

    Q = {r: r is a rational number} = {p/q: p, q Z where q= 0};R =

    {x: x is a real number

    };

    C = {z: z is a complex number}.We find various relations between sets and can perform operations on

    sets. A set A is asubsetofB , writtenA B orB A, if every element ofA is also an element ofB . For example,

    {4, 5, 8} {2, 3, 4, 5, 6, 7, 8, 9}and

    N Z Q R C.Trivially, every set is a subset of itself. A set B is a proper subset of a

    setA ifBA but B=A. IfA is not a subset ofB, we write AB ; forexample,{4, 7, 9} {2, 4, 5, 8, 9}. Two sets areequal, written A = B , if wecan show that A B and B A.

    It is convenient to have a set with no elements in it. This set is calledtheempty setand is denoted by. Note that the empty set is a subset ofevery set.

    To construct new sets out of old sets, we can perform certain operations:the union A B of two sets A andB is defined as

    A B= {x: x A or x B};the intersection ofAand B is defined by

    A B= {x: x Aandx B}.IfA = {1, 3, 5} and B = {1, 2, 3, 9}, then

    A B= {1, 2, 3, 5, 9} and A B= {1, 3}.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    17/444

    6 CHAPTER 1 PRELIMINARIES

    We can consider the union and the intersection of more than two sets. In

    this case we write ni=1

    Ai= A1 . . . An

    andni=1

    Ai= A1 . . . An

    for the union and intersection, respectively, of the sets A1, . . . , An.When two sets have no elements in common, they are said to be disjoint;

    for example, ifE is the set of even integers and O is the set of odd integers,then E and O are disjoint. Two sets A and B are disjoint exactly when

    A B= .Sometimes we will work within one fixed set U, called theuniversal set.For any set A U, we define the complement ofA, denoted by A, to bethe set

    A = {x: x U and x / A}.We define the difference of two sets Aand B to be

    A \ B= A B = {x: x A andx / B}.

    Example 1. Let R be the universal set and suppose that

    A= {x R : 0< x 3} and B= {x R : 2 x

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    18/444

    1.2 SETS AND EQUIVALENCE RELATIONS 7

    3. A (B C) = (A B) C andA (B C) = (A B) C;4. A B= B A andA B= B A;5. A (B C) = (A B) (A C);6. A (B C) = (A B) (A C).

    Proof. We will prove (1) and (3) and leave the remaining results to beproven in the exercises.

    (1) Observe that

    A A= {x: x Aor x A}=

    {x: x

    A

    }=A

    and

    A A= {x: x Aand x A}= {x: x A}=A.

    Also,A \ A= A A = .(3) For sets A, B , and C,

    A (B C) =A {x: x B or x C}= {x: x A or x B, or x C}= {x: x A or x B} C= (A B) C.

    A similar argument proves that A (B C) = (A B) C.

    Theorem 1.2 (De Morgans Laws) LetA andB be sets. Then

    1. (A B) =A B;2. (A

    B) =A

    B.

    Proof. (1) We must show that (A B) A B and (A B) A B.Let x(A B). Then x /A B. So x is neither in A nor in B, by thedefinition of the union of sets. By the definition of the complement, x Aand x B. Therefore,x A B and we have (A B) A B.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    19/444

    8 CHAPTER 1 PRELIMINARIES

    To show the reverse inclusion, suppose that xA B. Then xA

    andx B

    , and so x / Aandx / B. Thus x / A B and so x (A B)

    .Hence, (A B) A B and so (A B) =A B.

    The proof of (2) is left as an exercise.

    Example 2. Other relations between sets often hold true. For example,

    (A \ B) (B \ A) = .

    To see that this is true, observe that

    (A \ B) (B \ A) = (A B) (B A)=A A B B

    = .

    Cartesian Products and Mappings

    Given sets AandB , we can define a new setA B, called the Cartesianproduct ofAand B , as a set of ordered pairs. That is,

    A B= {(a, b) :a A and b B}.

    Example 3. IfA= {x, y}, B = {1, 2, 3}, and C= , then A B is the set{(x, 1), (x, 2), (x, 3), (y, 1), (y, 2), (y, 3)}

    andA C= .

    We define the Cartesian product of n sets to be

    A1 An = {(a1, . . . , an) :ai Aifor i = 1, . . . , n}.

    IfA = A1 = A2 = = An, we often write An for A A (where Awould be written n times). For example, the set R3 consists of all of 3-tuplesof real numbers.

    Subsets ofA B are called relations. We will define amapping orfunction f A B from a set A to a set B to be the special type of

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    20/444

    1.2 SETS AND EQUIVALENCE RELATIONS 9

    relation in which for each element aA there is a unique element bBsuch that (a, b) f; another way of saying this is that for every element inA, fassigns a unique element in B . We usually write f :A B or A f B.Instead of writing down ordered pairs (a, b) A B, we write f(a) =b orf :a b. The setA is called the domain off and

    f(A) = {f(a) :a A} Bis called the range or image off. We can think of the elements in thefunctions domain as input values and the elements in the functions range

    as output values.

    1

    2

    3

    a

    b

    c

    1

    2

    3

    a

    b

    c

    A B

    A Bg

    f

    Figure 1.1. Mappings

    Example 4. Suppose A ={1, 2, 3} and B ={a,b,c}. In Figure 1.1 wedefine relationsf and g from A to B. The relation f is a mapping, but g isnot because 1 Ais not assigned to a unique element in B ; that is,g(1) =aand g (1) =b.

    Given a function f :A B, it is often possible to write a list describingwhat the function does to each specific element in the domain. However, notall functions can be described in this manner. For example, the functionf : R R that sends each real number to its cube is a mapping that mustbe described by writing f(x) =x3 or f :x x3.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    21/444

    10 CHAPTER 1 PRELIMINARIES

    Consider the relation f : Q Z given by f(p/q) = p. We know that1/2 = 2/4, but is f(1/2) = 1 or 2? This relation cannot be a mappingbecause it is not well-defined. A relation is well-defined if each element inthe domain is assigned to a uniqueelement in the range.

    Iff :AB is a map and the image off is B, i.e., f(A) =B , then fis said to be onto or surjective . In other words, if there exists an aAfor each bB such that f(a) =b, then f is onto. A map isone-to-oneor injective ifa1= a2 implies f(a1)= f(a2). Equivalently, a function isone-to-one iff(a1) =f(a2) implies a1= a2. A map that is both one-to-oneand onto is called bijective .

    Example 5. Letf : Z Qbe defined byf(n) = n/1. Thenf is one-to-onebut not onto. Defineg : Q

    Z byg(p/q) =p wherep/qis a rational number

    expressed in its lowest terms with a positive denominator. The function g isonto but not one-to-one.

    Given two functions, we can construct a new function by using the rangeof the first function as the domain of the second function. Letf :ABandg: B Cbe mappings. Define a new map, thecomposition off andg fromA toC, by (g f)(x) =g(f(x)).

    A B C

    1

    23

    a

    bc

    X

    YZ

    f g

    A C

    1

    2

    3

    X

    Y

    Z

    g f

    Figure 1.2. Composition of maps

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    22/444

    1.2 SETS AND EQUIVALENCE RELATIONS 11

    Example 6. Consider the functions f : A B and g : B C that aredefined in Figure1.2(top). The composition of these functions, g f :A C,is defined in Figure1.2 (bottom).

    Example 7. Letf(x) =x2 and g(x) = 2x + 5. Then

    (f g)(x) =f(g(x)) = (2x + 5)2 = 4x2 + 20x + 25and

    (g f)(x) =g(f(x)) = 2x2 + 5.In general, order makes a difference; that is, in most cases f g=g f.

    Example 8. Sometimes it is the case that f g= g f. Letf(x) =x3 andg(x) = 3

    x. Then

    (f g)(x) =f(g(x)) =f( 3x ) = ( 3x )3 =xand

    (g f)(x) =g(f(x)) =g(x3) = 3

    x3 =x.

    Example 9. Given a 2 2 matrix

    A= a bc d ,we can define a map TA: R

    2 R2 byTA(x, y) = (ax + by,cx + dy)

    for (x, y) in R2. This is actually matrix multiplication; that is,a bc d

    xy

    =

    ax + bycx + dy

    .

    Maps from Rn to Rm given by matrices are called linear maps orlinear

    transformations.

    Example 10. Suppose that S= {1, 2, 3}. Define a map : S Sby(1) = 2, (2) = 1, (3) = 3.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    23/444

    12 CHAPTER 1 PRELIMINARIES

    This is a bijective map. An alternative way to write is

    1 2 3(1) (2) (3)

    =1 2 3

    2 1 3

    .

    For any set S, a one-to-one and onto mapping : S S is called apermutation ofS.

    Theorem 1.3 Letf :A B, g: B C, andh: C D. Then1. The composition of mappings is associative; that is, (hg)f=h(gf);2. Iff andg are both one-to-one, then the mappingg fis one-to-one;

    3. Iff andg are both onto, then the mappingg f is onto;4. Iff andg are bijective, then so isg f.

    Proof. We will prove (1) and (3). Part (2) is left as an exercise. Part (4)follows directly from (2) and (3).

    (1) We must show that

    h (g f) = (h g) f.

    For a A we have

    (h (g f))(a) =h((g f)(a))=h(g(f(a)))

    = (h g)(f(a))= ((h g) f)(a).

    (3) Assume that f and g are both onto functions. Given c C, we mustshow that there exists an a Asuch that (g f)(a) =g(f(a)) = c. However,since g is onto, there is a bB such that g(b) = c. Similarly, there is ana A such that f(a) =b. Accordingly,

    (g f)(a) =g(f(a)) =g(b) =c.

    IfS is any set, we will use idS or id to denote the identity mappingfromSto itself. Define this map byid(s) = s for alls S. A mapg : B Ais an inverse mapping off : A B ifg f = idA and f g = idB; in

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    24/444

    1.2 SETS AND EQUIVALENCE RELATIONS 13

    other words, the inverse function of a function simply undoes the function.

    A map is said to be invertible if it has an inverse. We usually writef1

    for the inverse off.

    Example 11. The function f(x) =x3 has inversef1(x) = 3

    xby Exam-ple8.

    Example 12. The natural logarithm and the exponential functions, f(x) =ln xandf1(x) =ex, are inverses of each other provided that we are carefulabout choosing domains. Observe that

    f(f1(x)) =f(ex) = ln ex =x

    andf1(f(x)) =f1(ln x) =elnx =x

    whenever composition makes sense.

    Example 13. Suppose that

    A=

    3 15 2

    .

    Then A defines a map from R2 to R2 by

    TA

    (x, y) = (3x + y, 5x + 2y).

    We can find an inverse map ofTA by simply inverting the matrix A; that is,T1A =TA1. In this example,

    A1 =

    2 15 3

    ;

    hence, the inverse map is given by

    T1A (x, y) = (2x y, 5x + 3y).It is easy to check that

    T1A TA(x, y) =TA T1A (x, y) = (x, y).Not every map has an inverse. If we consider the map

    TB(x, y) = (3x, 0)

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    25/444

    14 CHAPTER 1 PRELIMINARIES

    given by the matrix

    B= 3 00 0 ,then an inverse map would have to be of the form

    T1B (x, y) = (ax + by,cx + dy)

    and(x, y) =T T1B (x, y) = (3ax + 3by, 0)

    for all x and y . Clearly this is impossible because y might not be 0.

    Example 14. Given the permutation

    =

    1 2 32 3 1

    on S= {1, 2, 3}, it is easy to see that the permutation defined by

    1 =

    1 2 33 1 2

    is the inverse of . In fact, any bijective mapping possesses an inverse, as wewill see in the next theorem.

    Theorem 1.4 A mapping is invertible if and only if it is both one-to-oneand onto.

    Proof. Suppose first that f :A B is invertible with inverse g : B A.Then g f = idA is the identity map; that is, g(f(a)) = a. Ifa1, a2 Awith f(a1) =f(a2), then a1= g(f(a1)) =g(f(a2)) =a2. Consequently, f isone-to-one. Now suppose that b B. To show that f is onto, it is necessaryto find an a A such that f(a) = b, but f(g(b)) = b with g(b) A. Leta= g(b).

    Now assume the converse; that is, let fbe bijective. Let b B. Since fis onto, there exists an a Asuch that f(a) =b. Becausef is one-to-one, amust be unique. Define g by letting g(b) =a. We have now constructed theinverse off.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    26/444

    1.2 SETS AND EQUIVALENCE RELATIONS 15

    Equivalence Relations and Partitions

    A fundamental notion in mathematics is that of equality. We can generalizeequality with the introduction of equivalence relations and equivalence classes.Anequivalence relationon a set X is a relation R X X such that

    (x, x) R for all x X (reflexive property); (x, y) Rimplies (y, x) R (symmetric property); (x, y) and (y, z) R imply (x, z) R(transitive property).

    Given an equivalence relationR on a set X, we usually write x y insteadof (x, y) R. If the equivalence relation already has an associated notationsuch as =,, or=, we will use that notation.Example 15. Let p, q, r, and s be integers, where q and s are nonzero.Definep/q r/s ifps = qr. Clearlyis reflexive and symmetric. To showthat it is also transitive, suppose that p/qr/s and r/st/u, with q, s,and u all nonzero. Then ps = qr and ru= st. Therefore,

    psu= qru= qst.

    Sinces = 0, pu = qt. Consequently,p/q t/u.

    Example 16. Suppose that f andg are differentiable functions on R. We

    can define an equivalence relation on such functions by letting f(x) g(x)if f(x) = g(x). It is clear that is both reflexive and symmetric. Todemonstrate transitivity, suppose that f(x) g(x) andg(x) h(x). Fromcalculus we know that f(x) g(x) =c1 and g(x) h(x) =c2, where c1 andc2 are both constants. Hence,

    f(x) h(x) = (f(x) g(x)) + (g(x) h(x)) =c1 c2and f(x) h(x) = 0. Therefore, f(x) h(x).

    Example 17. For (x1, y1) and (x2, y2) in R2, define (x1, y1) (x2, y2) if

    x21+ y

    21 =x

    22+ y

    22. Thenis an equivalence relation on R

    2

    .

    Example 18. LetAandB be 22 matrices with entries in the real numbers.We can define an equivalence relation on the set of 2 2 matrices, by saying

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    27/444

    16 CHAPTER 1 PRELIMINARIES

    A B if there exists an invertible matrix P such that P AP1 = B. Forexample, if

    A= 1 2

    1 1

    and B=18 33

    11 20

    ,

    then A B since P AP1 =B for

    P =

    2 51 3

    .

    LetIbe the 2 2 identity matrix; that is,

    I=

    1 00 1

    .

    Then IAI1 = IAI = A; therefore, the relation is reflexive. To showsymmetry, suppose that AB . Then there exists an invertible matrixPsuch thatP AP1 =B. So

    A= P1BP =P1B(P1)1.

    Finally, suppose thatA Band B C. Then there exist invertible matricesP and Q such that P AP1 =B and QBQ1 =C. Since

    C=QBQ1 =QPAP1Q1 = (QP)A(QP)1,

    the relation is transitive. Two matrices that are equivalent in this mannerare said to be similar.

    A partitionPof a set X is a collection of nonempty sets X1, X2, . . .such that Xi Xj =fori=j and

    kXk =X. Let be an equivalence

    relation on a set Xand let x X. Then [x] = {y X :y x} is called theequivalence class ofx. We will see that an equivalence relation gives riseto a partition via equivalence classes. Also, whenever a partition of a setexists, there is some natural underlying equivalence relation, as the followingtheorem demonstrates.

    Theorem 1.5 Given an equivalence relation on a setX, the equivalenceclasses ofX form a partition ofX. Conversely, ifP= {Xi}is a partition ofa setX, then there is an equivalence relation onXwith equivalence classesXi.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    28/444

    1.2 SETS AND EQUIVALENCE RELATIONS 17

    Proof. Suppose there exists an equivalence relationon the set X. Foranyx X, the reflexive property shows that x [x] and so [x] is nonempty.Clearly X =

    xX[x]. Now let x, y X. We need to show that either

    [x] = [y] or [x] [y] = . Suppose that the intersection of [x] and [y] is notempty and that z [x] [y]. Thenz x and z y. By symmetry andtransitivityx y; hence, [x] [y]. Similarly, [y] [x] and so [x] = [y].Therefore, any two equivalence classes are either disjoint or exactly the same.

    Conversely, suppose thatP ={Xi} is a partition of a set X. Let twoelements be equivalent if they are in the same partition. Clearly, the relationis reflexive. Ifx is in the same partition as y , theny is in the same partitionasx, sox y impliesy x. Finally, ifx is in the same partition as y andyis in the same partition as z , then x must be in the same partition as z, andtransitivity holds.

    Corollary 1.6 Two equivalence classes of an equivalence relation are eitherdisjoint or equal.

    Let us examine some of the partitions given by the equivalence classes inthe last set of examples.

    Example 19. In the equivalence relation in Example 15, two pairs ofintegers, (p, q) and (r, s), are in the same equivalence class when they reduceto the same fraction in its lowest terms.

    Example 20. In the equivalence relation in Example16,two functions f(x)and g (x) are in the same partition when they differ by a constant.

    Example 21. We defined an equivalence class on R2 by (x1, y1) (x2, y2)ifx21+ y

    21 =x

    22+ y

    22. Two pairs of real numbers are in the same partition

    when they lie on the same circle about the origin.

    Example 22. Letr and s be two integers and suppose that n N. We saythat r is congruent to s modulo n, orr is congruent to s mod n, ifr sis evenly divisible by n; that is, r s= nk for some k Z. In this case wewriters (mod n). For example, 4117 (mod 8) since 41 17 = 24 isdivisible by 8. We claim that congruence modulo n forms an equivalencerelation ofZ. Certainly any integer r is equivalent to itself since r r= 0 isdivisible by n. We will now show that the relation is symmetric. Ifrs(mod n), thenr s= (sr) is divisible by n. Sos ris divisible byn and

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    29/444

    18 CHAPTER 1 PRELIMINARIES

    s r (mod n). Now suppose that r s (mod n) and s t (mod n). Thenthere exist integers k and l such that r s= kn and s t= ln. To showtransitivity, it is necessary to prove that r tis divisible by n. However,

    r t= r s + s t= kn + ln= (k+ l)n,

    and so r t is divisible byn.If we consider the equivalence relation established by the integers modulo

    3, then

    [0] = {. . . , 3, 0, 3, 6, . . .},[1] = {. . . , 2, 1, 4, 7, . . .},[2] =

    {. . . ,

    1, 2, 5, 8, . . .

    }.

    Notice that [0] [1] [2] = Z and also that the sets are disjoint. The sets [0],[1], and [2] form a partition of the integers.

    The integers modulo n are a very important example in the study ofabstract algebra and will become quite useful in our investigation of variousalgebraic structures such as groups and rings. In our discussion of the integersmodulon we have actually assumed a result known as the division algorithm,which will be stated and proved in Chapter 2.

    Exercises

    1. Suppose that

    A= {x: x N and x is even},B= {x: x N and x is prime},C= {x: x N and x is a multiple of 5}.

    Describe each of the following sets.

    (a) A B(b) B C

    (c) A B(d) A (B C)

    2. IfA = {a,b,c}, B = {1, 2, 3}, C= {x}, and D = , list all of the elements ineach of the following sets.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    30/444

    EXERCISES 19

    (a) A B(b) B A

    (c) A B C(d) A D

    3. Find an example of two nonempty sets A and B for which A B= B A istrue.

    4. ProveA =A and A = .5. ProveA B= B A and A B= B A.6. ProveA (B C) = (A B) (A C).7. ProveA (B C) = (A B) (A C).8. ProveA B if and only ifA B= A.9. Prove (A

    B) =A

    B.

    10. ProveA B= (A B) (A \ B) (B \ A).11. Prove (A B) C= (A C) (B C).12. Prove (A B) \ B= .13. Prove (A B) \ B= A \ B.14. ProveA \ (B C) = (A \ B) (A \ C).15. ProveA (B \ C) = (A B) \ (A C).16. Prove (A \ B) (B \ A) = (A B) \ (A B).17. Which of the following relations f : Q Q define a mapping? In each case,

    supply a reason whyf is or is not a mapping.

    (a) f(p/q) =p + 1

    p 2

    (b) f(p/q) =3p

    3q

    (c) f(p/q) =p + q

    q2

    (d) f(p/q) =3p2

    7q2 p

    q

    18. Determine which of the following functions are one-to-one and which are onto.If the function is not onto, determine its range.

    (a) f : R R defined by f(x) = ex(b) f : Z Z defined by f(n) = n2 + 3(c) f : R

    R defined by f(x) = sin x

    (d) f : Z Z defined by f(x) = x2

    19. Letf :A B and g : B Cbe invertible mappings; that is, mappings suchthatf1 andg1 exist. Show that (g f)1 =f1 g1.

    20. (a) Define a functionf : N N that is one-to-one but not onto.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    31/444

    20 CHAPTER 1 PRELIMINARIES

    (b) Define a functionf : N N that is onto but not one-to-one.21. Prove the relation defined on R2 by (x1, y1) (x2, y2) ifx21+ y21 =x22+ y22 is

    an equivalence relation.

    22. Letf :A B andg : B Cbe maps.(a) Iff andg are both one-to-one functions, show that g f is one-to-one.(b) Ifg fis onto, show that g is onto.(c) Ifg f is one-to-one, show that f is one-to-one.(d) Ifg f is one-to-one and fis onto, show that g is one-to-one.(e) Ifg fis onto and g is one-to-one, show thatfis onto.

    23. Define a function on the real numbers by

    f(x) = x + 1x 1 .

    What are the domain and range off? What is the inverse off? Computef f1 andf1 f.

    24. Letf :X Ybe a map with A1, A2 XandB1, B2 Y.(a) Prove f(A1 A2) = f(A1) f(A2).(b) Prove f(A1 A2) f(A1) f(A2). Give an example in which equality

    fails.

    (c) Prove f1(B1 B2) = f1(B1) f1(B2), where

    f

    1

    (B) = {x X: f(x) B}.(d) Prove f1(B1 B2) = f1(B1) f1(B2).(e) Prove f1(Y\ B1) = X\ f1(B1).

    25. Determine whether or not the following relations are equivalence relations onthe given set. If the relation is an equivalence relation, describe the partitiongiven by it. If the relation is not an equivalence relation, state why it fails tobe one.

    (a) x y in R ifx y(b) m n in Z ifmn >0

    (c) x y in R if|x y| 4(d) m n in Zifm n (mod 6)

    26. Define a relation on R2 by stating that (a, b) (c, d) if and only ifa2 + b2 c2 + d2. Show thatis reflexive and transitive but not symmetric.

    27. Show that an m n matrix gives rise to a well-defined map from Rn to Rm.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    32/444

    EXERCISES 21

    28. Find the error in the following argument by providing a counterexample.

    The reflexive property is redundant in the axioms for an equivalence relation.Ifx y, theny xby the symmetric property. Using the transitive property,we can deduce thatx x.

    29. Projective Real Line. Define a relation on R2 \ (0, 0) by letting (x1, y1) (x2, y2) if there exists a nonzero real number such that (x1, y1) = (x2, y2).Prove that defines an equivalence relation on R2 \ (0, 0). What are thecorresponding equivalence classes? This equivalence relation defines theprojective line, denoted by P(R), which is very important in geometry.

    References and Suggested Readings

    The following list contains references suitable for further reading. With the exceptionof [8] and [9] and perhaps [1] and [3], all of these books are more or less at the samelevel as this text. Interesting applications of algebra can be found in [2], [5], [10],and [11].

    [1] Artin, M. Abstract Algebra. 2nd ed. Pearson, Upper Saddle River, NJ, 2011.

    [2] Childs, L.A Concrete Introduction to Higher Algebra. 2nd ed. Springer-Verlag,New York, 1995.

    [3] Dummit, D. and Foote, R. Abstract Algebra. 3rd ed. Wiley, New York, 2003.

    [4] Fraleigh, J. B. A First Course in Abstract Algebra. 7th ed. Pearson, UpperSaddle River, NJ, 2003.

    [5] Gallian, J. A.Contemporary Abstract Algebra. 7th ed. Brooks/Cole, Belmont,CA, 2009.

    [6] Halmos, P. Naive Set Theory. Springer, New York, 1991. One of the bestreferences for set theory.

    [7] Herstein, I. N. Abstract Algebra. 3rd ed. Wiley, New York, 1996.

    [8] Hungerford, T. W. Algebra. Springer, New York, 1974. One of the standardgraduate algebra texts.

    [9] Lang, S. Algebra. 3rd ed. Springer, New York, 2002. Another standardgraduate text.

    [10] Lidl, R. and Pilz, G. Applied Abstract Algebra. 2nd ed. Springer, New York,1998.

    [11] Mackiw, G. Applications of Abstract Algebra. Wiley, New York, 1985.

    [12] Nickelson, W. K. Introduction to Abstract Algebra. 3rd ed. Wiley, New York,2006.

    [13] Solow, D. How to Read and Do Proofs. 5th ed. Wiley, New York, 2009.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    33/444

    22 CHAPTER 1 PRELIMINARIES

    [14] van der Waerden, B. L. A History of Algebra. Springer-Verlag, New York,

    1985. An account of the historical development of algebra.Sage Sage is free, open source, mathematical software, which has veryimpressive capabilities for the study of abstract algebra. See the Prefacefor more information about obtaining Sage and the supplementary materialdescribing how to use Sage in the study of abstract algebra. At the end ofchapter, we will have a brief explanation of Sages capabilities relevant tothat chapter.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    34/444

    2The Integers

    The integers are the building blocks of mathematics. In this chapter we

    will investigate the fundamental properties of the integers, including mathe-matical induction, the division algorithm, and the Fundamental Theorem ofArithmetic.

    2.1 Mathematical Induction

    Suppose we wish to show that

    1 + 2 + + n= n(n + 1)2

    for any natural number n. This formula is easily verified for small numbers

    such asn = 1, 2, 3, or 4, but it is impossible to verify for all natural numberson a case-by-case basis. To prove the formula true in general, a more genericmethod is required.

    Suppose we have verified the equation for the first n cases. We willattempt to show that we can generate the formula for the (n+ 1)th casefrom this knowledge. The formula is true for n= 1 since

    1 =1(1 + 1)

    2 .

    If we have verified the first n cases, then

    1 + 2 +

    + n + (n + 1) =

    n(n + 1)

    2

    + n + 1

    =n2 + 3n + 2

    2

    =(n + 1)[(n + 1) + 1]

    2 .

    23

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    35/444

    24 CHAPTER 2 THE INTEGERS

    This is exactly the formula for the (n + 1)th case.

    This method of proof is known as mathematical induction. Instead ofattempting to verify a statement about some subset Sof the positive integersN on a case-by-case basis, an impossible task ifSis an infinite set, we give aspecific proof for the smallest integer being considered, followed by a genericargument showing that if the statement holds for a given case, then it mustalso hold for the next case in the sequence. We summarize mathematicalinduction in the following axiom.

    First Principle of Mathematical Induction. LetS(n) be a statementabout integers for n N and suppose S(n0) is true for some integer n0. Iffor all integers k with k n0 S(k) implies that S(k+ 1) is true, then S(n)is true for all integers ngreater than or equal to n0.

    Example 1. For all integers n 3, 2n > n + 4. Since8 = 23 >3 + 4 = 7,

    the statement is true for n0 = 3. Assume that 2k > k+ 4 fork 3. Then

    2k+1 = 2 2k >2(k+ 4). But2(k+ 4) = 2k+ 8 > k+ 5 = (k+ 1) + 4

    sincek is positive. Hence, by induction, the statement holds for all integersn 3.

    Example 2. Every integer 10n+1 + 3 10n + 5 is divisible by 9 for nN.For n= 1,

    101+1 + 3 10 + 5 = 135 = 9 15is divisible by 9. Suppose that 10k+1 + 3 10k + 5 is divisible by 9 for k 1.Then

    10(k+1)+1 + 3 10k+1 + 5 = 10k+2 + 3 10k+1 + 50 45= 10(10k+1 + 3 10k + 5) 45

    is divisible by 9.

    Example 3. We will prove the binomial theorem using mathematicalinduction; that is,

    (a + b)n =n

    k=0

    n

    k

    akbnk,

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    36/444

    2.1 MATHEMATICAL INDUCTION 25

    whereaand b are real numbers, n N, andn

    k

    =

    n!k!(n k)!

    is the binomial coefficient. We first show thatn + 1

    k

    =

    n

    k

    +

    n

    k 1

    .

    This result follows fromn

    k

    +

    n

    k 1

    = n!

    k!(n k)!+ n!

    (k 1)!(n k+ 1)!

    =

    (n + 1)!

    k!(n + 1 k)!=

    n + 1

    k

    .

    Ifn = 1, the binomial theorem is easy to verify. Now assume that the resultis true for ngreater than or equal to 1. Then

    (a + b)n+1 = (a + b)(a + b)n

    = (a + b)

    nk=0

    n

    k

    akbnk

    =

    nk=0

    nkak+1bnk +n

    k=0nkakbn+1k

    =an+1 +n

    k=1

    n

    k 1

    akbn+1k +n

    k=1

    n

    k

    akbn+1k + bn+1

    =an+1 +

    nk=1

    n

    k 1

    +

    n

    k

    akbn+1k + bn+1

    =n+1k=0

    n + 1

    k

    akbn+1k.

    We have an equivalent statement of the Principle of Mathematical Induc-tion that is often very useful.

    Second Principle of Mathematical Induction. LetS(n) be a statementabout integers forn N and supposeS(n0) is true for some integer n0. If

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    37/444

    26 CHAPTER 2 THE INTEGERS

    S(n0), S(n0 + 1), . . . , S (k) imply thatS(k +1) fork n0, then the statementS(n) is true for all integers n n0.

    A nonempty subset SofZis well-ordered ifScontains a least element.Notice that the set Z is not well-ordered since it does not contain a smallestelement. However, the natural numbers are well-ordered.

    Principle of Well-Ordering. Every nonempty subset of the natural num-bers is well-ordered.

    The Principle of Well-Ordering is equivalent to the Principle of Mathe-matical Induction.

    Lemma 2.1 The Principle of Mathematical Induction implies that1 is the

    least positive natural number.

    Proof. Let S={n N : n1}. Then 1S. Now assume thatnS;that is, n 1. Sincen + 1 1,n + 1 S; hence, by induction, every naturalnumber is greater than or equal to 1.

    Theorem 2.2 The Principle of Mathematical Induction implies the Princi-ple of Well-Ordering. That is, every nonempty subset ofN contains a least

    element.

    Proof. We must show that ifSis a nonempty subset of the natural numbers,then Scontains a least element. IfScontains 1, then the theorem is true by

    Lemma2.1. Assume that ifScontains an integerk such that 1 k n, thenScontains a least element. We will show that if a set Scontains an integerless than or equal to n + 1, thenShas a least element. IfSdoes not containan integer less than n + 1, thenn + 1 is the smallest integer inS. Otherwise,sinceS is nonempty, Smust contain an integer less than or equal to n. Inthis case, by induction, Scontains a least element.

    Induction can also be very useful in formulating definitions. For instance,there are two ways to define n!, the factorial of a positive integer n.

    The explicit definition: n! = 1 2 3 (n 1) n.

    The inductive or recursivedefinition: 1! = 1 andn! = n(n

    1)! for

    n >1.

    Every good mathematician or computer scientist knows that looking at prob-lems recursively, as opposed to explicitly, often results in better understandingof complex issues.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    38/444

    2.2 THE DIVISION ALGORITHM 27

    2.2 The Division Algorithm

    An application of the Principle of Well-Ordering that we will use often is thedivision algorithm.

    Theorem 2.3 (Division Algorithm) Leta andb be integers, withb >0.Then there exist unique integersqandr such that

    a= bq+ r

    where0 r < b.

    Proof. This is a perfect example of the existence-and-uniqueness type ofproof. We must first prove that the numbers qand r actually exist. Thenwe must show that ifq and r are two other such numbers, then q= q andr= r .

    Existence of q and r. Let

    S= {a bk: k Z and a bk 0}.

    If 0S, then b divides a, and we can let q=a/b and r= 0. If 0 /S, wecan use the Well-Ordering Principle. We must first show that S is nonempty.Ifa > 0, then a b 0 S. Ifa < 0, then a b(2a) = a(1 2b) S. Ineither caseS= . By the Well-Ordering Principle,Smust have a smallestmember, say r=a bq. Therefore, a= bq+r, r0. We now show thatr < b. Suppose that r > b. Then

    a b(q+ 1) =a bq b= r b >0.

    In this case we would have a b(q+ 1) in the setS. But then a b(q+ 1) 0

    }.

    Clearly, the set S is nonempty; hence, by the Well-Ordering Principle Smust have a smallest member, say d = ar+ bs. We claim that d= gcd(a, b).Write a= dq+ r where 0 r < d . Ifr >0, then

    r =a dq=a (ar+ bs)q=a arq bsq=a(1 rq) + b(sq),

    which is in S. But this would contradict the fact that d is the smallestmember ofS. Hence, r = 0 and d divides a. A similar argument shows thatd divides b. Therefore, d is a common divisor ofaand b.

    Suppose that d is another common divisor ofa and b, and we want toshow thatd | d. If we let a = dh and b= dk, then

    d= ar+ bs= dhr+ dks = d(hr+ ks).

    So d must divide d. Hence,d must be the unique greatest common divisorofa and b.

    Corollary 2.5 Leta andb be two integers that are relatively prime. Then

    there exist integersr ands such thatar+ bs= 1.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    40/444

    2.2 THE DIVISION ALGORITHM 29

    The Euclidean Algorithm

    Among other things, Theorem2.4allows us to compute the greatest commondivisor of two integers.

    Example 4. Let us compute the greatest common divisor of 945 and 2415.First observe that

    2415 = 945 2 + 525945 = 525 1 + 420525 = 420 1 + 105420 = 105 4 + 0.

    Reversing our steps, 105 divides 420, 105 divides 525, 105 divides 945, and

    105 divides 2415. Hence, 105 divides both 945 and 2415. Ifd were anothercommon divisor of 945 and 2415, then d would also have to divide 105.Therefore, gcd(945, 2415) = 105.

    If we work backward through the above sequence of equations, we canalso obtain numbers r and s such that 945r+ 2415s= 105. Observe that

    105 = 525 + (1) 420= 525 + (1) [945 + (1) 525]= 2 525 + (1) 945

    = 2 [2415 + (2) 945] + (1) 945= 2 2415 + (5) 945.

    So r = 5 and s = 2. Notice that r ands are not unique, since r = 41 ands= 16 would also work.

    To compute gcd(a, b) =d, we are using repeated divisions to obtain adecreasing sequence of positive integers r1 > r2> > rn = d; that is,

    b= aq1+ r1

    a= r1q2+ r2

    r1=r2q3+ r3...

    rn2=rn1qn+ rn

    rn1=rnqn+1.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    41/444

    30 CHAPTER 2 THE INTEGERS

    To find r ands such that ar+bs= d, we begin with this last equation and

    substitute results obtained from the previous equations:

    d= rn

    =rn2 rn1qn=rn2 qn(rn3 qn1rn2)= qnrn3+ (1 + qnqn1)rn2

    ...

    =ra + sb.

    The algorithm that we have just used to find the greatest common divisor dof two integersa and b and to writed as the linear combination ofa and b isknown as the Euclidean algorithm.

    Prime Numbers

    Let p be an integer such that p >1. We say that p is a prime number, orsimplyp is prime, if the only positive numbers that divide p are 1 and pitself. An integer n >1 that is not prime is said to be composite .

    Lemma 2.6 (Euclid) Leta andb be integers andp be a prime number. Ifp | ab, then eitherp | a orp | b.Proof. Suppose that p does not dividea. We must show that p

    |b. Since

    gcd(a, p) = 1, there exist integers r ands such that ar+ps= 1. So

    b= b(ar+ps) = (ab)r+p(bs).

    Since p divides both ab and itself, p must divide b= (ab)r+p(bs).

    Theorem 2.7 (Euclid) There exist an infinite number of primes.

    Proof. We will prove this theorem by contradiction. Suppose that thereare only a finite number of primes, say p1, p2, . . . , pn. LetP =p1p2 pn + 1.Then Pmust be divisible by some pi for 1in. In this case, pi mustdividePp1p2 pn = 1, which is a contradiction. Hence, either Pis prime

    or there exists an additional prime number p =pi that divides P.

    Theorem 2.8 (Fundamental Theorem of Arithmetic) Letnbe an in-teger such thatn > 1. Then

    n= p1p2 pk,

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    42/444

    2.2 THE DIVISION ALGORITHM 31

    where p1, . . . , pk are primes (not necessarily distinct). Furthermore, this

    factorization is unique; that is, if

    n= q1q2 ql,

    thenk= l and theqis are just thepis rearranged.

    Proof. Uniqueness. To show uniqueness we will use induction on n. Thetheorem is certainly true forn = 2 since in this case n is prime. Now assumethat the result holds for all integers m such that 1 m < n, and

    n= p1p2 pk =q1q2 ql,

    wherep1 p2 pk and q1 q2 ql. By Lemma2.6, p1| qi forsomei = 1, . . . , landq1|pj for somej = 1, . . . , k. Since all of thepis andqisare prime, p1= qi andq1 = pj . Hence, p1= q1 since p1pj =q1 qi= p1.By the induction hypothesis,

    n =p2 pk =q2 qlhas a unique factorization. Hence, k = l and qi=pi fori= 1, . . . , k.

    Existence. To show existence, suppose that there is some integer thatcannot be written as the product of primes. LetSbe the set of all suchnumbers. By the Principle of Well-Ordering, Shas a smallest number, saya. If the only positive factors ofa are a and 1, then a is prime, which is a

    contradiction. Hence, a= a1a2 where 1< a1 < a and 1< a2< a. Neithera1 Snor a2 S, since a is the smallest element in S. So

    a1= p1 pra2= q1 qs.

    Therefore,a= a1a2= p1 prq1 qs.

    Soa / S, which is a contradiction.

    Historical Note

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    43/444

    32 CHAPTER 2 THE INTEGERS

    Prime numbers were first studied by the ancient Greeks. Two important resultsfrom antiquity are Euclids proof that an infinite number of primes exist and the

    Sieve of Eratosthenes, a method of computing all of the prime numbers less than afixed positive integern. One problem in number theory is to find a function f suchthat f(n) is prime for each integer n. Pierre Fermat (1601?1665) conjectured that22

    n

    + 1 was prime for all n, but later it was shown by Leonhard Euler (17071783)that

    225

    + 1 = 4,294,967,297

    is a composite number. One of the many unproven conjectures about prime numbersis Goldbachs Conjecture. In a letter to Euler in 1742, Christian Goldbach statedthe conjecture that every even integer with the exception of 2 seemed to be the sumof two primes: 4 = 2 + 2, 6 = 3+ 3, 8 = 3+ 5,. . .. Although the conjecture has beenverified for the numbers up through 100 million, it has yet to be proven in general.Since prime numbers play an important role in public key cryptography, there is

    currently a great deal of interest in determining whether or not a large number isprime.

    Exercises

    1. Prove that

    12 + 22 + + n2 = n(n + 1)(2n + 1)6

    forn N.2. Prove that

    13 + 23 + + n3 = n2(n + 1)2

    4

    forn N.3. Prove thatn!> 2n forn 4.4. Prove that

    x + 4x + 7x + + (3n 2)x= n(3n 1)x2

    forn N.5. Prove that 10n+1 + 10n + 1 is divisible by 3 for n N.6. Prove that 4 102n + 9 102n1 + 5 is divisible by 99 for n N.7. Show that

    n

    a1a2 an 1n

    n

    k=1ak.

    8. Prove the Leibniz rule for f(n)(x), where f(n) is the nth derivative off; thatis, show that

    (fg)(n)(x) =n

    k=0

    n

    k

    f(k)(x)g(nk)(x).

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    44/444

    EXERCISES 33

    9. Use induction to prove that 1 + 2 + 22 + + 2n = 2n+1 1 for n N.10. Prove that 1

    2+

    1

    6+ + 1

    n(n + 1)=

    n

    n + 1

    forn N.11. Ifx is a nonnegative real number, then show that (1 + x)n 1 nx for

    n= 0, 1, 2, . . ..

    12. Power Sets. Let Xbe a set. Define thepower set ofX, denotedP(X),to be the set of all subsets ofX. For example,

    P({a, b}) = {, {a}, {b}, {a, b}}.For every positive integer n, show that a set with exactly n elements has a

    power set with exactly 2n elements.13. Prove that the two principles of mathematical induction stated in Section2.1

    are equivalent.

    14. Show that the Principle of Well-Ordering for the natural numbers implies that1 is the smallest natural number. Use this result to show that the Principle ofWell-Ordering implies the Principle of Mathematical Induction; that is, showthat ifS N such that 1 Sandn + 1 S whenevern S, then S= N.

    15. For each of the following pairs of numbers a and b, calculate gcd(a, b) andfind integers r and s such that gcd(a, b) = ra + sb.

    (a) 14 and 39

    (b) 234 and 165(c) 1739 and 9923

    (d) 471 and 562

    (e) 23,771 and 19,945(f) 4357 and 3754

    16. Let a and b be nonzero integers. If there exist integers r and s such thatar+ bs= 1, show that a and b are relatively prime.

    17. Fibonacci Numbers. The Fibonacci numbers are

    1, 1, 2, 3, 5, 8, 13, 21, . . . .

    We can define them inductively by f1 = 1, f2 = 1, and fn+2 = fn+1+fn forn N.

    (a) Prove thatfn< 2n.

    (b) Prove thatfn+1fn1 = f2n+ (1)n, n 2.

    (c) Prove thatfn= [(1 +

    5 )n (1 5 )n]/2n5.(d) Show that limn fn/fn+1 = (

    5 1)/2.

    (e) Prove thatfn and fn+1 are relatively prime.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    45/444

    34 CHAPTER 2 THE INTEGERS

    18. Let a and b be integers such that gcd(a, b) = 1. Let r and s be integers such

    thatar + bs= 1. Prove that

    gcd(a, s) = gcd(r, b) = gcd(r, s) = 1.

    19. Let x, y N be relatively prime. Ifxy is a perfect square, prove that x and ymust both be perfect squares.

    20. Using the division algorithm, show that every perfect square is of the form4k or 4k+ 1 for some nonnegative integer k .

    21. Suppose thata, b, r, sare pairwise relatively prime and that

    a2 + b2 =r2

    a2

    b2 =s2.

    Prove thata, r , and s are odd and b is even.

    22. Letn N. Use the division algorithm to prove that every integer is congruentmod n to precisely one of the integers 0, 1, . . . , n 1. Conclude that ifr isan integer, then there is exactly one s in Zsuch that 0 s < nand [r] = [s].Hence, the integers are indeed partitioned by congruence mod n.

    23. Define the least common multiple of two nonzero integersa and b, denotedbylcm(a, b), to be the nonnegative integer m such that both a and b dividem, and ifa and b divide any other integer n, then m also divides n. Provethat any two integers a and b have a unique least common multiple.

    24. Ifd = gcd(a, b) and m = lcm(a, b), prove that dm = |ab|.

    25. Show that lcm(a, b) = ab if and only if gcd(a, b) = 1.

    26. Prove that gcd(a, c) = gcd(b, c) = 1 if and only ifgcd(ab,c) = 1 for integersa, b, and c.

    27. Leta, b, c Z. Prove that if gcd(a, b) = 1 and a | bc, thena | c.28. Letp 2. Prove that if 2p 1 is prime, then p must also be prime.29. Prove that there are an infinite number of primes of the form 6n + 1.

    30. Prove that there are an infinite number of primes of the form 4n 1.31. Using the fact that 2 is prime, show that there do not exist integers p and

    qsuch that p2 = 2q2. Demonstrate that therefore

    2 cannot be a rationalnumber.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    46/444

    EXERCISES 35

    Programming Exercises

    1. The Sieve of Eratosthenes. One method of computing all of the primenumbers less than a certain fixed positive integerNis to list all of the numbersn such that 1< n < N. Begin by eliminating all of the multiples of 2. Nexteliminate all of the multiples of 3. Now eliminate all of the multiples of5. Notice that 4 has already been crossed out. Continue in this manner,noticing that we do not have to go all the way to N; it suffices to stop at

    N.

    Using this method, compute all of the prime numbers less than N = 250.We can also use this method to find all of the integers that are relativelyprime to an integer N. Simply eliminate the prime factors ofNand all oftheir multiples. Using this method, find all of the numbers that are relativelyprime toN= 120. Using the Sieve of Eratosthenes, write a program that willcompute all of the primes less than an integer N.

    2. Let N0 =N {0}. Ackermanns function is the function A : N0 N0 N0defined by the equations

    A(0, y) = y + 1,

    A(x + 1, 0) = A(x, 1),

    A(x + 1, y+ 1) = A(x, A(x + 1, y)).

    Use this definition to computeA(3, 1). Write a program to evaluate Acker-manns function. Modify the program to count the number of statementsexecuted in the program when Ackermanns function is evaluated. How manystatements are executed in the evaluation ofA(4, 1)? What about A(5, 1)?

    3. Write a computer program that will implement the Euclidean algorithm. The

    program should accept two positive integers a and b as input and shouldoutput gcd(a, b) as well as integers r ands such that

    gcd(a, b) = ra + sb.

    References and Suggested Readings

    References [2], [3], and [4] are good sources for elementary number theory.

    [1] Brookshear, J. G. Theory of Computation: Formal Languages, Automata,and Complexity. Benjamin/Cummings, Redwood City, CA, 1989. Shows therelationships of the theoretical aspects of computer science to set theory andthe integers.

    [2] Hardy, G. H. and Wright, E. M. An Introduction to the Theory of Numbers.6th ed. Oxford University Press, New York, 2008.

    [3] Niven, I. and Zuckerman, H. S. An Introduction to the Theory of Numbers.5th ed. Wiley, New York, 1991.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    47/444

    36 CHAPTER 2 THE INTEGERS

    [4] Vanden Eynden, C. Elementary Number Theory. 2nd ed. Waveland Press,

    Long Grove IL, 2001.Sage Sages original purpose was to support research in number theory, soit is perfect for the types of computations with the integers that we have inthis chapter.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    48/444

    3Groups

    We begin our study of algebraic structures by investigating sets associated

    with single operations that satisfy certain reasonable axioms; that is, we wantto define an operation on a set in a way that will generalize such familiarstructures as the integers Z together with the single operation of addition,or invertible 2 2 matrices together with the single operation of matrixmultiplication. The integers and the 2 2 matrices, together with theirrespective single operations, are examples of algebraic structures known as

    groups.The theory of groups occupies a central position in mathematics. Modern

    group theory arose from an attempt to find the roots of a polynomial interms of its coefficients. Groups now play a central role in such areas ascoding theory, counting, and the study of symmetries; many areas of biology,

    chemistry, and physics have benefited from group theory.

    3.1 Integer Equivalence Classes and Symmetries

    Let us now investigate some mathematical structures that can be viewed assets with single operations.

    The Integers mod n

    The integers modn have become indispensable in the theory and applicationsof algebra. In mathematics they are used in cryptography, coding theory,

    and the detection of errors in identification codes.We have already seen that two integers a and b are equivalent mod n ifndividesa b. The integers mod n also partition Z inton different equivalenceclasses; we will denote the set of these equivalence classes by Zn. Consider

    37

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    49/444

    38 CHAPTER 3 GROUPS

    the integers modulo 12 and the corresponding partition of the integers:

    [0] = {. . . , 12, 0, 12, 24, . . .},[1] = {. . . , 11, 1, 13, 25, . . .},

    ...

    [11] = {. . . , 1, 11, 23, 35, . . .}.

    When no confusion can arise, we will use 0, 1, . . . , 11 to indicate the equiva-lence classes [0], [1], . . . , [11] respectively. We can do arithmetic on Zn. Fortwo integersa and b, define addition modulon to be (a + b) (mod n); that is,the remainder when a +b is divided by n. Similarly, multiplication modulon is defined as (ab) (mod n), the remainder when ab is divided by n.

    Table 3.1. Multiplication table for Z8 0 1 2 3 4 5 6 70 0 0 0 0 0 0 0 01 0 1 2 3 4 5 6 72 0 2 4 6 0 2 4 63 0 3 6 1 4 7 2 54 0 4 0 4 0 4 0 45 0 5 2 7 4 1 6 36 0 6 4 2 0 6 4 27 0 7 6 5 4 3 2 1

    Example 1. The following examples illustrate integer arithmetic modulo n:

    7 + 4 1 (mod 5)3 + 5 0 (mod 8)3 + 4 7 (mod 12)

    7 3 1 (mod 5)3 5 7 (mod 8)3 4 0 (mod 12).

    In particular, notice that it is possible that the product of two nonzero

    numbers modulo n can be equivalent to 0 modulo n.

    Example 2. Most, but not all, of the usual laws of arithmetic hold foraddition and multiplication in Zn. For instance, it is not necessarily truethat there is a multiplicative inverse. Consider the multiplication table forZ8 in Table3.1. Notice that 2, 4, and 6 do not have multiplicative inverses;

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    50/444

    3.1 INTEGER EQUIVALENCE CLASSES AND SYMMETRIES 39

    that is, for n= 2, 4, or 6, there is no integer k such that kn1 (mod 8).

    Proposition 3.1 LetZn be the set of equivalence classes of the integersmodn anda, b, c Zn.

    1. Addition and multiplication are commutative:

    a + b b + a (mod n)ab ba (mod n).

    2. Addition and multiplication are associative:

    (a + b) + c a + (b + c) (mod n)(ab)c a(bc) (mod n).

    3. There are both an additive and a multiplicative identity:

    a + 0 a (mod n)a 1 a (mod n).

    4. Multiplication distributes over addition:

    a(b + c)

    ab + ac (mod n).

    5. For every integera there is an additive inversea:

    a + (a) 0 (mod n).

    6. Leta be a nonzero integer. Thengcd(a, n) = 1if and only if there existsa multiplicative inverseb fora (mod n); that is, a nonzero integerbsuch that

    ab 1 (mod n).

    Proof. We will prove (1) and (6) and leave the remaining properties to be

    proven in the exercises.(1) Addition and multiplication are commutative modulo n since the

    remainder ofa + bdivided by n is the same as the remainder ofb + adividedbyn.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    51/444

    40 CHAPTER 3 GROUPS

    (6) Suppose that gcd(a, n) = 1. Then there exist integers r ands such

    that ar+ ns = 1. Since ns = 1 ar, ra 1 (mod n). Letting b be theequivalence class ofr, ab 1 (mod n).

    Conversely, suppose that there exists a b such that ab 1 (mod n).Then n divides ab 1, so there is an integer k such that ab nk= 1. Letd = gcd(a, n). Sinced divides ab nk, d must also divide 1; hence, d= 1.

    Symmetries

    Figure 3.1. Rigid motions of a rectangle

    reflection

    horizontal axis

    A

    D

    B

    C

    C

    B

    D

    A

    reflectionvertical axis

    A

    D

    B

    C

    A

    D

    B

    C

    180

    rotation

    A

    D

    B

    C

    D

    A

    C

    B

    identityA

    D

    B

    C

    B

    C

    A

    D

    A symmetry of a geometric figure is a rearrangement of the figurepreserving the arrangement of its sides and vertices as well as its distances

    and angles. A map from the plane to itself preserving the symmetry of anobject is called a rigid motion. For example, if we look at the rectangle inFigure3.1, it is easy to see that a rotation of 180 or 360 returns a rectanglein the plane with the same orientation as the original rectangle and the same

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    52/444

    3.1 INTEGER EQUIVALENCE CLASSES AND SYMMETRIES 41

    relationship among the vertices. A reflection of the rectangle across either

    the vertical axis or the horizontal axis can also be seen to be a symmetry.However, a 90 rotation in either direction cannot be a symmetry unless therectangle is a square.

    Figure 3.2. Symmetries of a triangle

    A

    B

    C

    reflection

    B C

    A

    3=

    A B CB A C

    A

    B

    C

    reflection

    C A

    B

    2=

    A B CC B A

    A

    B

    C

    reflection

    A B

    C

    1=

    A B CA C B

    A

    B

    C

    rotation

    B A

    C

    2=

    A B CC A B

    A

    B

    C

    rotation

    C B

    A

    1= A B CB C AA

    B

    C

    identity

    A C

    B

    id=

    A B CA B C

    Let us find the symmetries of the equilateral triangleABC. To find asymmetry ofABC, we must first examine the permutations of the verticesA, B, and Cand then ask if a permutation extends to a symmetry of thetriangle. Recall that a permutationof a set S is a one-to-one and ontomap : S S. The three vertices have 3! = 6 permutations, so the triangle

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    53/444

    42 CHAPTER 3 GROUPS

    has at most six symmetries. To see that there are six permutations, observe

    there are three different possibilities for the first vertex, and two for thesecond, and the remaining vertex is determined by the placement of the firsttwo. So we have 3 2 1 = 3! = 6 different arrangements. To denote thepermutation of the vertices of an equilateral triangle that sends A to B , Bto C, and C to A, we write the array

    A B CB C A

    .

    Notice that this particular permutation corresponds to the rigid motionof rotating the triangle by 120 in a clockwise direction. In fact, everypermutation gives rise to a symmetry of the triangle. All of these symmetries

    are shown in Figure3.2.A natural question to ask is what happens if one motion of the triangleABC is followed by another. Which symmetry is 11; that is, whathappens when we do the permutation 1 and then the permutation 1?Remember that we are composing functions here. Although we usually multiplyleft to right, we compose functions right to left. We have

    (11)(A) =1(1(A)) =1(B) =C

    (11)(B) =1(1(B)) =1(C) =B

    (11)(C) =1(1(C)) =1(A) =A.

    This is the same symmetry as 2. Suppose we do these motions in the

    opposite order, 1 then 1. It is easy to determine that this is the sameas the symmetry 3; hence, 11= 11. A multiplication table for thesymmetries of an equilateral triangleABC is given in Table 3.2.

    Notice that in the multiplication table for the symmetries of an equilateraltriangle, for every motion of the triangle there is another motion suchthat =id; that is, for every motion there is another motion that takesthe triangle back to its original orientation.

    3.2 Definitions and Examples

    The integers mod n and the symmetries of a triangle or a rectangle are both

    examples of groups. A binary operationor law of compositionon a setGis a function G G Gthat assigns to each pair (a, b) G Ga uniqueelementa b, orab in G, called the composition ofa and b. Agroup (G, )is a set G together with a law of composition (a, b) a b that satisfies thefollowing axioms.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    54/444

    3.2 DEFINITIONS AND EXAMPLES 43

    Table 3.2. Symmetries of an equilateral triangle

    id 1 2 1 2 3id id 1 2 1 2 31 1 2 id 3 1 22 2 id 1 2 3 11 1 2 3 id 1 22 2 3 1 2 id 13 3 1 2 1 2 id

    The law of composition is associative. That is,

    (a

    b)

    c= a

    (b

    c)

    for a,b, c G. There exists an element e G, called the identity element, such

    that for any element a G

    e a= a e= a.

    For each element a G, there exists an inverse element in G,denoted by a1, such that

    a

    a1 =a1

    a= e.

    A group G with the property that a b = b a for all a, b G is calledabelian or commutative . Groups not satisfying this property are said tobe nonabelian or noncommutative .

    Example 3. The integers Z = {. . . , 1, 0, 1, 2, . . .} form a group under theoperation of addition. The binary operation on two integers m, n Z is justtheir sum. Since the integers under addition already have a well-establishednotation, we will use the operator + instead of; that is, we shall write m + ninstead ofm n. The identity is 0, and the inverse ofn Zis written asninstead ofn1. Notice that the integers under addition have the additional

    property thatm + n= n + m and are therefore an abelian group.

    Most of the time we will write ab instead ofa b; however, if the groupalready has a natural operation such as addition in the integers, we will usethat operation. That is, if we are adding two integers, we still write m + n,

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    55/444

    44 CHAPTER 3 GROUPS

    Table 3.3. Cayley table for (Z5, +)+ 0 1 2 3 40 0 1 2 3 41 1 2 3 4 02 2 3 4 0 13 3 4 0 1 24 4 0 1 2 3

    n for the inverse, and 0 for the identity as usual. We also write m ninstead ofm + (n).

    It is often convenient to describe a group in terms of an addition or

    multiplication table. Such a table is called a Cayley table .

    Example 4. The integers mod n form a group under addition modulo n.ConsiderZ5, consisting of the equivalence classes of the integers 0, 1, 2, 3,and 4. We define the group operation on Z5 by modular addition. We writethe binary operation on the group additively; that is, we write m + n. Theelement 0 is the identity of the group and each element in Z5 has an inverse.For instance, 2 + 3 = 3 + 2 = 0. Table 3.3is a Cayley table for Z5. ByProposition3.1, Zn = {0, 1, . . . , n 1}is a group under the binary operationof addition mod n.

    Example 5. Not every set with a binary operation is a group. For example,if we let modular multiplication be the binary operation on Zn, then Zn failsto be a group. The element 1 acts as a group identity since 1 k= k 1 =kfor any k Zn; however, a multiplicative inverse for 0 does not exist since0 k = k 0 = 0 for every k in Zn. Even if we consider the set Zn\ {0},we still may not have a group. For instance, let 2 Z6. Then 2 has nomultiplicative inverse since

    0 2 = 0 1 2 = 22 2 = 4 3 2 = 04

    2 = 2 5

    2 = 4.

    By Proposition 3.1, every nonzero k does have an inverse in Zn if k isrelatively prime to n. Denote the set of all such nonzero elements in Zn byU(n). ThenU(n) is a group called the group of units ofZn. Table3.4 isa Cayley table for the group U(8).

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    56/444

    3.2 DEFINITIONS AND EXAMPLES 45

    Table 3.4. Multiplication table for U(8) 1 3 5 71 1 3 5 73 3 1 7 55 5 7 1 37 7 5 3 1

    Example 6. The symmetries of an equilateral triangle described in Sec-tion3.1 form a nonabelian group. As we observed, it is not necessarily truethat = for two symmetries and . Using Table 3.2, which is aCayley table for this group, we can easily check that the symmetries of an

    equilateral triangle are indeed a group. We will denote this group by eitherS3 or D3, for reasons that will be explained later.

    Example 7. We use M2(R) to denote the set of all 2 2 matrices. LetGL2(R) be the subset ofM2(R) consisting of invertible matrices; that is, amatrix

    A=

    a bc d

    is in GL2(R) if there exists a matrix A

    1 such that AA1 = A1A = I,whereIis the 2 2 identity matrix. ForA to have an inverse is equivalent torequiring that the determinant ofA be nonzero; that is, det A= ad

    bc

    = 0.

    The set of invertible matrices forms a group called thegeneral linear group.The identity of the group is the identity matrix

    I=

    1 00 1

    .

    The inverse ofA GL2(R) is

    A1 = 1

    ad bc

    d bc a

    .

    The product of two invertible matrices is again invertible. Matrix multipli-

    cation is associative, satisfying the other group axiom. For matrices it isnot true in general that AB=BA; hence, GL2(R) is another example of anonabelian group.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    57/444

    46 CHAPTER 3 GROUPS

    Example 8. Let

    1 =1 0

    0 1

    I=

    0 11 0

    J=

    0 ii 0

    K=

    i 00 i

    ,

    wherei2 =1. Then the relations I2 =J2 =K2 =1, IJ=K, JK=I,KI = J, JI =K, KJ =I, and IK =J hold. The set Q8 ={1, I, J, K}is a group called the quaternion group. Notice that Q8is noncommutative.

    Example 9. Let C

    be the set of nonzero complex numbers. Under theoperation of multiplication C forms a group. The identity is 1. Ifz = a + biis a nonzero complex number, then

    z1 = a bia2 + b2

    is the inverse ofz . It is easy to see that the remaining group axioms hold.

    A group is finite, or has finite order, if it contains a finite number ofelements; otherwise, the group is said to be infinite or to have infiniteorder. Theorderof a finite group is the number of elements that it contains.IfG is a group containing n elements, we write

    |G

    |=n. The group Z5 is a

    finite group of order 5; the integers Z form an infinite group under addition,and we sometimes write|Z| = .

    Basic Properties of Groups

    Proposition 3.2 The identity element in a group G is unique; that is, thereexists only one elemente G such thateg= ge = g for allg G.

    Proof. Suppose that e ande are both identities in G. Theneg= ge= gand eg = ge =g for all gG. We need to show that e= e. If we thinkof e as the identity, then ee = e; but if e is the identity, then ee = e.Combining these two equations, we have e= ee =e.

    Inverses in a group are also unique. Ifg andg are both inverses of anelement g in a group G, then gg = g g = e and gg = gg = e. We wantto show that g = g, but g = ge = g(gg) = (gg)g = eg = g. Wesummarize this fact in the following proposition.

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    58/444

    3.2 DEFINITIONS AND EXAMPLES 47

    Proposition 3.3 Ifg is any element in a group G, then the inverse ofg,

    g1

    , is unique.Proposition 3.4 LetG be a group. Ifa, b G, then(ab)1 =b1a1.Proof. Let a, b G. Then abb1a1 = aea1 = aa1 = e. Similarly,b1a1ab= e. But by the previous proposition, inverses are unique; hence,(ab)1 =b1a1.

    Proposition 3.5 LetG be a group. For anya G, (a1)1 =a.Proof. Observe thata1(a1)1 =e. Consequently, multiplying both sidesof this equation by a, we have

    (a1)1 =e(a1)1 =aa1(a1)1 =ae = a.

    It makes sense to write equations with group elements and group opera-tions. Ifaand bare two elements in a group G, does there exist an elementx G such that ax= b? If such an xdoes exist, is it unique? The followingproposition answers both of these questions positively.

    Proposition 3.6 LetG be a group anda andb be any two elements inG.Then the equationsax= b andxa= b have unique solutions inG.

    Proof. Suppose that ax = b. We must show that such an x exists.Multiplying both sides ofax = b bya1, we have x = ex = a1ax= a1b.

    To show uniqueness, suppose that x1 andx2 are both solutions ofax = b;then ax1 = b = ax2. So x1 = a1ax1 = a

    1ax2 = x2. The proof for theexistence and uniqueness of the solution ofxa = b is similar.

    Proposition 3.7 IfG is a group anda,b, c G, thenba = ca impliesb = candab= ac impliesb= c.

    This proposition tells us that the right and left cancellation lawsare true in groups. We leave the proof as an exercise.

    We can use exponential notation for groups just as we do in ordinaryalgebra. IfG is a group and gG, then we define g0 =e. FornN, wedefine

    gn =g

    g

    g ntimesand

    gn =g1 g1 g1 ntimes

    .

  • 8/10/2019 Abstract Algebra (Thomas W Judson) (Aug 2013) [GNU GPL]

    59/444

    48 CHAPTER 3 GROUPS

    Theorem 3.8 In a group, the usual laws of exponents hold; that is, for all

    g, h G,1. gmgn =gm+n for allm, n Z;2. (gm)n =gmn for allm, n Z;3. (gh)n = (h1g1)n for alln Z. Furthermore, ifG is abelian, then

    (gh)n =gnhn.

    We will leave the proof of this theorem as an exercise. Notice that(gh)n =gnhn in general, since the group may not be abelian. If the groupis Z or Zn, we write the group operation additively and the exponentialoperation multiplicatively; that is, we write ng instead ofgn. The laws ofexponents now become

    1. mg+ ng= (m + n)g for all m, n Z;2. m(ng) = (mn)g for all m, n Z;3. m(g+ h) =mg + mhfor all n Z.

    It is important to realize