Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132928 views
License: OTHER
Kernel:
%%html <link href="http://mathbook.pugetsound.edu/beta/mathbook-content.css" rel="stylesheet" type="text/css" /> <link href="https://aimath.org/mathbook/mathbook-add-on.css" rel="stylesheet" type="text/css" /> <style>.subtitle {font-size:medium; display:block}</style> <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic" rel="stylesheet" type="text/css" /> <link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700&subset=latin,latin-ext" rel="stylesheet" type="text/css" /><!-- Hide this cell. --> <script> var cell = $(".container .cell").eq(0), ia = cell.find(".input_area") if (cell.find(".toggle-button").length == 0) { ia.after( $('<button class="toggle-button">Toggle hidden code</button>').click( function (){ ia.toggle() } ) ) ia.hide() } </script>

Important: to view this notebook properly you will need to execute the cell above, which assumes you have an Internet connection. It should already be selected, or place your cursor anywhere above to select. Then press the "Run" button in the menu bar above (the right-pointing arrowhead), or press Shift-Enter on your keyboard.

ParseError: KaTeX parse error: \newcommand{\lt} attempting to redefine \lt; use \renewcommand

Section3.1Integer Equivalence Classes and Symmetries

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

SubsectionThe Integers mod nn

The integers mod nn 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 aa and bb are equivalent mod nn if nn divides ab.a - b\text{.} The integers mod nn also partition Z{\mathbb Z} into nn different equivalence classes; we will denote the set of these equivalence classes by Zn.{\mathbb Z}_n\text{.} Consider 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,}.\begin{align*} {[0]} & = \{ \ldots, -12, 0, 12, 24, \ldots \},\\ {[1]} & = \{ \ldots, -11, 1, 13, 25, \ldots \},\\ & \vdots\\ {[11]} & = \{ \ldots, -1, 11, 23, 35, \ldots \}. \end{align*}

When no confusion can arise, we will use 0,1,,110, 1, \ldots, 11 to indicate the equivalence classes [0],[1],,[11]{[0]}, {[1]}, \ldots, {[11]} respectively. We can do arithmetic on Zn.{\mathbb Z}_n\text{.} For two integers aa and b,b\text{,} define addition modulo nn to be (a+b)(modn);(a + b) \pmod{n}\text{;} that is, the remainder when a+ba + b is divided by n.n\text{.} Similarly, multiplication modulo nn is defined as (ab)(modn),(a b) \pmod{ n}\text{,} the remainder when aba b is divided by n.n\text{.}

Example3.1

The following examples illustrate integer arithmetic modulo n:n\text{:}

7+41(mod5)731(mod5)3+50(mod8)357(mod8)3+47(mod12)340(mod12).\begin{align*} 7 + 4 & \equiv 1 \pmod{ 5} & 7 \cdot 3 & \equiv 1 \pmod{ 5}\\ 3 + 5 & \equiv 0 \pmod{ 8} & 3 \cdot 5 & \equiv 7 \pmod{ 8}\\ 3 + 4 & \equiv 7 \pmod{ 12} & 3 \cdot 4 & \equiv 0 \pmod{ 12}\text{.} \end{align*}

In particular, notice that it is possible that the product of two nonzero numbers modulo nn can be equivalent to 00 modulo n.n\text{.}

Example3.2

Most, but not all, of the usual laws of arithmetic hold for addition and multiplication in Zn.{\mathbb Z}_n\text{.} For instance, it is not necessarily true that there is a multiplicative inverse. Consider the multiplication table for Z8{\mathbb Z}_8 in Table 3.3. Notice that 2, 4, and 6 do not have multiplicative inverses; that is, for n=2,n = 2\text{,} 4, or 6, there is no integer kk such that kn1(mod8).k n \equiv 1 \pmod{ 8}\text{.}

