Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132922 views
License: OTHER
Kernel: SageMath (stable)
[r

Abstract Algebra: An Interactive Approach, 2e

©2015 This notebook is provided with the textbook, "Abstract Algebra: An Interactive Approach, 2nd Ed." by William Paulsen. Users of this notebook are encouraged to buy the textbook.

Chapter 1
Understanding the Group Concept

Initialization: This cell MUST be evaluated first:

%display latex try: load('absalgtext.sage') except IOError: load('/media/sf_sage/absalgtext.sage')

The above command should automatically be evaluated as the worksheet is loaded. As long as a blue "Initialization Done" message appears at the bottom, we are ready to proceed.

The very first time this package is run, it may require additional databases to be downloaded from the internet. This only takes a few minutes, and only has to be done once. These databases will be available the next time Sage is run. This particular chapter does not use the databases, but make sure you close Sage and restart it before loading a different chapter.



Introdection to Groups
Modular Congruence
The Definition of a Group
Sage Interactive Problems

Introduction to Groups



To help introduce us to the concept of groups, let us meet a triangle which, through Sage, will dance before your eyes! To see Terry the Triangle, execute the following Sage command. This is done by clicking the mouse inside the rectangle in which the command appears, and press Shift + Enter. If you are not using CoCalc, you could also click on the expression, then click on the "Evaluate" button that appears. Try it!

ShowTerry()

Terry may not look very impressive, but with Sage animation, Terry can do some tricks. For example, Terry can rotate with the following command:
Terry(RotRt)

This command takes a little longer to execute. Notice that a light green bar appears becide the area where the answer will appear in order to assure you that the command is being executed. As you can see, RotRt is the abbreviation for rotation right, or clockwise. Terry can rotate counterclockwise with the command:
Terry(RotLft)

Terry can do more than just rotate. For example, Terry can spin in three dimensions.
Terry(Spin)

Terry can also do some gymnastic tricks, such as flipping over the right and left shoulder.
Terry(FlipRt)
Terry(FlipLft)

This makes 5 different moves that Terry can do. There is one more trick that Terry can perform:
Terry(Stay)

Good triangle!

These six commands are the six dance steps that Terry can do. Terry can combine these dance steps to form a dance routine. We separate the dance steps by commas. Here is a simple routine that Terry can do:

Terry(FlipRt, Spin, RotRt)

EXPERIMENT:
You may have noticed in the previous animation that Terry ends the dance routine in the original orientation. What if the order of the dance steps were changed? Edit the last command to change the order of Terry's steps, and see what happens.

Here is a shorter dance sequence for Terry. Pay special attention to how Terry is oriented after the dance routine.
Terry(FlipRt, Spin)

Sometimes Terry gets tired of doing all of these long routines. When this happens, Terry takes a short cut to get to the final orientation. For example, the above routine leaves Terry in the same orientation as RotLft, and so Terry would simply rotate instead of doing the extra gymnastics. Executing the follow command allows Terry to take short cuts in all dance routines.
InitTerry()

Now let's ask Terry to do the same dance routine.
Terry(FlipRt, Spin)

Notice that Terry simply rotates to get to the correct orientation. Rather than calling Terry a bad triangle for being lazy, we must commend Terry for being smart enough to know that a flip to the right followed by a spin is equivalent to a counter-clockwise rotation. In essence Terry has learned how to "multiply" two dance steps together.

We can use Sage to multiply dance steps together, using the star to indicate Terry's multiplication. Thus, Sage simplifies FlipRt · Spin as follows:

FlipRt * Spin

We can display a "multiplication table" of all of Terry's dance steps by the following command
MultTable([Stay, FlipRt, RotRt, FlipLft, RotLft, Spin])

To read this table, we look for the first of the dance steps on the left hand side of the table, and the second of the dance steps on the top. Thus, to determine FlipRt · Spin, we look at the right hand entry of the second row to find RotLft. This table is often refered to as a Cayley table.



This table illuminates some properties of the dance steps. Each of the six dance steps is in a different color, to highlight these properties. One property this table demonstrates that the combination of any two dance steps is equivalent to one of the six dance steps.

Another of the easiest properties to observe is in the Stay row and column. Notice that whenever the command Stay is combined with any other dance step, it leaves that dance step unchanged. Try this for yourself:

Stay * RotRt
RotRt * Stay

EXPERIMENT:
Replace RotRt in the above two Sage commands with a different dance step and re-evaluate them. Notice what happens.

You may observe that the Stay command acts like the number 1 in our standard multiplication. In mathematical notation, we say that

Stay · x = x and x · Stay = x

for all dance steps x. We call Stay the identity of the dance steps.

But there is a property of these dance steps that is unlike our standard multiplication. In a previous experiment, you were asked to change the order of the dance steps in a routine to see if that would affect the final orientation. In fact, it did! Check out the following two products:

Spin * FlipRt
FlipRt * Spin

As we see, the product depends on the order in which the dance steps are multiplied. In other words,

x·y is sometimes not equal to y·x.

This is perhaps the biggest difference between Terry's algebra and the algebra that we are familiar with. We are familar with the commutative property of numbers:

x y = y x for all real numbers x and y.

Since Terry's dance steps do not obey this law, we say that the dance steps are non-commutative.

There is another property that we are familiar with in standard algebra:

x (y z) = (x y) z for all numbers x, y, and z.

This is called the associative law of multiplication. Do Terry's dance steps obey this law?

EXPERIMENT:
Compare the two products:

(Spin * RotRt) * FlipLft
Spin * (RotRt * FlipLft)

Try changing the dance steps to see if we always get the same product, regardless of where the parenthesis are.

There is another property that we can observe from Terry's multiplication table. Here it is again.
MultTable([Stay, FlipRt, RotRt, FlipLft, RotLft, Spin])

Notice that the identity dance step, Stay is in every row and every column in the table. (Notice the yellow squares.) This indicates that every dance step has some dance step which "undoes" it. For example, RotLft will undo a RotRt command, since
RotLft * RotRt

gives us the identity element. Likewise, the Spin command undoes itself, for two spins in secession
Spin * Spin

returns to the original position.

Using mathematical notation again, we say that for every dance step x, there is some dance step y such that

x·y = Stay.

The dance step y is called an inverse of x. For example, RotLft is the inverse of RotRt, and Spin is the inverse of Spin.



Terry claims that if x·y = Stay, then y·x will also equal Stay. Although this can be seen to be true by looking at the multiplication table, can you prove that this is so using only the properties of Terry's dance steps that we have discovered? Here is a summary of what we have found so far:

1) The order in which the dance steps are performed are important.
  For example, Spin · FlipRtFlipRt · Spin.

