Know the Wellordering principle: Any set of positive integers which has at least one element contains a smallest element.


 Erika O’Brien’
 4 years ago
 Views:
Transcription
1 The first exam will be on Monday, June 8, 202. The syllabus will be sections. and.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..2.3 refers to Proposition.2.3 of the handout. Following are some of the concepts and results you should know: Know the Wellordering principle: Any set of positive integers which has at least one element contains a smallest element. Know the Induction Principle and how to use it to do proofs by induction. 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 :. 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 nelement 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, k0 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. and H.2. Know the definition of relatively prime integers. Be sure to know Theorem H.2.3 (Page H.6) which relates the relative primeness of a and b to various divisibility conclusions.
2 Know the definition of least common multiple of integers a and b (notation: [a, b]). 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.9, Page 4). Know the Fundamental Theorem of Arithmetic (Theorem 2.2, Page 4 or Theorem H..2.7, Page H.8), 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 5 or Proposition H..2.0, Page H.2). 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..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), that is, if and only if a and n are relatively prime. Moreover, if r and s are integers such that ar + ns, then [a] n [r] n. (Proposition H..4.5, Page H.38.) Know how to use the Euclidean algorithm to compute [a] 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..4.3, Page H.38) Every nonzero element of Z n is either invertible or a zero divisor. (Proposition H..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..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..3.5, Page H.28. 2
3 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..3.5, as described in class:. 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, 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 )(n/d)] n. Know the Chinese Remainder Theorem (Theorem H..3.6, Page H.3), and how to solve simultaneous congruences. Know Fermat s theorem: if p is prime and p does not divide a then a p mod p. (Corollary H..4.2, Page H.42). The Euler phifunction 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..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 7 and 29, Pages H.44 45, and discussed in class):. 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. φ(nm) φ(n)φ(m). Know how to to compute φ(n) from the prime factorization of n using the two rules listed above (Proposition H..4.8, Page H.4): If n p k pkr r, then ) ) φ(n) (p k pk ) (p k r pk r ) n ( p ( pr. 3
4 Know Euler s Theorem: If n 2 and a is relatively prime to n, then a φ(n) mod n. 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. [ ] [ 2 2. Let A. Using mathematical induction, show that A 0 2 n n n2 n ] 0 2 n for all positive integers n P. Solution. For n P, let P (n) be the statement [ A n 2 n n2 n ] 0 2 n. [ ] [ 2 2 Since A 2 A ] , it follows that P () is true, which establishes the base step for induction. Now [ assume that P (k) is true for some k P. That is, assume that k P and A k 2 k k2 k ] 0 2 k. Then A k+ A [ k A 2 k k2 k ] [ ] k 0 2 [ 2 k 2 2 k + k2 k ] k 2 [ 2 k+ (k + )2 k ] 0 2 k+. [ 2 n n2 The last matrix is of the form n ] 0 2 n for n k +. Hence P (k + ) is true whenever P (k) is true, which verifies the induction step, and by the principle of mathematical induction, P (n) is true for all n P, i.e., the proposed formula for A n is valid for all n P. 2. Using mathematical induction, verify that for all positive integers n P n (n + ) n n + 4
5 Solution. For n P, let P (n) be the statement: For n, P () is the statement: which is clearly a true statement. verified n (n + ) Now assume that P (k) is true. This means that n n , Thus P () is true, and the base step for induction is k (k + ) k k +. Consider the left hand side of the statement P (n) for n k +. That is: ( ) k (k + ) + (k + ) (k + 2). Because of the assumption that P (k) is true, ( ) can be written as k (k + ) + (k + ) (k + 2) k k + + (k + ) (k + 2) k(k + 2) (k + )(k + 2) + k(k + 2) + (k + )(k + 2) (k + )(k + 2) (k + ) 2 (k + )(k + 2) k + k + 2. This is the statement that P (k + ) is true, provided P (k) is true, and by the principle of induction, we conclude that P (n) is a true statement for all n P. 3. (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. Solution. S T S + T S T. (b) The following is a portion of a report submitted by a marketing analysis employee: Number of consumers interviewed: 00. Number of consumers using brand X: 78. Number of consumers using brand Y : 7. Number of consumers using both brands: 48. Explain why this report cannot be correct. (Hint: Part (a) may be useful.) Solution. Let S {consumers interviewed who use brand X}, and T {consumers interviewed who use brand Y }. Then from the data given, S 78, T 7, S T 48. The formula from part (a) then gives S T S + T S T But the total number of consumers interviewed is 00, so S T 00. This contradiction shows that some error must have been made. 5
6 4. 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. 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. Solution. A X Y 4 3 2; B 2 X 2 4 6; C 2 Y 2 3 8; D Y X 3 4 8; and E X Y Therefore, in increasing order of cardinality, they are: C A B E D 5. Find the remainder when b is divided by a if: (a) a 6, b 25 Solution , so the remainder is. (b) a 6, b 25 Solution. 25 ( 6) 5 + 4, so the remainder is This problem involves arithmetic modulo 6. All answers should only involve expressions of the form [a] 6, with a an integer and 0 a < 6. (a) Compute [4] 6 + [5] 6. Solution. [4] 6 + [5] 6 [4] 6 + [ ] 6 [3] 6. (b) Compute [4] 6 [5] 6. Solution. [4] 6 [5] 6 [4] 6 [ ] 6 [ 4] 6 [2] 6. (c) Compute [5] 6. Solution. [5] 6 [ ] 6 [ ] 6 [5] 6. (d) List the invertible elements of Z 6. Solution. [] 6, [3] 6, [5] 6, [7] 6, [9] 6, [] 6, [3] 6, [5] 6. (e) List the zero divisors in Z 6. Solution. [2] 6, [4] 6, [6] 6, [8] 6, [0] 6, [2] 6, [4] (a) Show that the square of an arbitrary integer x is congruent to either 0 or modulo 4. 6
7 Solution. An arbitrary integer is congruent to either 0,, 2, or 3 modulo 4, that is [x] 4 [0] 4, [x] 4 [] 4, [x] 4 [2] 4, or [x] 4 [3] 4. Since [0] 2 4 [0] 4, [] 2 4 [] 4, [2] 2 4 [4] 4 [0] 4, and [3] 2 4 [9] 4 [] 4, it follows that [x 2 ] 4 is either [0] 4 or [] 4. That is, x 2 is congruent to either 0 or modulo 4. (b) Let x and y Z and assume that x 2 + y 2 r mod 4 for a nonnegative integer r which is chosen as small as possible. What are the possible values of r? Why? (Hint: Part (a) will be useful.) Solution. From Part (a), [x 2 ] 4 and [y 2 ] 4 can be either [0] 4 or [] 4. Hence, the possibilities for [x 2 + y 2 ] 4 [x 2 ] 4 + [y 2 ] 4 are as follows: [x 2 ] 4 [y 2 ] 4 [x 2 + y 2 ] 4 [0] 4 [0] 4 [0] 4 [0] 4 [] 4 [] 4 [] 4 [0] 4 [] 4 [] 4 [] 4 [2] 4 Hence, the possibilites for r are 0,, 2. In particular, note that no integer that is congruent to 3 modulo 4 can be written as the sum of two squares of integers. (c) Show that not every positive integer is the sum of two squares of integers. Solution. This was answered in the previous part. (d) List the first 4 positive integers that are not sums of two squares. (Note that is a sum of two squares.) Solution. From Part (b) we know that 3, 7,, and 5 are not sums of two squares since they are congruent to 3 modulo 4. However, there may be additional numbers that are not sums of two squares. The first few squares are 0 0 2, 2, 4 2 2, and So we ask if there are any numbers smaller than 5 that cannot be written as a sum of two of these squares: ; ; ; 6 cannot be written as a sum of two of the integers 0,, and 4; ; ; Therefore, 3, 6, 7, are the four smallest integers that cannot be written as a sum of two squares. 8. 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. Solution. False. 2 2 and 2 2 but (b) If (a, b) and (c, d), then (ac, bd). Solution. False. (2, 3) and (3, 2), but (2 3, 3 2) 6. (c) If there exist integers r and s such that ra + sb d, then d (a, b). Solution. False but (3, 2). 7
8 (d) [a, b] > (a, b). Solution. False. If a is any positive integer, then [a, a] a (a, a). (e) For every positive integer n, the number system Z n always contains nonzero zero divisors. Solution. False. If n is a prime, then every nonzero element of Z n is invertible, and hence not a zero divisor. (f) Every nonempty set of positive integers contains a largest element. Solution. False. The set of all positive integers does not have a largest element. 9. Express 24 and 02 a products of primes and use this information to calculate (2, 02) and [2, 02]. Solution and Then (2, 02) and [2, 02] How many elements does Z 8 contain? List them. Solution. G 8 {[] 8, [3] 8, [5] 8, [7] 8 } so G 8 has 4 elements.. Determine all x Z that solve the linear congruence 6x 9 mod 5. Solution. If we divide the congruence by 3, we conclude that 6x 9 mod 5 is equivalent to the congruence 2x 3 mod 5. But [2] 5 [3] 5 and [3 2 ] 5 [4] 5, so multiplying this last congruence by [3] 5 gives a congruence x 4 mod 5. Hence the solutions of the original congruence are all integers of the form x 4 + 5k for k Z. 2. (a) Find the greatest common divisor d (803, 54) of 803 and 54, using the Euclidean Algorithm. Solution. Use the matrix method illustrated on Page 4. [ ] [ ] [ ] [ ] [ ] Hence (803, 54). (b) Write d (803, 54) in the form d s t 54. Solution. From the top row of the last matrix in Part (a), it follows that
9 (c) Find the least common multiple [803, 54]. Solution. [803, 54] (803, 54) Solve the system of congruences: x 5 (mod 25) x 23 (mod 32). Solution. Use the Euclidean algorithm to write Then x modulo Reducing modulo 800 gives x 55 modulo 800. Thus all solutions of the simultaneous congruences are x k for k Z. 4. Solve the system of congruences: 5x 4 (mod 7) 3x 2 (mod 3). Solution. First note that [5] 7 [7] 7 since and [7] 7 [4] 7 [98] 7 [3] 7, so the congruence 5x 4 (mod 7) can be multiplied by [7] 7 to get an equivalent congruence x 3 (mod 7). Similarly, the second congruence can be multiplied by [3] 3 [9] 7 to give an equivalent congruence x 5 (mod 3). Hence, we need to solve the equivalent system: x 3 (mod 7) x 5 (mod 3). Use the Euclidean algorithm to write Then the solution of the system of congruences is x modulo Hence all of the solutions are of the form x k for some k Z. 5. Give an example of integers a, b, m, n such that the system of congruences has no solution. Solution. One example is 6. (a) Compute 4 26 mod 27. x a (mod m) x b (mod n) x (mod 2) x 0 (mod 2) 9
10 Solution. Since 27 is prime and 27 does not divide 4, Fermat s theorem applies to give 4 26 mod 27. (b) Compute 4 63 mod 27. Solution. Since mod 27, it follows that mod 27. Hence (c) Compute 5 97 mod (4 7 ) 9 mod 27. Solution. First write the exponent 97 in binary form as a sum of powers of 2: Then compute the binary powers of 5 by successive squaring: (5 2 ) mod (5 4 ) 2 ( 0) mod (5 8 ) 2 ( 27) mod (5 6 ) 2 ( 33) mod (5 32 ) mod 27. Then ( 5) mod Compute the Euler phi function φ(n) for each of the following natural numbers n. (a) n 22 Solution. n so φ(22) (b) n 625 Solution. n so φ(625) (25 25) (49 7) (c) n 34 Solution. n 34 3 so φ(34) (d) n 6860 Solution. n so φ(6860) (2 2 2) 4 (7 3 7)
The number of ways to choose r elements (without replacement) from an nelement set is. = r r!(n r)!.
The first exam will be on Friday, September 23, 2011. The syllabus will be sections 0.1 through 0.4 and 0.6 in Nagpaul and Jain, and the corresponding parts of the number theory handout found on the class
More informationHomework #2 solutions Due: June 15, 2012
All of the following exercises are based on the material in the handout on integers found on the class website. 1. Find d = gcd(475, 385) and express it as a linear combination of 475 and 385. That is
More informationNotes on Systems of Linear Congruences
MATH 324 Summer 2012 Elementary Number Theory Notes on Systems of Linear Congruences In this note we will discuss systems of linear congruences where the moduli are all different. Definition. Given the
More information2.3 In modular arithmetic, all arithmetic operations are performed modulo some integer.
CHAPTER 2 INTRODUCTION TO NUMBER THEORY ANSWERS TO QUESTIONS 2.1 A nonzero b is a divisor of a if a = mb for some m, where a, b, and m are integers. That is, b is a divisor of a if there is no remainder
More informationCourse 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography
Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography David R. Wilkins Copyright c David R. Wilkins 2006 Contents 9 Introduction to Number Theory and Cryptography 1 9.1 Subgroups
More information2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?
Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative
More informationBasic elements of number theory
Cryptography Basic elements of number theory Marius Zimand 1 Divisibility, prime numbers By default all the variables, such as a, b, k, etc., denote integer numbers. Divisibility a 0 divides b if b = a
More informationBasic elements of number theory
Cryptography Basic elements of number theory Marius Zimand By default all the variables, such as a, b, k, etc., denote integer numbers. Divisibility a 0 divides b if b = a k for some integer k. Notation
More informationNumber Theory and Group Theoryfor PublicKey Cryptography
Number Theory and Group Theory for PublicKey Cryptography TDA352, DIT250 Wissam Aoudi Chalmers University of Technology November 21, 2017 Wissam Aoudi Number Theory and Group Theoryfor PublicKey Cryptography
More informationA Readable Introduction to Real Mathematics
Solutions to selected problems in the book A Readable Introduction to Real Mathematics D. Rosenthal, D. Rosenthal, P. Rosenthal Chapter 7: The Euclidean Algorithm and Applications 1. Find the greatest
More informationNumber Theory Proof Portfolio
Number Theory Proof Portfolio Jordan Rock May 12, 2015 This portfolio is a collection of Number Theory proofs and problems done by Jordan Rock in the Spring of 2014. The problems are organized first by
More information2x 1 7. A linear congruence in modular arithmetic is an equation of the form. Why is the solution a set of integers rather than a unique integer?
Chapter 3: Theory of Modular Arithmetic 25 SECTION C Solving Linear Congruences By the end of this section you will be able to solve congruence equations determine the number of solutions find the multiplicative
More informationPart V. Chapter 19. Congruence of integers
Part V. Chapter 19. Congruence of integers Congruence modulo m Let m be a positive integer. Definition. Integers a and b are congruent modulo m if and only if a b is divisible by m. For example, 1. 277
More informationAn integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.
Chapter 6 Prime Numbers Part VI of PJE. Definition and Fundamental Results Definition. (PJE definition 23.1.1) An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p. If n > 1
More informationCHAPTER 6. Prime Numbers. Definition and Fundamental Results
CHAPTER 6 Prime Numbers Part VI of PJE. Definition and Fundamental Results 6.1. Definition. (PJE definition 23.1.1) An integer p is prime if p > 1 and the only positive divisors of p are 1 and p. If n
More informationWilson s Theorem and Fermat s Little Theorem
Wilson s Theorem and Fermat s Little Theorem Wilson stheorem THEOREM 1 (Wilson s Theorem): (p 1)! 1 (mod p) if and only if p is prime. EXAMPLE: We have (2 1)!+1 = 2 (3 1)!+1 = 3 (4 1)!+1 = 7 (5 1)!+1 =
More informationMATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.
MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences. Congruences Let n be a postive integer. The integers a and b are called congruent modulo n if they have the same
More informationPUTNAM TRAINING NUMBER THEORY. Exercises 1. Show that the sum of two consecutive primes is never twice a prime.
PUTNAM TRAINING NUMBER THEORY (Last updated: December 11, 2017) Remark. This is a list of exercises on Number Theory. Miguel A. Lerma Exercises 1. Show that the sum of two consecutive primes is never twice
More informationThe primitive root theorem
The primitive root theorem Mar Steinberger First recall that if R is a ring, then a R is a unit if there exists b R with ab = ba = 1. The collection of all units in R is denoted R and forms a group under
More information10 Problem 1. The following assertions may be true or false, depending on the choice of the integers a, b 0. a "
Math 4161 Dr. Franz Rothe December 9, 2013 13FALL\4161_fall13f.tex Name: Use the back pages for extra space Final 70 70 Problem 1. The following assertions may be true or false, depending on the choice
More informationNOTES ON SIMPLE NUMBER THEORY
NOTES ON SIMPLE NUMBER THEORY DAMIEN PITMAN 1. Definitions & Theorems Definition: We say d divides m iff d is positive integer and m is an integer and there is an integer q such that m = dq. In this case,
More informationChapter 1 : The language of mathematics.
MAT 200, Logic, Language and Proof, Fall 2015 Summary Chapter 1 : The language of mathematics. Definition. A proposition is a sentence which is either true or false. Truth table for the connective or :
More informationEuler s, Fermat s and Wilson s Theorems
Euler s, Fermat s and Wilson s Theorems R. C. Daileda February 17, 2018 1 Euler s Theorem Consider the following example. Example 1. Find the remainder when 3 103 is divided by 14. We begin by computing
More informationCourse MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography
Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography David R. Wilkins Copyright c David R. Wilkins 2000 2013 Contents 9 Introduction to Number Theory 63 9.1 Subgroups
More informationChapter 5. Modular arithmetic. 5.1 The modular ring
Chapter 5 Modular arithmetic 5.1 The modular ring Definition 5.1. Suppose n N and x, y Z. Then we say that x, y are equivalent modulo n, and we write x y mod n if n x y. It is evident that equivalence
More informationCS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II
CS 5319 Advanced Discrete Structure Lecture 9: Introduction to Number Theory II Divisibility Outline Greatest Common Divisor Fundamental Theorem of Arithmetic Modular Arithmetic Euler Phi Function RSA
More information2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.
2 Arithmetic This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}. (See [Houston, Chapters 27 & 28]) 2.1 Greatest common divisors Definition 2.16. If a, b are integers, we say
More informationElementary Number Theory Review. Franz Luef
Elementary Number Theory Review Principle of Induction Principle of Induction Suppose we have a sequence of mathematical statements P(1), P(2),... such that (a) P(1) is true. (b) If P(k) is true, then
More informationMath 4400 First Midterm Examination September 21, 2012 ANSWER KEY. Please indicate your reasoning and show all work on this exam paper.
Name: Math 4400 First Midterm Examination September 21, 2012 ANSWER KEY Please indicate your reasoning and show all work on this exam paper. Relax and good luck! Problem Points Score 1 20 20 2 20 20 3
More informationWORKSHEET MATH 215, FALL 15, WHYTE. We begin our course with the natural numbers:
WORKSHEET MATH 215, FALL 15, WHYTE We begin our course with the natural numbers: N = {1, 2, 3,...} which are a subset of the integers: Z = {..., 2, 1, 0, 1, 2, 3,... } We will assume familiarity with their
More informationMATH 2112/CSCI 2112, Discrete Structures I Winter 2007 Toby Kenney Homework Sheet 5 Hints & Model Solutions
MATH 11/CSCI 11, Discrete Structures I Winter 007 Toby Kenney Homework Sheet 5 Hints & Model Solutions Sheet 4 5 Define the repeat of a positive integer as the number obtained by writing it twice in a
More informationNumber Theory Homework.
Number Theory Homewor. 1. The Theorems of Fermat, Euler, and Wilson. 1.1. Fermat s Theorem. The following is a special case of a result we have seen earlier, but as it will come up several times in this
More information12x + 18y = 50. 2x + v = 12. (x, v) = (6 + k, 2k), k Z.
Math 3, Fall 010 Assignment 3 Solutions Exercise 1. Find all the integral solutions of the following linear diophantine equations. Be sure to justify your answers. (i) 3x + y = 7. (ii) 1x + 18y = 50. (iii)
More informationMath 4400/6400 Homework #8 solutions. 1. Let P be an odd integer (not necessarily prime). Show that modulo 2,
MATH 4400 roblems. Math 4400/6400 Homework # solutions 1. Let P be an odd integer not necessarily rime. Show that modulo, { P 1 0 if P 1, 7 mod, 1 if P 3, mod. Proof. Suose that P 1 mod. Then we can write
More informationALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers
ALGEBRA CHRISTIAN REMLING 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers by Z = {..., 2, 1, 0, 1,...}. Given a, b Z, we write a b if b = ac for some
More informationThis exam contains 5 pages (including this cover page) and 4 questions. The total number of points is 100. Grade Table
MAT115A21 Summer Session 2 2018 Practice Final Solutions Name: Time Limit: 1 Hour 40 Minutes Instructor: Nathaniel Gallup This exam contains 5 pages (including this cover page) and 4 questions. The total
More informationMATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1
MATH 4400 SOLUTIONS TO SOME EXERCISES 1.1.3. If a b and b c show that a c. 1. Chapter 1 Solution: a b means that b = na and b c that c = mb. Substituting b = na gives c = (mn)a, that is, a c. 1.2.1. Find
More informationCOMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635
COMP239: Mathematics for Computer Science II Prof. Chadi Assi assi@ciise.concordia.ca EV7.635 The Euclidean Algorithm The Euclidean Algorithm Finding the GCD of two numbers using prime factorization is
More informationThe Chinese Remainder Theorem
The Chinese Remainder Theorem R. C. Daileda February 19, 2018 1 The Chinese Remainder Theorem We begin with an example. Example 1. Consider the system of simultaneous congruences x 3 (mod 5), x 2 (mod
More informationSOLUTIONS Math 345 Homework 6 10/11/2017. Exercise 23. (a) Solve the following congruences: (i) x (mod 12) Answer. We have
Exercise 23. (a) Solve the following congruences: (i) x 101 7 (mod 12) Answer. We have φ(12) = #{1, 5, 7, 11}. Since gcd(7, 12) = 1, we must have gcd(x, 12) = 1. So 1 12 x φ(12) = x 4. Therefore 7 12 x
More informationNUMBER SYSTEMS. Number theory is the study of the integers. We denote the set of integers by Z:
NUMBER SYSTEMS Number theory is the study of the integers. We denote the set of integers by Z: Z = {..., 3, 2, 1, 0, 1, 2, 3,... }. The integers have two operations defined on them, addition and multiplication,
More informationDiscrete Mathematics with Applications MATH236
Discrete Mathematics with Applications MATH236 Dr. Hung P. TongViet School of Mathematics, Statistics and Computer Science University of KwaZuluNatal Pietermaritzburg Campus Semester 1, 2013 TongViet
More informationECE596C: Handout #11
ECE596C: Handout #11 Public Key Cryptosystems Electrical and Computer Engineering, University of Arizona, Loukas Lazos Abstract In this lecture we introduce necessary mathematical background for studying
More information1 Structure of Finite Fields
T79.5501 Cryptology Additional material September 27, 2005 1 Structure of Finite Fields This section contains complementary material to Section 5.2.3 of the textbook. It is not entirely selfcontained
More information4.4 Solving Congruences using Inverses
4.4 Solving Congruences using Inverses Solving linear congruences is analogous to solving linear equations in calculus. Our first goal is to solve the linear congruence ax b pmod mq for x. Unfortunately
More informationMATH FINAL EXAM REVIEW HINTS
MATH 109  FINAL EXAM REVIEW HINTS Answer: Answer: 1. Cardinality (1) Let a < b be two real numbers and define f : (0, 1) (a, b) by f(t) = (1 t)a + tb. (a) Prove that f is a bijection. (b) Prove that any
More informationKnow the meaning of the basic concepts: ring, field, characteristic of a ring, the ring of polynomials R[x].
The second exam will be on Friday, October 28, 2. It will cover Sections.7,.8, 3., 3.2, 3.4 (except 3.4.), 4. and 4.2 plus the handout on calculation of high powers of an integer modulo n via successive
More informationLecture 4: Number theory
Lecture 4: Number theory Rajat Mittal IIT Kanpur In the next few classes we will talk about the basics of number theory. Number theory studies the properties of natural numbers and is considered one of
More informationMath 324, Fall 2011 Assignment 7 Solutions. 1 (ab) γ = a γ b γ mod n.
Math 324, Fall 2011 Assignment 7 Solutions Exercise 1. (a) Suppose a and b are both relatively prime to the positive integer n. If gcd(ord n a, ord n b) = 1, show ord n (ab) = ord n a ord n b. (b) Let
More informationCongruences. September 16, 2006
Congruences September 16, 2006 1 Congruences If m is a given positive integer, then we can de ne an equivalence relation on Z (the set of all integers) by requiring that an integer a is related to an integer
More informationMath 511, Algebraic Systems, Fall 2017 July 20, 2017 Edition. Todd Cochrane
Math 511, Algebraic Systems, Fall 2017 July 20, 2017 Edition Todd Cochrane Department of Mathematics Kansas State University Contents Notation v Chapter 0. Axioms for the set of Integers Z. 1 Chapter 1.
More informationMATH 361: NUMBER THEORY FOURTH LECTURE
MATH 361: NUMBER THEORY FOURTH LECTURE 1. Introduction Everybody knows that three hours after 10:00, the time is 1:00. That is, everybody is familiar with modular arithmetic, the usual arithmetic of the
More informationElementary Properties of the Integers
Elementary Properties of the Integers 1 1. Basis Representation Theorem (Thm 13) 2. Euclid s Division Lemma (Thm 21) 3. Greatest Common Divisor 4. Properties of Prime Numbers 5. Fundamental Theorem of
More informationMATH 145 Algebra, Solutions to Assignment 4
MATH 145 Algebra, Solutions to Assignment 4 1: a) Find the inverse of 178 in Z 365. Solution: We find s and t so that 178s + 365t = 1, and then 178 1 = s. The Euclidean Algorithm gives 365 = 178 + 9 178
More informationAll variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points.
Math 152, Problem Set 2 solutions (20180124) All variables a, b, n, etc are integers unless otherwise stated. Each part of a problem is worth 5 points. 1. Let us look at the following equation: x 5 1
More informationMATH 2200 Final Review
MATH 00 Final Review Thomas Goller December 7, 01 1 Exam Format The final exam will consist of 810 proofs It will take place on Tuesday, December 11, from 10:30 AM  1:30 PM, in the usual room Topics
More informationLecture notes: Algorithms for integers, polynomials (Thorsten Theobald)
Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald) 1 Euclid s Algorithm Euclid s Algorithm for computing the greatest common divisor belongs to the oldest known computing procedures
More informationECEN 5022 Cryptography
Elementary Algebra and Number Theory University of Colorado Spring 2008 Divisibility, Primes Definition. N denotes the set {1, 2, 3,...} of natural numbers and Z denotes the set of integers {..., 2, 1,
More informationMATH 420 FINAL EXAM J. Beachy, 5/7/97
MATH 420 FINAL EXAM J. Beachy, 5/7/97 1. (a) For positive integers a and b, define gcd(a, b). (b) Compute gcd(1776, 1492). (c) Show that if a, b, c are positive integers, then gcd(a, bc) = 1 if and only
More informationNumbers and their divisors
Chapter 1 Numbers and their divisors 1.1 Some number theoretic functions Theorem 1.1 (Fundamental Theorem of Arithmetic). Every positive integer > 1 is uniquely the product of distinct prime powers: n
More informationSummary Slides for MATH 342 June 25, 2018
Summary Slides for MATH 342 June 25, 2018 Summary slides based on Elementary Number Theory and its applications by Kenneth Rosen and The Theory of Numbers by Ivan Niven, Herbert Zuckerman, and Hugh Montgomery.
More informationMa/CS 6a Class 2: Congruences
Ma/CS 6a Class 2: Congruences 1 + 1 5 (mod 3) By Adam Sheffer Reminder: Public Key Cryptography Idea. Use a public key which is used for encryption and a private key used for decryption. Alice encrypts
More informationThe set of integers will be denoted by Z = {, 3, 2, 1, 0, 1, 2, 3, 4, }
Integers and Division 1 The Integers and Division This area of discrete mathematics belongs to the area of Number Theory. Some applications of the concepts in this section include generating pseudorandom
More informationDefinition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively
6 Prime Numbers Part VI of PJE 6.1 Fundamental Results Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively D (p) = { p 1 1 p}. Otherwise
More information1 Overview and revision
MTH6128 Number Theory Notes 1 Spring 2018 1 Overview and revision In this section we will meet some of the concerns of Number Theory, and have a brief revision of some of the relevant material from Introduction
More information7. Prime Numbers Part VI of PJE
7. Prime Numbers Part VI of PJE 7.1 Definition (p.277) A positive integer n is prime when n > 1 and the only divisors are ±1 and +n. That is D (n) = { n 1 1 n}. Otherwise n > 1 is said to be composite.
More informationPMA225 Practice Exam questions and solutions Victor P. Snaith
PMA225 Practice Exam questions and solutions 2005 Victor P. Snaith November 9, 2005 The duration of the PMA225 exam will be 2 HOURS. The rubric for the PMA225 exam will be: Answer any four questions. You
More informationMath 109 HW 9 Solutions
Math 109 HW 9 Solutions Problems IV 18. Solve the linear diophantine equation 6m + 10n + 15p = 1 Solution: Let y = 10n + 15p. Since (10, 15) is 5, we must have that y = 5x for some integer x, and (as we
More information1. multiplication is commutative and associative;
Chapter 4 The Arithmetic of Z In this chapter, we start by introducing the concept of congruences; these are used in our proof (going back to Gauss 1 ) that every integer has a unique prime factorization.
More informationLecture Notes 1 Basic Concepts of Mathematics MATH 352
Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,
More informationNumber Theory. Modular Arithmetic
Number Theory The branch of mathematics that is important in IT security especially in cryptography. Deals only in integer numbers and the process can be done in a very fast manner. Modular Arithmetic
More informationa = qb + r where 0 r < b. Proof. We first prove this result under the additional assumption that b > 0 is a natural number. Let
2. Induction and the division algorithm The main method to prove results about the natural numbers is to use induction. We recall some of the details and at the same time present the material in a different
More informationLECTURE NOTES IN CRYPTOGRAPHY
1 LECTURE NOTES IN CRYPTOGRAPHY Thomas Johansson 2005/2006 c Thomas Johansson 2006 2 Chapter 1 Abstract algebra and Number theory Before we start the treatment of cryptography we need to review some basic
More informationChuck Garner, Ph.D. May 25, 2009 / Georgia ARML Practice
Some Chuck, Ph.D. Department of Mathematics Rockdale Magnet School for Science Technology May 25, 2009 / Georgia ARML Practice Outline 1 2 3 4 Outline 1 2 3 4 WarmUp Problem Problem Find all positive
More informationDiscrete Structures Lecture Solving Congruences. mathematician of the eighteenth century). Also, the equation gggggg(aa, bb) =
First Introduction Our goal is to solve equations having the form aaaa bb (mmmmmm mm). However, first we must discuss the last part of the previous section titled gcds as Linear Combinations THEOREM 6
More informationHomework #2 Solutions Due: September 5, for all n N n 3 = n2 (n + 1) 2 4
Do the following exercises from the text: Chapter (Section 3):, 1, 17(a)(b), 3 Prove that 1 3 + 3 + + n 3 n (n + 1) for all n N Proof The proof is by induction on n For n N, let S(n) be the statement
More informationSolutions to Assignment 1
Solutions to Assignment 1 Question 1. [Exercises 1.1, # 6] Use the division algorithm to prove that every odd integer is either of the form 4k + 1 or of the form 4k + 3 for some integer k. For each positive
More informationFinal Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is
1. Describe the elements of the set (Z Q) R N. Is this set countable or uncountable? Solution: The set is equal to {(x, y) x Z, y N} = Z N. Since the Cartesian product of two denumerable sets is denumerable,
More information1 2 3 style total. Circle the correct answer; no explanation is required. Each problem in this section counts 5 points.
1 2 3 style total Math 415 Examination 3 Please print your name: Answer Key 1 True/false Circle the correct answer; no explanation is required. Each problem in this section counts 5 points. 1. The rings
More informationAN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION
AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION Recall that RSA works as follows. A wants B to communicate with A, but without E understanding the transmitted message. To do so: A broadcasts RSA method,
More informationMath 314 Course Notes: Brief description
Brief description These are notes for Math 34, an introductory course in elementary number theory Students are advised to go through all sections in detail and attempt all problems These notes will be
More informationAlgebra. Modular arithmetic can be handled mathematically by introducing a congruence relation on the integers described in the above example.
Coding Theory Massoud Malek Algebra Congruence Relation The definition of a congruence depends on the type of algebraic structure under consideration Particular definitions of congruence can be made for
More informationCSE 20 DISCRETE MATH. Winter
CSE 20 DISCRETE MATH Winter 2017 http://cseweb.ucsd.edu/classes/wi17/cse20ab/ Today's learning goals Determine whether a relation is an equivalence relation by determining whether it is Reflexive Symmetric
More informationChapter 3 Basic Number Theory
Chapter 3 Basic Number Theory What is Number Theory? Well... What is Number Theory? Well... Number Theory The study of the natural numbers (Z + ), especially the relationship between different sorts of
More informationLECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS
LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS 1. The Chinese Remainder Theorem We now seek to analyse the solubility of congruences by reinterpreting their solutions modulo a composite
More informationElementary Algebra Chinese Remainder Theorem Euclidean Algorithm
Elementary Algebra Chinese Remainder Theorem Euclidean Algorithm April 11, 2010 1 Algebra We start by discussing algebraic structures and their properties. This is presented in more depth than what we
More informationElementary Number Theory MARUCO. Summer, 2018
Elementary Number Theory MARUCO Summer, 2018 Problem Set #0 axiom, theorem, proof, Z, N. Axioms Make a list of axioms for the integers. Does your list adequately describe them? Can you make this list as
More informationChapter 2. Divisibility. 2.1 Common Divisors
Chapter 2 Divisibility 2.1 Common Divisors Definition 2.1.1. Let a and b be integers. A common divisor of a and b is any integer that divides both a and b. Suppose that a and b are not both zero. By Proposition
More informationCongruence Classes. Number Theory Essentials. Modular Arithmetic Systems
Cryptography Introduction to Number Theory 1 Preview Integers Prime Numbers Modular Arithmetic Totient Function Euler's Theorem Fermat's Little Theorem Euclid's Algorithm 2 Introduction to Number Theory
More informationCHAPTER 3. Congruences. Congruence: definitions and properties
CHAPTER 3 Congruences Part V of PJE Congruence: definitions and properties Definition. (PJE definition 19.1.1) Let m > 0 be an integer. Integers a and b are congruent modulo m if m divides a b. We write
More informationNumber Theory. CSS322: Security and Cryptography. Sirindhorn International Institute of Technology Thammasat University CSS322. Number Theory.
CSS322: Security and Cryptography Sirindhorn International Institute of Technology Thammasat University Prepared by Steven Gordon on 29 December 2011 CSS322Y11S2L06, Steve/Courses/2011/S2/CSS322/Lectures/number.tex,
More informationINTEGERS. In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes.
INTEGERS PETER MAYR (MATH 2001, CU BOULDER) In this section we aim to show the following: Goal. Every natural number can be written uniquely as a product of primes. 1. Divisibility Definition. Let a, b
More information7.2 Applications of Euler s and Fermat s Theorem.
7.2 Applications of Euler s and Fermat s Theorem. i) Finding and using inverses. From Fermat s Little Theorem we see that if p is prime and p a then a p 1 1 mod p, or equivalently a p 2 a 1 mod p. This
More informationthen the hard copy will not be correct whenever your instructor modifies the assignments.
Assignments for Math 2030 then the hard copy will not be correct whenever your instructor modifies the assignments. exams, but working through the problems is a good way to prepare for the exams. It is
More informationNotes on Primitive Roots Dan Klain
Notes on Primitive Roots Dan Klain last updated March 22, 2013 Comments and corrections are welcome These supplementary notes summarize the presentation on primitive roots given in class, which differed
More informationBeautiful Mathematics
Beautiful Mathematics 1. Principle of Mathematical Induction The set of natural numbers is the set of positive integers {1, 2, 3,... } and is denoted by N. The Principle of Mathematical Induction is a
More informationDMATH Algebra II FS18 Prof. Marc Burger. Solution 26. Cyclotomic extensions.
DMAH Algebra II FS18 Prof. Marc Burger Solution 26 Cyclotomic extensions. In the following, ϕ : Z 1 Z 0 is the Euler function ϕ(n = card ((Z/nZ. For each integer n 1, we consider the nth cyclotomic polynomial
More information2 More on Congruences
2 More on Congruences 2.1 Fermat s Theorem and Euler s Theorem definition 2.1 Let m be a positive integer. A set S = {x 0,x 1,,x m 1 x i Z} is called a complete residue system if x i x j (mod m) whenever
More informationModular Arithmetic Instructor: Marizza Bailey Name:
Modular Arithmetic Instructor: Marizza Bailey Name: 1. Introduction to Modular Arithmetic If someone asks you what day it is 145 days from now, what would you answer? Would you count 145 days, or find
More informationIntroduction to Number Theory
INTRODUCTION Definition: Natural Numbers, Integers Natural numbers: N={0,1,, }. Integers: Z={0,±1,±, }. Definition: Divisor If a Z can be writeen as a=bc where b, c Z, then we say a is divisible by b or,
More information