01234567000000000101234567202460246303614725404040404505274163606420642707654321\begin{equation*} \begin{array}{c|cccccccc} \cdot & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 \\ \hline 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 1 & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 \\ 2 & 0 & 2 & 4 & 6 & 0 & 2 & 4 & 6 \\ 3 & 0 & 3 & 6 & 1 & 4 & 7 & 2 & 5 \\ 4 & 0 & 4 & 0 & 4 & 0 & 4 & 0 & 4 \\ 5 & 0 & 5 & 2 & 7 & 4 & 1 & 6 & 3 \\ 6 & 0 & 6 & 4 & 2 & 0 & 6 & 4 & 2 \\ 7 & 0 & 7 & 6 & 5 & 4 & 3 & 2 & 1 \end{array} \end{equation*}
Table3.3Multiplication table for Z8{\mathbb Z_8}
Proposition3.4

Let Zn{\mathbb Z}_n be the set of equivalence classes of the integers mod nn and a,b,cZn.a, b, c \in {\mathbb Z}_n\text{.}

  1. Addition and multiplication are commutative:

    a+bb+a(modn)abba(modn).\begin{align*} a + b & \equiv b + a \pmod{ n}\\ a b & \equiv b a \pmod{ n}. \end{align*}
  2. Addition and multiplication are associative:

    (a+b)+ca+(b+c)(modn)(ab)ca(bc)(modn).\begin{align*} (a + b) + c & \equiv a + (b + c)\pmod{ n}\\ (a b) c & \equiv a (b c) \pmod{ n}. \end{align*}
  3. There are both additive and multiplicative identities:

    a+0a(modn)a1a(modn).\begin{align*} a + 0 & \equiv a \pmod{ n}\\ a \cdot 1 & \equiv a \pmod{ n}. \end{align*}
  4. Multiplication distributes over addition:

    a(b+c)ab+ac(modn).\begin{equation*} a (b + c) \equiv a b + a c \pmod{ n}. \end{equation*}
  5. For every integer aa there is an additive inverse a:-a\text{:}

    a+(a)0(modn).\begin{equation*} a + (-a) \equiv 0 \pmod{ n}. \end{equation*}
  6. Let aa be a nonzero integer. Then gcd(a,n)=1\gcd(a,n) = 1 if and only if there exists a multiplicative inverse bb for a(modn);a \pmod{n}\text{;} that is, a nonzero integer bb such that

    ab1(modn).\begin{equation*} a b \equiv 1 \pmod{ n}. \end{equation*}
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 nn since the remainder of a+ba + b divided by nn is the same as the remainder of b+ab + a divided by n.n\text{.}

(6) Suppose that gcd(a,n)=1.\gcd(a, n) = 1\text{.} Then there exist integers rr and ss such that ar+ns=1.ar + ns = 1\text{.} Since ns=1ar,ns = 1 - ar\text{,} it must be the case that ar1(modn).ar \equiv 1 \pmod{n}\text{.} Letting bb be the equivalence class of r,r\text{,} ab1(modn).a b \equiv 1\pmod{n}\text{.}

Conversely, suppose that there exists an integer bb such that ab1(modn).ab \equiv 1 \pmod{ n}\text{.} Then nn divides ab1,ab -1\text{,} so there is an integer kk such that abnk=1.ab - nk = 1\text{.} Let d=gcd(a,n).d = \gcd(a,n)\text{.} Since dd divides abnk,ab - nk\text{,} dd must also divide 1; hence, d=1.d = 1\text{.}

SubsectionSymmetries

Figure3.5Rigid motions of a rectangle

A 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 . For example, if we look at the rectangle in Figure 3.5, it is easy to see that a rotation of 180180^{\circ} or 360360^{\circ} 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 9090^{\circ} rotation in either direction cannot be a symmetry unless the rectangle is a square.

Figure3.6Symmetries of a triangle