2) The combination of any two dance steps is equivalent to one of the six dance steps.

3) The order in which a dance routine is simplified does not matter.
  That is, (x·yz = x·(y·z) for any dance steps x, y, and z.

4) Any dance step combined with Stay yields the same dance step.
  That is, x·Stay = x and Stay·x = x for any dance step x.

5) Every dance step has another dance step that "undoes" it. That is,
  for any dance step x, there is a dance step y such that x·y = Stay.
  For example, a step that undoes RotRt is RotLft.

We will introduce the following mathematical terminology to express each of these properties.

1) The dance steps are not commutative.

2) The dance steps are closed under multiplication.

3) The dance steps are associative.

4) There is an identity dance step.

5) Every dance step has an inverse.

With just these properties, can you prove the following proposition on your own without looking at the proof?

PROPOSITION 1.1
If y is an inverse of x, then x is an inverse of y. Furthermore, x will be the only inverse of y.

Hint: Because we don't have the commutative property, we must use some other strategy. Recall that y must also have an inverse!

Click here for the proof.

All of the proofs in these notebooks appear near the end, before the Sage problems, with links allowing us to go directly to them. This gives the user a chance to work the proof out on him own before peeking at the books version. Notice that we did not yet assume that there is only one identity element. However, this fact immediately follows from Proposition 1.1. (See Problems 3 and 4.)


DEFINITION 1.1 We use the notation x-1 for the unique inverse of the element x.

This is entered into Sage as

Spin^-1

Proposition 1.1 can now be expressed simply as (x-1)-1 = x. Is it true that (x·y)-1 = x-1·y-1, as we are accustomed too?

EXPERIMENT:
Try the following commands to see if they give the same result.

(FlipRt * Spin)^-1
FlipRt^-1 * Spin^-1

Try using different dance steps in place of FlipRt amd Spin. What do you observe?

Apparently, (x·y)-1 is not always equal to x-1·y-1. But Terry would tell you that in order to undo a sequence of dance steps, one must begin by undoing the last dance step. Thus, the way to undo the routine (Spin · RotRt) is by first rotating left, and spinning back to the original position.
(FlipRt * Spin)^-1
Spin^-1 * FlipRt^-1


This suggests that

(x·y)-1 = y-1·x-1.

Can you prove this?

PROPOSITION 1.2

(x·y)-1 = y-1·x-1.

Click here for the proof.

Let us see if we can find any more patterns in Terry's multiplication table. Here is the table again:

MultTable([Stay, FlipRt, RotRt, FlipLft, RotLft, Spin])

Before we noticed that every row and every column contained the identity element, Stay. Which other elements have this property?

In answering this, you probably discovered that every row and every column in this table contains all six elements. If we disregard the heading row and column in the table, each element appears exactly once in each row, and once in each column. This formation is refered to as a Latan square. How could we show that this would happen using only the four properties we have been using?

