The first exam will be on Wednesday, September 22, 2010. The syllabus will be sections 1.1 and 1.2 in Lax, and the number theory handout found on the class web site, plus the handout on the method of successive squaring in computing high powers of an integer modulo n. In the following lists, pages and results on the number theory handout will be referred by preceding the number with H. Thus, Page H.23 refers to page 23 of the handout, while Proposition H.1.2.3 refers to Proposition 1.2.3 of the handout. Following are some of the concepts and results you should know: Know the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element. The cardinality of X, denoted X, is the number of elements of X. Some formulas for the cardinality of combinations of sets X and Y : 1. X Y = X + Y X Y. 2. X Y = X Y. 3. P(X) = 2 X where P(X) denotes the power set of X, that is, P(X) is the set of all subsets of X. 4. {all functions f : X Y } = Y X. The number of ways to choose r elements (without replacement) from an n-element set is ( ) n n! = r r!(n r)!. Know the Binomial Theorem: If x and y are any numbers, then (x + y) n = n x n k y k, k=0 where ( ) n = k n! k!(n k)!. Know the Division Algorithm. Know the definition of a divides b for integers a and b (notation: a b). Know the definition of the greatest common divisor of the integers a and b (notation: (a, b)). Know the Euclidean Algorithm and how to use it to compute the greatest common divisor of integers a and b. Know how to use elementary row operations to codify the calculations needed for the Euclidean algorithm into a sequence of matrix operations as illustrated on Pages H.11 and H.12. Know the definition of relatively prime integers. Be sure to know Theorem H.12.3 (Page H.16) which relates the relative primeness of a and b to various divisibility conclusions. Know the definition of least common multiple of integers a and b (notation: [a, b]). 1
Know the relationship between the greatest common divisor, least common multiple, and the product of integers a and b: ab = (a, b)[a, b]. (Page H.22.) Know the definition of prime number. Know Euclid s Lemma: If p is a prime, a and b are integers, and p ab, then p a or p b (Corollary 2.19, Page 14). Know the Fundamental Theorem of Arithmetic (Theorem 2.21, Page 14 or Theorem H.1.2.7, Page H.18), and how to use it to compute the greatest common divisor and least common multiple of two integers a and b (Proposition 2.22, Page 15 or Proposition H.1.2.10, Page H.21). Know what it means for an integer a to be congruent modulo n to another integer b (notation a b mod n). Know the definition of congruence class of a modulo n (notation [a] n ). Know the definition of the number system Z n, and how to do arithmetic in Z n : [a] n + [b] n = [a + b] n [a] n [b] n = [ab] n Know the definition of [a] n is invertible in Z n, (Definition H.1.4.4, Page H.38) and know the criterion of invertibility of [a] n : An element [a] n Z n is invertible (or has a multiplicative inverse) if and only if (a, n) = 1, that is, if and only if a and n are relatively prime. Moreover, if r and s are integers such that ar + ns = 1, then [a] 1 n = [r] n. (Proposition H.1.4.5, Page H.38.) Know how to use the Euclidean algorithm to compute [a] 1 n, when the inverse exists. Know what it means for a nonzero congruence class [a] n Z n to be a zero divisor: there is [b] n = [0] n with [a] n [b] n = [0] n. (Definition H.1.4.3, Page H.38) Every nonzero element of Z n is either invertible or a zero divisor. (Proposition H.1.4.5, Page H.38.) Z n is the set of invertible elements of Z n. Z n is closed under multiplication, i.e., the product of any two elements of Z n is in Z n. If p is a prime, then Z p = Z p {[0] n }. (Corollary H.1.4.6, Page 39). Know what it means to solve a linear congruence ax b mod n. In particular, know that the solutions form congruence classes modulo n, so that they can be identified with elements of Z n. Know the criterion for solvability of a linear congruence, namely Theorem H.1.3.5, Page H.28. Know how to find all of the solutions to the linear congruence ax b mod n using the algorithm extracted from the proof of Theorem H.1.3.5, as described in class: 2
1. Calculate d = (a, n). 2. Test whether d divides b. (a) If d does not divide b, then there is no solution. (b) If d divides b then there are d solutions mod n. 3. To find the solutions in case (b), `divide the congruence through by d to get (a/d)x (b/d) mod (n/d). Notice that since a/d and n/d have greatest common divisor 1, this congruence will have a unique solution. 4. Calculate the inverse [e] n/d of [a/d] n/d, either by inspection or use the Euclidean algorithm. 5. Multiply the divided congruence by [e] n/d to get and calculate a solution c for x. [x] n/d = [e] n/d [b/d] n/d 6. The solutions to the original congruence ax b mod n will the d congruence classes mod n: [c] n, [c + (n/d)] n, [c + 2(n/d)] n,..., [c + (d 1)(n/d)] n. Know the Chinese Remainder Theorem (Theorem H.1.3.6, Page H.31), and how to solve simultaneous congruences. Know Fermat s theorem: if p is prime and p does not divide a then a p 1 1 mod p. (Corollary H.1.4.12, Page H.42). The Euler phi-function at n, denoted φ(n), is defined to be the number of positive integers less than or equal to n which are relatively prime to n. (Definition H.1.4.7, Page H.40) It is also true that φ(n) = Z n. (Page H.40). Know how to compute φ(n) from the two rules (Exercises 17 and 29, Pages H.44 45, and discussed in class): 1. If p is a prime k is any positive integer, then 2. If n and m are relatively prime, then φ(p k ) = p k p k 1. φ(nm) = φ(n)φ(m). Know how to to compute φ(n) from the prime factorization of n using the two rules listed above (Proposition H.1.4.8, Page H.41): If n = p k 1 1 pk r r, then ) ) φ(n) = (p k 1 1 pk 1 1 1 ) (p kr 1 pkr 1 1 ) = n (1 1p1 (1 1pr. Know Euler s Theorem: If n 2 and a is relatively prime to n, then a φ(n) 1 mod n. 3
Review Exercises Be sure that you know how to do all assigned homework exercises. The following are a few supplemental exercises similar to those already assigned as homework. These exercises are listed randomly. That is, there is no attempt to give the exercises in the order of presentation of material in the text. 1. Let X and Y be sets with cardinalities X = 4 and Y = 3. The following are 5 sets constructed from these two given sets: A = X Y B = P(X) C = P(Y ) D = {Functions f : X Y } E = {Functions f : Y X} Recall that P(X) denotes the power set of X, that is, the set of all subsets of X. Explain why this report cannot be correct. (Hint: Part (a) may be useful.) List these 5 sets in order according to their cardinality, starting with the set with the smallest number of elements and ending with the set with the largest number of elements. 2. (a) If S and T are finite sets, write the formula relating S T, S, T, and S T. It is not necessary to verify the formula, just write it down. (b) The following is a portion of a report submitted by a marketing analysis employee: Number of consumers interviewed: 100. Number of consumers using brand X: 78. Number of consumers using brand Y : 71. Number of consumers using both brands: 48. 3. Find the remainder when b is divided by a if: (a) a = 6, b = 25 (b) a = 6, b = 25 4. This problem involves arithmetic modulo 16. All answers should only involve expressions of the form [a] 16, with a an integer and 0 a < 16. (a) Compute [4] 16 + [15] 16. (b) Compute [4] 16 [15] 16. (c) Compute [15] 1 16. (d) List the invertible elements of Z 16. (e) List the zero divisors in Z 16. 5. (a) Show that the square of an arbitrary integer x is congruent to either 0 or 1 modulo 4. (b) Let x and y Z and assume that x 2 + y 2 r mod 4 for a non-negative integer r which is chosen as small as possible. What are the possible values of r? Why? (Hint: Part (a) will be useful.) (c) Show that not every positive integer is the sum of two squares of integers. (d) List the first 4 positive integers that are not sums of two squares. (Note that 1 = 1 2 + 0 2 is a sum of two squares.) 4
6. Let a, b, c, and d be positive integers. Determine if each of the following statements is True or False. If False, provide a counterexample. (a) If a c and b c, then ab c. (b) If (a, b) = 1 and (c, d) = 1, then (ac, bd) = 1. (c) If there exist integers r and s such that ra + sb = d, then d = (a, b). (d) [a, b] > (a, b). (e) For every positive integer n, the number system Z n always contains nonzero zero divisors. (f) Every nonempty set of positive integers contains a largest element. 7. Express 24 and 102 a products of primes and use this information to calculate (12, 102) and [12, 102]. 8. How many elements does Z 8 contain? List them. 9. Determine all x Z that solve the linear congruence 6x 9 mod 15. 10. (a) Find the greatest common divisor d = (803, 154) of 803 and 154, using the Euclidean Algorithm. (b) Write d = (803, 154) in the form d = s 803 + t 154. (c) Find the least common multiple [803, 154]. 11. Solve the system of congruences: 12. Solve the system of congruences: x 5 (mod 25) x 23 (mod 32). 5x 14 (mod 17) 3x 2 (mod 13). 13. Give an example of integers a, b, m, n such that the system of congruences has no solution. 14. (a) Compute 4 126 mod 127. (b) Compute 4 63 mod 127. (c) Compute 5 97 mod 127. x a (mod m) x b (mod n) 15. Compute the Euler phi function φ(n) for each of the following natural numbers n. (a) n = 221 (b) n = 6125 (c) n = 341 (d) n = 6860 5