The integers mod have become indispensable in the theory and applications of 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 and are equivalent mod if divides . The integers mod also partition into different equivalence classes; we will denote the set of these equivalence classes by . Consider the integers modulo 12 and the corresponding partition of the integers:
When no confusion can arise, we will use to indicate the equivalence classes respectively. We can do arithmetic on . For two integers and , define addition modulo to be ; that is, the remainder when is divided by . Similarly, multiplication modulo is defined as , the remainder when is divided by .
The following examples illustrate integer arithmetic modulo :
.
In particular, notice that it is possible that the product of two nonzero numbers modulo can be equivalent to modulo .
Example3.1.2.Modular Arithmetic.
Most, but not all, of the usual laws of arithmetic hold for addition and multiplication in . For instance, it is not necessarily true that there is a multiplicative inverse. Consider the multiplication table for in Figure 3.1.3. Notice that 2, 4, and 6 do not have multiplicative inverses; that is, for , 4, or 6, there is no integer such that .
Figure3.1.3.Multiplication table for
Proposition3.1.4.
Let be the set of equivalence classes of the integers mod and .
We will prove (1) and (6) and leave the remaining properties to be proven in the exercises.
(1) Addition and multiplication are commutative modulo since the remainder of divided by is the same as the remainder of divided by .
(6) Suppose that . Then there exist integers and such that . Since , it must be the case that . Letting be the equivalence class of ,.
Conversely, suppose that there exists an integer such that . Then divides , so there is an integer such that . Let . Since divides , must also divide 1; hence, .
A symmetry of a geometric figure is a rearrangement of the figure preserving 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 an object is called a rigid motion. For example, if we look at the rectangle in Figure 3.1.5, it is easy to see that a rotation of or returns a rectangle in the plane with the same orientation as the original rectangle and the same 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 rotation in either direction cannot be a symmetry unless the rectangle is a square.
Let us find the symmetries of the equilateral triangle . To find a symmetry of , we must first examine the permutations of the vertices ,, and and then ask if a permutation extends to a symmetry of the triangle. Recall that a permutation of a set is a one-to-one and onto map . The three vertices have permutations, so the triangle 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 the second, and the remaining vertex is determined by the placement of the first two. So we have different arrangements. To denote the permutation of the vertices of an equilateral triangle that sends to , to , and to , we write the array
Notice that this particular permutation corresponds to the rigid motion of rotating the triangle by in a clockwise direction. In fact, every permutation gives rise to a symmetry of the triangle. All of these symmetries are shown in Figure 3.1.6.
A natural question to ask is what happens if one motion of the triangle is followed by another. Which symmetry is ; that is, what happens when we do the permutation and then the permutation ?Remember that we are composing functions here. Although we usually multiply left to right, we compose functions right to left. We have
This is the same symmetry as . Suppose we do these motions in the opposite order, then . It is easy to determine that this is the same as the symmetry ; hence, . A multiplication table for the symmetries of an equilateral triangle is given in Figure 3.1.7.
Notice that in the multiplication table for the symmetries of an equilateral triangle, for every motion of the triangle there is another motion such that ; that is, for every motion there is another motion that takes the triangle back to its original orientation.