First we must translate this pattern into a mathematical statement before it can be proven. To say that the element RotRt appears only once in the row beginning with Spin is to say that there is only one dance step x such that

Spin · x = RotRt.

So we can say that each row contains exactly one of every element by the following statement:

PROPOSITION 1.3
If a and b are given, then there exists a unique x such that

a·x = b.

Click here for the proof.

Can you use this proposition to show that any column of the table contains only one of each element? This is essentually Problem 6.

Terry's dance steps provides us with a new and rather different type of multiplication. Even though there are very few of Terry's dance steps, we already can see some of the patterns that can appear when we consider the multiplication of these dance steps. In the next section we will consider another operation that has many of the same patterns.

Modular Congruence


Although we have seen an example of a totally different type of "multiplication", in this section we will explore different ways of combining two integers that has many of the same properties. These other types of "products" have some important applications. These multiplications stem from a property of adding and multiplying standard integers.

We have already introduced modular arithmetic in §0.3. We defined x mod n as the remainder r when x is divided by n, using the division algorithm. But we can also say that two integers x and y are equivalent if x mod n = y mod n. We will introduce another notation for this relation.

DEFINITION 1.2
Let x, y, and n be integers. We say x and y are equivalent modulo n, written

xy (mod n)

if, and only if, there is an integer k such that

(xy) = k n.

Note the slight difference in notation between the operator mod (expressed in boldface) and the above notation (where mod is not in boldface). The two notations are clearly related, since xy (mod n) means that x mod n = y mod n.

The new notation also satisfies three very important properties for equivalence (mod n).

  1. (Reflexive) Every integer x is equivalent to itself.

  2. (Symmetric) If x is equivalent to y, then y is equivalent to x.

  3. (Transitive) If x is equivalent to y, and y in turn is equivalent to z, then x is equivalent to z.

DEFINITION 1.3
Any relation that satisfies these three properties is called an equivalence relation. We will use the notation xy to say that x is equivalent to y for a generic equivalence relation.

Let us prove that equivalence (mod n) forms an equivalence relation.

PROPOSITION 1.4
Let n be a positive integer. Then the definition of

xy (mod n)

forms an equivalence relation on the set of integers.

Click here for the proof.

Whenever an equivalence relation is defined on a set, the set can be broken up into disjoint equivalence classes, where each equivalence class is the set of elements related to one element in the class.

DEFINITION 1.4
Let xy be an equivalence relation defined on a set S. Then the equivalence class [a] is the set of elements of S related to a. That is,

[a] = { sS | sa}.

EXAMPLE:
In the relation xy (mod 10), the set [3] will be the set of integers equivalent to 3 (mod 10), giving the set

[3] = {… -37, -27, -17, -7, 3, 13, 23, 33, 43, …}.

Other equivalence classes in this relation are similar.

It is not hard to show that the set of integers can be broken up into disjoint sets using the equivalence classes.

PROPOSITION 1.5
If xy is an equivalence relation on a set S, then S is the disjoint union of equivalence classes.

Click here for the proof.

Many of the properties of modular arithmetic found in §0.3 can be translated in terms of equivalence relations. For example, Proposition 0.2 can be restated by saying that if

xa (mod n)  and   yb (mod n),

then x + ya + b (mod n) and x ya b (mod n).

These statements make it clear that to add or multiply two numbers modulo n, we can choose any representative element from the equivalence class.

EXAMPLE:
Consider the set of numbers from {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, with the binary operation being xy = (x + y) mod 10. We can have Sage define this binary operation with the command

Z = AddMod(10); Z

This produces a set of 10 elements, which Sage displays using curly brackets. Although the elements of Z are displayed as integers, we will soon see that they have differnt properties than ordinary integers. We will continue to use the dot as the way to combine two members of the list. So even though the operation is addition modulo 10, we would write 4 · 7 = 1. Although it seems strange to use the dot instead of the plus sign, for consistency we will always use the dot for the operator, whatever that operator is. So the one thing we must remember is that the dot does not always mean multiplication. Rather, the dot represents the operation in the current context. For Terry's group, the dot represented combining two dance steps. Here, it represents addition modulo 10.

In Sage, we will use the star to indicate the operation, as we did for Terry's dance steps. In order to access the elements in the set Z, we will put a number in brackets to indicate the location number in the set. So here is how we can combine the fourth and seventh elements in Z.

Z[4] * Z[7]

We will still use the command MultTable to give the Cayley table of the set, even though the operation is more like addition.
MultTable(Z)

Can we find any patterns in this table, as we did in Terry's multiplication table? Yes, and even more. We can see that this table is a Latin square—every row and every column contains one of each number. Notice the diagonal streaks of color in the table. This Caylay table has symmetry—imagine a mirror placed along the northwest to southeast corners. What is causing this symmetry?

EXPERIMENT:
We saw that Terry's multiplication was not commutative. That is, x·y did not always equal y·x. What about adding modulo 10? Try the following commands

Z[4] * Z[7]
Z[7] * Z[4]

Are these the same? Try this with different numbers.

The symmetry in the table comes from the fact that x·y is always equal to y·x. We say that addition modulo 10 is communitive. Thus, we can see 5 properties from the table:

1) For any two numbers x and y in {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, x·y is in that set.
(Recall that we are using the dot to indication the operation, regardless of what that operation is. In this example, the operation is addition modulo 10.)

2) (x·yz = x·(y·z) for any x, y, and z.

3) x·0 = x and 0·x = x for all x.