Let us find the symmetries of the equilateral triangle ABC.\bigtriangleup ABC\text{.} To find a symmetry of ABC,\bigtriangleup ABC\text{,} we must first examine the permutations of the vertices A,A\text{,} B,B\text{,} and CC and then ask if a permutation extends to a symmetry of the triangle. Recall that a of a set SS is a one-to-one and onto map π:SS.\pi :S \rightarrow S\text{.} The three vertices have 3!=63! = 6 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 321=3!=63 \cdot 2 \cdot 1 = 3! = 6 different arrangements. To denote the permutation of the vertices of an equilateral triangle that sends AA to B,B\text{,} BB to C,C\text{,} and CC to A,A\text{,} we write the array

(ABCBCA).\begin{equation*} \begin{pmatrix} A & B & C \\ B & C & A \end{pmatrix}. \end{equation*}

Notice that this particular permutation corresponds to the rigid motion of rotating the triangle by 120120^{\circ} 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.6.

A natural question to ask is what happens if one motion of the triangle ABC\bigtriangleup ABC is followed by another. Which symmetry is μ1ρ1;\mu_1 \rho_1\text{;} that is, what happens when we do the permutation ρ1\rho_1 and then the permutation μ1?\mu_1\text{?} Remember that we are composing functions here. Although we usually multiply left to right, we compose functions right to left. We have

(μ1ρ1)(A)=μ1(ρ1(A))=μ1(B)=C(μ1ρ1)(B)=μ1(ρ1(B))=μ1(C)=B(μ1ρ1)(C)=μ1(ρ1(C))=μ1(A)=A.\begin{align*} (\mu_1 \rho_1)(A) & = \mu_1( \rho_1( A ) ) = \mu_1( B ) = C\\ (\mu_1 \rho_1)(B) & = \mu_1( \rho_1( B ) ) = \mu_1( C ) = B\\ (\mu_1 \rho_1)(C) & = \mu_1( \rho_1( C ) ) = \mu_1( A ) = A. \end{align*}

This is the same symmetry as μ2.\mu_2\text{.} Suppose we do these motions in the opposite order, ρ1\rho_1 then μ1.\mu_1\text{.} It is easy to determine that this is the same as the symmetry μ3;\mu_3\text{;} hence, ρ1μ1μ1ρ1.\rho_1 \mu_1 \neq \mu_1 \rho_1\text{.} A multiplication table for the symmetries of an equilateral triangle ABC\bigtriangleup ABC is given in Table 3.7.

Notice that in the multiplication table for the symmetries of an equilateral triangle, for every motion of the triangle α\alpha there is another motion β\beta such that αβ=id;\alpha \beta = \identity\text{;} that is, for every motion there is another motion that takes the triangle back to its original orientation.

idρ1ρ2μ1μ2μ3ididρ1ρ2μ1μ2μ3ρ1ρ1ρ2idμ3μ1μ2ρ2ρ2idρ1μ2μ3μ1μ1μ1μ2μ3idρ1ρ2μ2μ2μ3μ1ρ2idρ1μ3μ3μ1μ2ρ1ρ2id\begin{equation*} \begin{array}{c|cccccc} \circ & \identity & \rho_1 & \rho_2 & \mu_1 & \mu_2 & \mu_3 \\ \hline \identity & \identity & \rho_1 & \rho_2 & \mu_1 & \mu_2 & \mu_3 \\ \rho_1 & \rho_1 & \rho_2 & \identity & \mu_3 & \mu_1 & \mu_2 \\ \rho_2 & \rho_2 & \identity & \rho_1 & \mu_2 & \mu_3 & \mu_1 \\ \mu_1 & \mu_1 & \mu_2 & \mu_3 & \identity & \rho_1& \rho_2\\ \mu_2 & \mu_2 & \mu_3 & \mu_1 & \rho_2 & \identity & \rho_1\\ \mu_3 & \mu_3 & \mu_1 & \mu_2 & \rho_1 & \rho_2& \identity \end{array} \end{equation*}
Table3.7Symmetries of an equilateral triangle