{ "cells": [ { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "\n", "\n", "
\n", "\n", "\n", "\n", "\n", "\n", "Abstract Algebra: An Interactive Approach, 2e\n", "
\n", "\n", "\n", "©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.\n", "
\n", "\n", "\n", "\n", "\n",
"Chapter 0
\n",
"Preliminaries\n",
"
Initialization: This cell MUST be evaluated first:
" ] }, { "cell_type": "code", "execution_count": 0, "metadata": { "collapsed": false }, "outputs": [ ], "source": [ "%display latex\n", "try:\n", " load('absalgtext.sage')\n", "except IOError:\n", " load('/media/sf_sage/absalgtext.sage')" ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "{ …, −3, −2, −1, 0, 1, 2, 3, … }
\n", "by the stylized letter ℤ, which stands for the German "Zahl" meaning "number." Rather than saying "n is an integer," we \n", "can succintly say "n is in ℤ." Many of the properties of factorizations refer only to positive integers, which are denoted \n", "ℤ+. Thus, we can write n ∈ ℤ+ to say that n is a positive integer.x = q y + r and 0 ≤ r < y.
\n", "Click here for the proof.\n", "\n", "\n", "\n", "All of the proofs in these notebooks are in a separate subsection that can be accessed by clicking on the hyperlink. This allows one to hide the proof until after it has been attempted.\n", "There will be a hyperlink at the end of the proof to bring you back.\n", " \n", "This is a constructive proof, since it gives an algorithm for finding q and r. This proof also demonstrates how to prove that a solution is unique. \n", "We assume there is another solution, and prove that the two solutions are in fact the same.⌊x⌋ = the greatest integer less than or equal to x.
\n", "\n", "u x + v y
\n", "with u and v being integers.x = q1 y + r1, 0 ≤ r1 < y,
\n", "y = q2 r1 + r2, \n", "0 ≤ r2 < r1,
\n", "r1 = q3 r2 + r3, \n", "0 ≤ r3 < r2,
\n", "r2 = q4 r3 + r4, \n", "0 ≤ r4 < r3, …
\n", "\n", "Because the integer sequence {r1, r2, r3, …} is decreasing, this will reach 0 in a finite number of steps, \n", "say rm = 0. Then rm−1 will be gcd(x, y). We can find the \n", "values for u and v by solving the second \n", "to the last equation for rm−1 in terms of the previous two remainders rm−2 and \n", "rm−3, and then using the previous equations recursively to express rm−1 in terms of the previous remainders. \n", "This will eventually lead to rm−1 expressed in terms of x and y, which is what we want. \n", "It helps to put the remainders ri in parenthesis, as well as x and y, since these numbers are treated as variables.{y | y = f(x) for some x ∈ A}.
\n", "\n", "This set denoted by either f(A) or Im(f), and is a subset of B.{e, f, n, o, s, t, z}.
\n", " \n", "f(a/b) = gcd(a, b)/b.
\n", "Show that this function is well defined.f(x) = | \n", "⎧ | \n", "x + 3 | \n", "if x is even, | \n", "
⎨ | \n", "\n", " | \n", " | |
⎩ | \n", "2 x | \n", "if x is odd. | \n", "
(f ∘ g)(x) = f(g(x)) for all x ∈ A.
\n", "\n", "Note that in f ∘ g, we apply the g function first, and then f. Some textbooks \n", "have f ∘ g = g(f(x)), so care must be taken when referring to other texts.f(x) = | \n", "⎧ | \n", "x + 3 | \n", "if x is even, | \n", "and g(x) = | \n", "⎧ | \n", "3 x | \n", "if x is even, | \n", "
⎨ | \n", "\n", " | \n", " | ⎨ | \n", "\n", " | \n", " | ||
⎩ | \n", "2 x | \n", "if x is odd, | \n", "⎩ | \n", "x − 1 | \n", "if x is odd. | \n", "
f ∘ g = | \n", "⎧ | \n", "3x + 3 | \n", "if x is even, | \n", "
⎨ | \n", "\n", " | \n", " | |
⎩ | \n", "x + 2 | \n", "if x is odd. | \n", "
g ∘ f = | \n", "⎧ | \n", "x + 2 | \n", "if x is even, | \n", "
⎨ | \n", "\n", " | \n", " | |
⎩ | \n", "6 x | \n", "if x is odd. | \n", "
f(x) = | \n", "⎧ | \n", "x + 3 | \n", "if x is even, | \n", "
⎨ | \n", "\n", " | \n", " | |
⎩ | \n", "x − 1 | \n", "if x is odd. | \n", "
f -1(y) = | \n", "⎧ | \n", "y + 1 | \n", "if y is even, | \n", "
⎨ | \n", "\n", " | \n", " | |
⎩ | \n", "y − 3 | \n", "if y is odd. | \n", "
x ∗ y = x + y + x y.
\n", "Show that (x ∗ y) ∗ z = x ∗ (y ∗ z).(x ∗ y) ∗ z = (x + y + x y) ∗ z = x \n",
"+ y + x y + z + (x + y + x y)z
\n",
"= x + y + z + x y + x z + y z + x y z.
x ∗ (y ∗ z) = x * (y + z + y z) = \n",
"x + y + z + y z + x(y + z + y z)
\n",
"= x + y + z + x y + x z + y z + x y z.
x mod y,
\n", "pronounced "x modulo y", to be the unique value r from the division algorithm, which selects q and \n", "0 ≤ r < y such that x = q y + r. The number y is called the modulus.(x + y) mod n = \n", "((x mod n) + (y mod n)) mod n,
\n", "and \n", "(x y) mod n = \n", "((x mod n)·(y mod n)) mod n.
\n", "\n", "Click here for the proof.\n", "\n", "\n", "\n", "We can use Proposition 0.2 to compute powers modulo n. Since raising a number to an integer power is equivalent to repeated multiplication, we see that \n", "(xy) mod n = \n", "(x mod n)y mod n.
\n", "\n", "EXAMPLE:(xy) mod n = \n", "(x mod n)(y mod n) mod n.
\n", "\n", "That is, we cannot apply the modulus to an exponent. However, there is a trick for simplifying a power in the case that the exponent is large—using the binary \n", "representation of the exponent y. The procedure is best explained by an example.2535 = 2532·252·251.
\n", "\n", "In order to compute 2532 mod 29, we can square the number 5 times.\n", "\n", "252 mod 29 = 625 mod 29 = 16,
\n",
" 254 mod 29 = 162 mod 29 = 256 mod 29 = 24,
\n",
" 258 mod 29 = 242 mod 29 = 576 mod 29 = 25,
\n",
" 2516 mod 29 = 252 mod 29 = 625 mod 29 = 16,
\n",
" 2532 mod 29 = 162 mod 29 = 256 mod 29 = 24.
2535 mod 29 = 2532·252·251 mod 29 = 24·16·25 mod 29 = 9600 mod 29 = 1.
\n", "Note that we never had to deal with numbers more than 4 digits long.0 ≤ k < x y,
\n", "k mod x = a mod x, and
\n", "k mod y = b mod y.
\n", "\n", "Click here for the proof.\n", "\n", "\n", "\n", "This is a constructive proof, since it gives us a formula for finding the value of k.k mod 14 = 3, and
\n",
" k mod 15 = 7.
14 (−1) + 15 (1) = 1.
\n", "Then we compute k to be a v y + b u x = 3·15 + 7·(−14) = −53. But since this is negative, we can add 14·15 to get another \n", "solution, 157.k mod 771234712398742343 = 573457203572345239 and
\n",
"k mod 642374682348623642 = 568134658235924534.
(a x) mod n = b.
\n", "This can be solved by letting k = a x. Then\n", "k mod a = 0, and
\n",
"k mod n = b.
12 x mod 19 = 3.
\n", " \n", "We need to solve k mod 12 = 0 and k mod 19 = 3. Thus, we must first find a u and v such \n", "that 12 u + 19 v = 1. Using the Euclidean algorithm, we find that \n", "8·12 + (−5)·19 = 1.
\n", "Using these values of u and v, we have that \n", "k = a v y + b u x = 0·(−5)·19 + 3·8·12 = 192.
\n", "Finally, x = 12 k, so x = 24. Note that we can add or subtract multiples of 19 to get other solutions, so x = 5 also \n", "works.q ≤ x/y < q + 1.
\n", "Multiplying by y, we have \n", "y q ≤ x < y q + y.
\n", "If we let r = x − y q, we have 0 ≤ r < y, and also x = y q + r, so we have found \n", "integers q and r that satisfy the required properties.(q − q)y = r − r.
\n", "Since both r and r are between 0 and y − 1, the right hand side is less than y in absolute \n", "value. But the left hand side is at least y in absolute value unless q = q. This in turn will \n", "force r = r, so we see that the solution is unique.p1 = 2, p2 = 3, p3 = 5, p4 = 7, …, \n", "pn.
\n", "Now consider the number \n", "m = (2·3·5·7·11·13···pn) + 1.
\n", "This number is odd, so it cannot be divisible by 2. Likewise, m is one more than a multiple of 3, so it is not divisible by 3. In this way we see that m \n", "is not divisible by any of the prime numbers. But this is ridiculous, since m must have a prime factor by Lemma 0.2. Thus, the original assumption that there is \n", "a largest prime number is false, so there are an infinite number of prime numbers.r = x − q n = x − q (u x + v y) = (1 − q u)x \n", "+ (−v)y,
\n", "which is in the set A. If r ≠ 0, then r would be a smaller positive number in A than n, which contradicts the way we \n", "chose n. Thus,u a b + v p b = b.
\n", " \n", "Since p divides both terms on the left hand side, we see that p | b. Thus, p must divide either a or b.p1 p2 p3 ⋯ pn = \n", "q1 q2 q3 ⋯ qm,
\n", "\n", "where p1, p2, … pn, q1, q2, … qm are all \n", "positive primes, then n = m, and the qi are a rearrangement of the pi. We will use induction on n, \n", "the number of prime factors in the first factorization.p1 p2 p3 ⋯ pn = \n", "q1 q2 q3 ⋯ qm−1 pn.
\n", " \n", "Thus, \n", "p1 p2 p3 ⋯ pn−1 = \n", "q1 q2 q3 ⋯ qm−1.
\n", "\n", "By induction we can assume that the statement is true for the case n − 1, and so n − 1 = m − 1, hence n = m, and \n", "the qi are a rearrangement of the pi.h(y) = h(f(g(y))) = \n", "(h ∘ f)(g(y)) = g(y) for all y ∈ B.
\n", "\n", "Thus, h = g, showing that the function is unique.x = q1 n + a, y = q2 n + \n", "b, x + y = q3 n + c, x y = q4 n + d.
\n", "For the first equation, we note that \n", "c − (a + b) = (x + y − q3 n) − \n",
"((x − q1 n) + (y − q2 n))
\n",
" = q1 n + q2 n − q3 n = (q1 + \n",
"q2 − q3) n.
d − a b = (x y − q4 n) − \n",
"(x − q1 n)·(y − q2 n)
\n",
"= q1 q2 n2 − y q1 n − \n",
"x q2 n − q4 n = (q1 q2 n \n",
"− y q1 − x q2 − q4) n.
(k − m) mod x = 0 and \n", "(k − m) mod y = 0.
\n", "Thus, k − m must be a multiple of both x and y. But since x and y are coprime, the \n", "least common multiple of x and y is x y. Thus, k − m is a multiple \n", "of x y.k = (a v y + b u x) mod (x y).
\n", " \n", "Clearly 0 ≤ k < x y, so we only have to show that k mod x = a mod x \n", "and k mod y = b mod y. Since v y = 1 − u x,\n", "k mod x = (a v y + b u x) mod x
\n",
" = (a(1 − u x) + b u x) mod x
\n",
" = (a + u x(b − a)) mod x = a mod x.
k mod y = (a v y + b u x) mod y
\n",
" = (a v y + b(1 − v y)) mod y
\n",
" = ((b + v y(a − b)) mod y = b mod y.
{0, 1, 1/2, -1/2, -1, -2, -3/2, -2/3, -1/3, 1/3, 2/3, 3/2, 2, 3, …}
\n", "which contains every rational number, so we have shown that the rationals form a countable set.p2 = 2 q2.
\n", "This would indicate that p2 is an even number, which implies that p is even.(2 r)2 = 2 q2, or
\n", "2 r2 = q2.
\n", "This would indicate that q2, and hence q, is even. But this contradicts the fact that p/q was written in simplest \n", "form. Thus, there is no rational number whose square is 2.{a1, a2, a3,…}
\n", "and work to find a contradiction. The plan is to find a number b that cannot be in this list. We can do this by forcing b to have a different first \n", "digit than a1, a different second digit than a2, a different third digit than a3, and so on. The only \n", "technical problem with this is that some numbers have two decimal representations, such as0.348600000000000000…= 0.3485999999999999999….
\n", "For these numbers, all we need to do is require that both representations are in the list. (That is, some rational numbers will appear twice on the list \n", "with different decimal representations.)a1 = 0.94837490123798570…
\n", "a2 = 0.83840000000000000…
\n", "a3 = 0.83839999999999999…
\n", "a4 = 0.34281655343424444…
\n", "then b = 0.0499… . Certainly b is missing from the list, since it differs from each member of the list by at least one digit. This contradiction proves \n", "the theorem.876543212345678 u + 123456787654321 v = 1.
" ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "98765432123456789 u + 12345678987654321 v = 1.
" ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "f(x) = 2 ⌊x⌋ − x.
\n", "Sage uses the function floor to denote ⌊x⌋. Thus, we can have Sage plot this function with the commands23515579235792394752975289347972935390234 mod 4623452735792375925234.
" ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "938457289347272352345224523523452345216644 mod 8376258362352836587697.
" ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "k mod 9243798374502516137 = 237521646243353626,
\n", "and \n", "k mod 1978654573572351516 = 26325673245684223.
" ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "k mod 8675612376265160933543 = 152352352346254753548,
\n", "and \n", "k mod 6226345262345235236201 = 526352346234573523464.
" ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "7289475362034522153 x mod 915156238625161124 = 210982524590982446.
" ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "9357298518686215025 x mod 1965156273498612512 = 1871551633523628256.
" ] }, { "cell_type": "markdown", "metadata": { "collapsed": false }, "source": [ "