4) For any x, there is a y such that x·y = 0.

5) For any x and y, x·y = y·x.

Notice that 0 now acts like Terry's command Stay. This is the identity.

Besides the table, Sage has another way of picturing a "product" by means of circular graphs. Enter in the following Sage command:

CircleGraph(Z, Add(1))

As you can see, Sage labels 10 equi-distant points on the circle with the digits 0 through 9, like a clock. It then draws an arrow from each point to the point produces by "adding 1 modulo 10".

EXPERIMENT:
Create eight more circle graphs by changing the Add(1) in the last command to Add(2), Add(3), Add(4), ⋯ Add(9). Which circular graph is the prettiest?

If none of those graphs were pretty enough, Sage can graph several of them at the same time. For example, the command

CircleGraph(Z, Add(1), Add(2), Add(3), Add(4), Add(5))

draws a circular graph with five different colored arrows. The red arrows represent adding 1 modulo 10, the green arrows represent adding 2, the purple arrows adding 3, the orange arrows adding 4, and the grey arrows represent adding 5 modulo 10.

We can also draw a circular graph of the inverses of the elements. The command

CircleGraph(Z, Inv)

draws an arrow from each point to its additive inverse. Notice that every arrow has a corresponding arrow in the opposite direction, which indicates that (x-1)-1 = x, as we found in Proposition 1.1. Also notice that 0 and 5 are there own inverses, as indicated by the two loops.

We are more familiar with base 10 arithmetic since most of us have ten fingers. However, this modular arithmetic can be done in other bases as well. The beings on the planet Xantz have seven fingers (three on each hand, and one coming out of the nose) so they only use the digits 0, 1, 2, 3, 4, 5, and 6. Their modular arithmetic would look like this:

4 + 5 ≡ 2 (mod 7),   4 × 5 ≡ 6 (mod 7).


(Actually, the symbols used on Xantz don't look anything like the symbols we use, so this is really a translation of what they would write.)

We can have Sage switch to base 7 with one easy command:

Z = AddMod(7); Z

We now can look at the multiplication tables and circle graphs of the set {0,1,2,3,4,5,6}:
MultTable(Z)
CircleGraph(Z, Add(1), Add(2), Add(3))

Notice that the patterns that we observed in modular 10 arithmetic are showing up hear as well.

EXPERIMENT:
Try creating tables and circle graphs for modulos other than 7 and 10. Do they all form the same basic pattern?


We can have Sage define the period to be multiplication modulo 7 instead of addition. This is done by the command:
Z = MultMod(7); Z

Now the term "multiplication table" seems more appropriate:
MultTable(Z)

Does this multiplication table have the same features that we have been seeing? No it doesn't! But if we remove the 0 row and column, we see that the remainder of the table would satisfy the same properties that we observed in Terry's multiplication table, such as the Latin square property. The identity is now the number 1. This table is in fact symmetrical, indicating that multiplication modulo 7 is commutative.

Here is a circular graph of multiplication modulo 7:

CircleGraph(Z, Mult(2), Mult(3))

Here, the red arrow indicates multiplication by 2, and the green arrow represents multiplication by 3 modulo 7.

Here is a circular graph of the inverse elements:

CircleGraph(Z, Inv)

What happens to 0? Recall that the inverse of x is defined to be the number y such that x·y = 1. But the equation 0·y ≡ 1 (mod 7) has no solution, so 0 does not have an inverse (as we saw in the multiplication table.) Thus, when Sage graphs the inverse function, 0 is sent to a question mark to indicate that there is no inverse of 0.

EXPERIMENT:
Try having Sage work with multiplication with a modulo other than 7, and form a circle graph of the inverse function. Is 0 the only number that does not have an inverse? If not, can you find a pattern to the numbers which do not have an inverse?

In the last experiment, you probably discovered that there may be many numbers without a multiplicative inverse. For example, by looking at the multiplication table modulo 10,
Z = MultMod(10) MultTable(Z)

we find several rows that do not contain any 1's. These rows indicate the numbers without inverses modulo 10. We can see these more clearly by looking at the circle graph of the inverse function.
CircleGraph(Z, Inv)

So 0, 2, 4, 5, 6, and 8 do not have inverses. Do you see a pattern in these numbers?
Hint: 2 does not have an inverse because there is no integer x such that

2 x = 1 + 10 n

for some n.

To help see the pattern, look at multiplication modulo 15:

Z = MultMod(15) CircleGraph(Z, Inv)

We see that 0, 3, 5, 6, 9, 10, and 12 do not have inverses. There are eight numbers which do have inverses modulo 15. What if we just considered those eight elements?
L = [Z[1], Z[2], Z[4], Z[7], Z[8], Z[11], Z[13], Z[14]] CircleGraph(L, Inv)

By using this smaller set of numbers, every element now has an inverse. What if we looked at the multiplication table of this smaller set?
MultTable(L)

One again, we can see some of the patterns in this table that we have seen before. Notice that this is a Latin square—every row and column contains each of the eight numbers. In fact, we can see the symmetry in this table which indicates that the multiplication is communative. Thus, we see that

1) For any two numbers x and y in {1, 2, 4, 7, 8, 11, 13, 14}, x·y is in that set.

2) (x·yz = x·(y·z) for any x, y, and z.

3) x · 1 = x and 1 · x = x for all x.

4) For any x, there is a y such that x · y = 1.

5) For any x and y, x · y = y · x.


EXPERIMENT:
Try this procedure working with different bases, such as n = 8 or n = 9: First type in Z = MultMod(n) which defines the multiplication modulo n. Then use make a circle graph of the Inv function to see which numbers have inverses modulo n. Finally, make a multiplication table of those numbers. Will this table always form a Latin square?

If the Latin square pattern always seems to appear for the invertible numbers, can we prove that this pattern will always appear?

PROPOSITION 1.6
For n a positive integer greater than 1, let the dot (·) denote multiplication modulo n. Let G be the set of all non-negative numbers less than n that have inverses modulo n. Then the set G has the following properties:

1) For any two numbers x and y in G, x·y is in G.

2) (x·yz = x·(y·z) for any x, y, and z.

3) x·1 = 1·x = x for all x.

4) For any x that is in G, there is a y in G such that x·y = 1.

5) For any x and y, x·y = y·x.

Click here for the proof.

Although we have found that the invertible elements modulo n will always have a multiplication table which forms a Latin square, we have only hinted at which numbers are invertible modulo n.

We saw that the numbers 0, 2, 4, 5, 6, and 8 are not invertible modulo 10. Note that these numbers all have a prime factor in common with 10: 0, 2, 4, 6, 8, and 10 are multiples of 2, whereas 0, 5, and 10 are multiples of 5. The remaining numbers, 1 ,3 ,7, and 9, are coprime to 10. Let us demonstrate why this is true in general.

PROPOSITION 1.7
Let n be in ℤ+. Then for x between 0 and n − 1, x has a multiplicatative inverse modulo n if, and only if, x is coprime to n.

Click here for the proof.

We now have seen several binary operations, such as Terry's dance steps, addition modulo n, and multiplication modulo n, which have many properties in common. In the next section we will generalize these examples to produce many more interesting examples, but in such a way that they will all have the important properties that we have seen.

The Definition of a Group


In this worksheet, we have seen several different ways of combining numbers or dance steps. Yet, all of the different "products" had many properties in common. We are now ready to try to generalize these examples. Our strategy is to define a group abstractly by requiring the same patterns we observed to continue. Thus, we make the following definition based upon the first four properties we saw in all of our examples.

DEFINITION 1.5
A group is a set G together with a binary operation (·) such that the following four properties hold:

1) (closure) For any x and y in G, x·y is in G.

2) (identity) There exists a member e in G which has the property that, for all x in G,

e·x = x·e = x.

3) (inverse) For every x in G, there exists a y in G, called the inverse of x, such that x·y = e.

4) (associative law) For any a, b, and c in G,

(a ·bc = a·(b·c).



These are the same four properties that we observed from Terry's dance steps, so Terry's dance steps give us the first example of a group. This group is more commonly refered to as the group of symmetries of a triangle, abbreviated by D3.

The members of the group, whether they are numbers, dance steps, or even ordered pairs, are called the elements of the group. The element e that satisfies property 2 is commonly called the identity element of the group.

The mathematical notation for an element x to be in a group G is

xG.

Thus, the symbol ∈ means "is an element of."

Since Propositions 1.1, 1.2, and 1.3 only used these four properties, the proofs are valid for all groups, using the identity element e in place of the dance step Stay.

Other examples of groups come from modular arithmetic. For n in ℤ, we considered the elements

{0, 1, 2, …, n − 1},

with the opperator (·) being the sum modulo n. This group will be denoted Zn. For example, the group Z10 is given by:
G = ZGroup(10); G
MultTable(G)

We also considered having the opperator (·) denoted the product modulo n, and considered only the set of numbers less than n that are coprime to n. Proposition 1.6 shows that this set also has the four properties of groups. We will refer to this group by Zn*. This group can be loaded in Sage by the command ZStar. For example, the group Z15* has 8 elements, with the following multiplication table.
G = ZStar(15); G
MultTable(G)

The groups Zn and Zn* had an additional property—the multiplication tables were symmetric about the northwest to southeast diagonal. Not all groups have this property, but those that do are important enough to give such groups a special name.

DEFINITION 1.6
A group G is abelian (or commutative) if x·y = y·x for all x, yG.

Although these definitions appear ad hoc, the four properties of groups appear in many different aspects of mathematics. Here are some examples of groups that appear on other contexts besides group theory:

EXAMPLE:
Consider the group consisting of all of the integers, ℤ. Our binary operation would be the sum of the two numbers. It is trivial to see that this satisfies all 4 properties, with 0 as the identity, and −x as the inverse of x. This is obviously an abelian group, since

a + b = b + a for all a and b in ℤ.

EXAMPLE:
Next, we could consider the group of all rational numbers, which is denoted by ℚ. (This is easy to remember, since ℚ stands for Quotient.) Our binary operation would still be addition, so the identity element would still be 0, and this would also be an abelian group.

EXAMPLE:
Consider the group of all rational numbers except for 0. We will refer to this group as ℚ*. Our group operation would be multiplication instead of addition. The identity element is now 1, and the inverse of an element is the reciprocal. Again, this is an abelian group.

EXAMPLE:
Consider the set of all linear functions of the form

f(x) = m x + b, with m, b ∈ ℝ, m ≠ 0.

(The fancy ℝ here represents the real numbers.) We multiply two linear functions together by function composition. That is, if f(x) = m x + b, and g(x) = n x + c, then

f·g = f(g(x)) = m(n x + c) + b = (m n) x + (m c + b)

which is again a linear function. Note that in f·g, we do g first, then f, so we apply the functions from right to left. We can find the inverse of f(x) as well:

f-1(x) = 1m xbm,

which is also a linear function. The identity function is just e(x) = x. The associativity property of function composition completes the requirements for the set of all linear functions to constitute a group.

Is this group abelian? Let f(x) = 2x + 3, and g(x) = 3x + 2. Then f(g(x)) is 2(3x + 2) + 3 = 6x + 7, whereas g(f(x)) = 3(2x + 3) + 2 = 6x + 11. So this is not an abelian group.

These last four groups have an infinite number of elements, so we unfortunately cannot construct multiplication tables for them. To distinquish the groups which have multiplication tables, we make the following definition:

DEFINITION 1.7
The number of elements in a group G is called the order of the group, and is denoted |G|. If G is has an infinite number of elements, we say that |G| = ∞.

The last four examples had infinite order, and hence we cannot form multiplication tables for these groups. On the opposite end of the spectrum, what is the smallest possible group? The third group property states that there must be an identity element in the group. So the smallest group is the following:

EXAMPLE:
Consider the group containing just the identity element, {e}. Why is this a group?

We know that since e is an identity, e·e = e. It does contain an identity element, and e has an inverse, namely e. We can check associativity by noting that

(e·ee = e·(e·e) = e.

We can give a multiplication table of this group by executing the following:
InitGroup("e") MultTable([e])

This group seems too simple to be of practical value, so we call this the trivial group. Most of our groups will be much more interesting!

The first of these Sage commands introduces a new command—InitGroup. This command designates the new identity element, and sets the stage for entering a new group.

As we see from these examples, sometimes the operator (·) means addition, sometimes it means multiplication, and sometimes it means neither. Nonetheless, we can consider the operation of an element by itself a number of times. This produces combinations like

x,
x·x,
x·x·x,
x·x·x·x, and
x·x·x·x·x.

Even though the (·) does not always mean multiplication, we can define xn to mean x opperated on itself n times. Thus,
x = x1,
x·x = x2,
x·x·x = x3, etc.

We formally define xn for any integer n. We let x0 = e, the identity element, then we define, for n > 0,

xn = xn−1·x.

By defining the nth power in terms of the (n − 1)st power, we inductively have defined xn whenever n is a positive integer.

Finally, we can define negative powers by letting

xn = (xn)-1 if n > 0.

Note that if the operator · represents addition, the raising x to a power is repeated addition, which is multiplication.

We can now prove some theorems which involve this exponential notation.

PROPOSITION 1.8
If x is an element in a group G, and m and n are integers, then

xm+n = xn·xm.

Click here for the proof.

This last proof utilizes an important method of proving theorems called induction, which was introduced in §0.1. Induction is based on the well ordering axiom, which states that any non-empty subset of positive integers contains a smallest element.

It is not hard to see why this must be true. If there were some positive integer not in the set, then there must be a smallest positive integer k that is not in the set. Since 1 is in the set, we see that k > 1, and since k is the smallest number not in the set, k − 1 must be in the set. But the property of the set is that if k − 1 is in the set, then k also is. So we have a contradition, so there is no such k, meaning the the set is indeed all positive integers.

This gives us a powerful tool for proofs. In fact, we really do not need to introduce the variable k. To prove a statement for all positive integers n, we can first prove the statement is true for n = 1, and then we can assume that the statement is true for the previous case n − 1. This extra information often gives us the leverage we need to be able to prove the statement is true for n. Here is another example of the use of induction.

PROPOSITION 1.9
If x is an element in a group G, and m and n are in ℤ, then

(xm)n = x(m n)

Click here for the proof.

Propositions 1.8 and 1.9 show that the common laws of exponents hold for elements of a group. In the next section, we will use the powers of elements to explore the properties of a group.











































Proofs:

Proof of Proposition 1.1:

Let z be any inverse of y. Our job is to show that z is in fact equal to x. Consider the product x·y·z. According to the associative property,

x·(y·z) = (x·yz.

On the left side, we see that y·z is an identity element, so x·(y·z) = x. But on the right side, we find that x·y is an identity element, so (x·yz = z. Thus, x = z, and so x is an inverse of y. Therefore, the inverse of an inverse gives us back the original element.

But as a bonus, we see that inverses are unique! We let z be any inverse of y, and found that it had to equal x. Thus, y has only one inverse, namely x. But if we apply the argument again, reversing the roles of x and y, we see that x has only one inverse, namely y. Thus, all inverses are unique.

Return to text











































Proof of Proposition 1.2:

Since the inverse (x·y)-1 is the dance step z such that (x·yz = Stay, it suffices to show that y-1·x-1 has this property. We see that

(x·y)·(y-1·x-1) = x·(y·y-1x-1 = x·Stay·x-1 = x·x-1 = Stay.

So (x·y)-1 = y-1·x-1.

Return to text











































Proof of Proposition 1.3:

Suppose that there is an x such that a·x = b. We can multiply both sides of the equation on the left by a-1 to give us

a-1·(a·x) = a-1·b.

Then

(a-1·ax = a-1·b.

Stay·x = a-1·b.

So x = a-1·b. Thus, if there is a solution, this must be the unique solution a-1·b. Let us check that this is indeed a solution.

a·x = a·a-1·b = Stay·b = b.

Thus, there is only one solution to the equation, namely a-1·b.

Return to text











































Proof of Proposition 1.4:

To show that this definition is reflexive, we need to show that xx (mod n), which is clear since xx = 0·n.

To show that this definition is symmetric, suppose that xy (mod n). Then xy = k n for some integer k, hence yx = −k n for the integer −k. Thus, yx (mod n).

Finally, to show that this definition is transitive, suppose both xy (mod n) and yz (mod n). Then xy = k1 n and yz = k2 n, so

xz = (xy) + (yz) = k1 n + k2 n = (k1 + k2)n.

Hence, we find that xz (mod n).

Return to text











































Proof of Proposition 1.5:

For any aS, we have by the reflexive property that a ∈ [a], so [a] is non-empty, and the union of all equivalence classes will be all of S. Next, let us show that if there is an element c in common with two equivalence classes [a] and [b], then these classes are the same. Since ca and cb, we have by the symmetric and transitive properties that ab. Hence, for every x ∈ [a], xa, so x ∈ [b] as well, indicating [a] ⊆ [b]. By similar logic, [b] ⊆ [a], so [a] = [b].

Return to text











































Proof of Proposition 1.6:

Properties 2, 3, and 5 come from the properties of standard multiplication.

Property 1 comes from Proposition 1.2. If x and y are both invertible, then y-1·x-1 is an inverse of x·y, and so x·y is invertible modulo n.

Property 4 seems obvious, since if x is invertible modulo n, we let y = x-1 making x·y = 1. But we must check that y is also invertible, which it is since y-1 = x.

Return to text











































Proof of Proposition 1.7:

If x and n are not coprime, then there is a common prime factor p. In order for x to have a multiplicative inverse, there must be a y such that

x·y ≡ 1 (mod n).

But this means that x y = 1 + w n for some w. This is impossible, since x y is a multiple of p, but 1 + w n is one more than a multiple of p.

Now suppose that x and n are coprime. By the greatest common divisor theorem (0.4), there are u and v in ℤ such that

u x + v n = gcd(x, n) = 1.

But then

u x = 1 + (−v) n,

and so u·x ≡ 1 (mod n). Hence, u is a multiplicative inverse of x.

Return to text











































Proof of Proposition 1.8:

If m or n are 0, this proposition is very easy to verify:

xm+0 = xm = xm·e = xm·x0, x0+n = xn = e·xn = x0·xn.

We will now prove the statement when m and n are positive integers. If n is 1, then we have

xm+1 = x(m+1)−1·x = xm·x1,

using the inductive definition of the power of x.

We will now proceed by means of induction. That is, we will assume that the statement is true for n = k − 1, and then prove that it is then true for n = k. Then we will have that, since the statement is true for n = 1, and it is true for each number that follows, it must be true for all positive n.

Thus, we will assume that

xm+(k−1) = xm·xk−1.

But then

xm+k = xm+k−1·x = xm·xk−1·x = xm·xk.

Thus, by assuming the statement is true for n = k − 1, we found that it was also true for n = k. By induction, this proves that xm+n = xm·xn for all positive n.

Once we have the statement true for positive m and n, we can take the inverse of both sides to give us

(xm+n)-1 = (xn)-1·(xm)-1.

But by the definition of negative exponents, this is

x(−n)+(−m) = xn·xm

which, by letting M = −n and N = −m, proves the proposition for the case of both exponents being negative.

Finally, if m and n have different signs, then (m + n) will either have the same sign as −n, or the same sign as m. If (m + n) has the same sign as −n, then we have already shown that

xm = x(m+n)+(−n) = xm+n·xn.

So we have xm·(xn)-1 = xm+n·xn·(xn)-1, and hence xm+n = xm·xn.

If m + n has the same sign as −m, then we have already shown that

xn = x(−m)+(m+n) = xm·xm+n.

So we have (xm)-1·xn = (xm)-1·xm·xm+n, and hence xm+n = xm·xn.

Thus, we have proven the proposition for all integers m and n.

Return to text











































Proof of Proposition 1.9:

Notice that this statement is trivial if n = 0 or n = 1:

(xm)0 = e = xm·0,   (xm)1 = xm = xm·1

We will again proceed by means of induction, which means we can assume that the statement is true for the previous case, with n replaced by n − 1. That is, we can assume that

(xm)n−1 = xm(n−1).

Note that

(xm)n = (xm)n−1·xm = xm(n−1)·xm.

By Proposition 1.8, this is equal to x(m(n−1)+m) = xm n.

So by induction, the proposition holds for positive n. To see that it holds for negative n as well, simply note that

(xm)n = ((xm)n)-1 = (xm n)-1 = xm n.

If n is negative, then −n is positive, so the second step is valid.

Return to text











































Sage Interactive Problems


§1.1 #13)
If Terry was only allowed to do the steps FlipRt or FlipLft, could it get itself into all six possible positions? If possible, expressthe other four dance steps in terms of these two. The following Sage command reloads Terry's group.
InitTerry()

§1.1 #14)
Repeat Problem 13, only allow Terry to do only the steps RotRt or RotLft.

§1.1 #15)
Can you find a dance routine which includes each of Terry's 6 dance steps once, and only once, that puts Terry back into the initial position?

§1.2 #21)
Proposition 1.7 explains how to use xgcd to find the multiplicative inverse modulo n. Use Sage to find the multiplicative inverse of a modulo n, where a = 3, n = 100.

§1.2 #22)
Repeat Problem 21, with a = 5, n = 121.

§1.2 #23)
Repeat Problem 21, with a = 7, n = 360.

§1.2 #24)
Repeat Problem 21, with a = 11, n = 900.

§1.2 #25)
Repeat Problem 21, with a = 13, n = 1200.

§1.2 #26)
Repeat Problem 21, with a = 17, n = 1500.

§1.2 #27)
We saw that there were exactly four numbers less than 10 which were invertible modulo 10. For what other values of n are there exactly four numbers less than n which are invertible modulo n? Use Sage's circle graph to graph the inverse functions.

§1.3 #28)
Use Sage's ZStar command to find the size of Zn* for n = 9, 27, 81, 243, 5, 25, 125. Make a conjecture about the size of Zn* when n is a power of an odd prime. Note use can use the len(_) command to have Sage count the elements for you.

§1.3 #29)
Use Sage's ZStar command to find the size of Zn* for n = 18, 54, 162, 486, 50, 250, 98, 686. Make a conjecture about the size of Zn* when n is twice the power of an odd prime.

§1.3 #30)
Use Sage's ZStar command to find the size of Zmn*, where m and n are coprime, in terms of the sizes of Zm* and Zn*.