7.2 Applications of Euler s and Fermat s Theorem.
|
|
- Emil McDowell
- 6 years ago
- Views:
Transcription
1 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 means that a p 2 is the inverse of a modulo p or, in the language of congruence classes, [a] 1 p = [a p 2 ] p in Z p. An interesting question is with which method is it quickest to calculate the modular inverse. Is it by Euclid s Algorithm or by calculating a p 2 using, for example, the method of successive squaring? In fact, both methods have running time proportional to the number of decimal digits of a. For Euclid s algorithm this result on the running time is the content of Lame s Theorem, PJE p.226. Aside III And in general, for (a, m) = 1 the inverse of a modulo m is a φ(m) 1. But now it isn t reasonable to calculate a φ(m) 1 since it is difficult to evaluate φ (m) for composite m. In fact we need to know that m is prime to use φ (m) = m 1, and it is another difficult task to verify whether a given integer is prime or not. The largest known prime (as of September 2008) is 2 43,112, (See known prime for further details). A use of inverses is to solve linear congruences. Example Find the integer solutions of 5x 6 mod 19. Solution From Euler s theorem mod 19 (because φ (19) = 18 since 19 is prime). So mod 19, i.e is the inverse of 5 mod 19. Thus multiplying both sides of the equation by 5 17 gives 5 18 x mod 19, i.e. x mod 19. Though this is an answer to the question we normally give x as the least positive residue. Successive squaring gives 5 2 6, , and mod 19. Thus x mod 19, which agrees with the answer found in Chapter 3, but which should still be checked by substitution. ii) Calculating powers. With p = 13 and a = 4 we see that mod 13. Thus = ( 4 12) 8 ( 4 2 ) ( 3) 2 9 mod 13, as we have seen before in Chapter 3, using the method of successive squaring. 1
2 iii) Solving non-linear congruences. Example Solve x 12 3 mod 11. Solution Any solution of this must satisfy gcd (x, 11) = 1 so Fermat s Theorem gives x 10 1 mod 11. Thus our equation becomes x 2 3 mod 11. Now check. x x 2 mod Note that if x 6 then 11 x 5 and x 2 (11 x) 2 mod 11 so all possible values of x 2 mod 11 will be seen in the table. From the table we see the answer is x 5 mod 11. Example Show that x 5 3 mod 11 has no solutions. Solution by contradiction. Assume x 5 3 mod 11 has solutions. Any solution of this must satisfy gcd (x, 11) = 1 so Fermat s Theorem gives x 10 1 mod 11. Since 5 10 we square both sides of the congruence to get 1 x 10 ( x 5) mod 11. This is false and so the assumption is false and thus the congruence has no solution. Example Solve x 7 3 mod 11. Solution Again x 10 1 mod 11 but this time 7 10, in fact gcd (7, 10) = 1. From Euclid s Algorithm we get = 1. Raise both sides of the congruence to the third power to get 3 3 ( x 7) 3 x 3 7 x x ( x 10) 2 x mod 11. Hence the solution is x mod 11. Don t forget to check your answer (by successive squaring of 5). 2
3 iv) Last decimal digits Example Find the last two digits in the decimal expansion of Solution We have to calculate mod 100. Euler s Theorem tells us that 13 φ(100) = mod 10. Thus Now use successive squaring = ( 13 40) mod , , , mod 100. (1) Hence mod 100. So the last two digits of are 77, as already found in Chapter 3. This method makes it easier to find the last two digits of , also asked for in Chapter = ( 13 40) mod 100. Hence, using (1), mod 100. Therefore, the last two digits of are 49. What are the last three digits of ? See ap- Question for students. pendix. iv) Is divisible by 11? Here we look at mod 11. Because 11 is prime we could use Fermat s Little Theorem to say mod 11. Thus = 33 0 mod 11, i.e is divisible by 11. Question for students. Show that is divisible by 65. 3
4 Appendix Contents 1. Sieve of Eratosthenes 2. Prime Number Theorem 3. Lowest Common Multiples 4. Use of unique factorization 5. What are φ (100) and φ (1000) and their use 6. Further examples of Fermat s Theorem 7. Wilson s Theorem 8. Permutations on Z 8 1) Sieve of Eratosthenes. All the numbers from 2 up to Delete multiples of 2 apart from 2 itself:
5 Delete multiples of 3 apart from 3 itself: Delete multiples of 5 apart from 5 itself: Delete multiples of 7 apart from 7 itself: The next number is 11 which is greater than 100 and so there are no multiples of it less than 100 that haven t already been deleted in earlier stages. Thus we are left with the 25 primes <100. 5
6 2) Prime Numbers. For x > 0 let π (x) be the number of primes not exceeding x. So π (10) = 4, π (100) = 25, (as seen from the application of the Sieve of Eratosthenes in the appendix), π (1000) = 168 and π (5000) = 669. Also π ( 10 23) = 1, 925, 320, 391, 606, 803, 968, 923, due to Tomás Oliveira e Silva, Is there a simple formula for π (x)? Theorem Prime Number Theorem (1896) π (x) x/ ln x 1 as x. This means that we can make π (x) / (x/ ln x) 1 as small as we like by taking x sufficiently large. This difference is < if x 10 9, is < if x and is < if x So, for very large x the graph for π (x) lies close to that of x/ ln x. Proof not given. You might in fact think that x/ ln x is not a good approximation to π (x). If f (x) = x/ ln x then f ( 10 23) = 1, 888, 236, 877, 840, 225, 337, which seems quite a long way short of the true value of π (10 23 ) above. (See function for further details including a description of a better approximation to π (x).) 3) Lowest Common Multiples. Let a, b be integers > 1, and let p 1, p 2,..., p n be all the primes that divide ab. Then a = n for some a i, b i 0 for 1 i n. Theorem and gcd (a, b) = n lcm (a, b) = n p a i i, b = n p b i i, p d i i with d i = min (a i, b i ) for all 1 i n, p f i i with f i = max (a i, b i ) for all 1 i n. 6
7 And gcd (a, b) lcm (a, b) = ab. Proof The result for the gcd (a, b) was given in lectures. For the lowest common multiple, recall the Definition The lowest common multiple of integers a, b is the positive integer f that satisfies (1) a f, b f, (2) if a k, b k then f k. Note that ab is a multiple of both a and b and thus a common multiple. By part (2) of the definition lcm (a, b) ab. In particular the primes dividing lcm (a, b) come from the list p 1, p 2,..., p n. Therefore for some f i 0 for 1 i n. lcm (a, b) = n The condition that a lcm (a, b) implies a i f i while b lcm (a, b) implies b i f i for 1 i n. These combine to give max (a i, b i ) f i for 1 i n. But lcm (a, b) is the least common multiple so we take f i = max (a i, b i ) for 1 i n. Finally, since for all x, y we have (student to check this), then p f i i min (x, y) + max (x, y) = x + y, gcd (a, b) lcm (a, b) = n = n p min(a i,b i ) i n p max(a i,b i ) i p min(a i,b i )+max(a i,b i ) i = n p a i+b i = n = ab. n p a i p b i 7
8 4) Example of use of unique factorization. Example For any m 2 there is no rational solution to q m = 2. Solution by contradiction. Assume that for some m 2 there exists a rational q : q m = 2. Write q = a/b with a, b Z, so we get a m = 2b m. First this means a m > 1 and so a > 1 in which case it has a decomposition into primes. Thus ( n n ) m p ma i i = = 2b m. By unique factorization, one of the primes in the product has to be 2, assume p 1 = 2 so a 1 1. Now either b = 1 or it is a product of primes, one of which may be 2. So 2 ma 1 n i=2 p a i i p ma i i = 2 1+mb 1 where b 1, and all other b i 0. By unique factorization the number of 2 s on both sides are identical so ma 1 = 1 + mb 1, i.e. m (a 1 b 1 ) = 1 in which case m divides 1. This contradicts m 2 and so the assumption is false and thus for no m 2 can we find a rational solution of q m = 2. n i=2 p mb i i One of the first proofs you examine at University is to prove that 2 is irrational, i.e. no rational solutions of q 2 = 2. So here we have extended this result. 5) What is φ (100)? Lemma For all s Z, gcd (r + s10, 100) = 1 gcd (r, 10) = 1. Proof ( ) Assume gcd (r, 10) = 1. Assume for contradiction that l ±1 such that l 100 and l (r + s10). Then since 100 is not prime, l 100 implies there exists d ±1 such that d l and d 10. But l (r + s10) then implies that d (r + s10). Combining d 10 and d (r + s10) gives d r. We thus have d 10 and d r which with gcd (r, 10) = 1 means that d is either d = 1 or d = 1. This contradicts d ±1, so the assumption is false, thus the only common divisors of r + s10 and 100 are ±1. ( ) The contrapositive of what we want to show, namely gcd (r, 10) > 1 gcd (r + s10, 100) > 1 8
9 is obvious. Corollary φ (100) = 40. Proof Start from φ (100) = {1 n 100 : gcd (n, 100) = 1} = {1 r 10, 0 s 9 : gcd (r + s10, 100) = 1} = {1 r 10, 0 s 9 : gcd (r, 10) = 1} by the lemma = 10 {1 r 10 : gcd (r, 10) = 1} = 10φ (10) = 40. Example For m 1 φ (10 m ) = 10φ ( 10 m 1). Solution Simply write every 1 n 10 m as r + s10 n 1 with 1 r 10 n 1 and 0 s 9. Then the same reasoning as before gives gcd ( r + s10 m 1, 10 m) = 1 gcd ( r, 10 m 1) = 1, for any s Z. And again, as before, this implies φ (10 m ) = 10φ (10 m 1 ). Example Find the last three digits of Solution We need calculate mod From above φ (1000) = 10φ (100) = 400, and so mod Thus Repeated squaring gives ( ) mod = 169, = mod 1000, = mod 1000, = mod 1000, = mod 1000, = mod 1000, = mod
10 Combine = = = mod Hence the last 3 digits of are ) Further examples of the use of Euler s and Fermat s Theorems. Example Show that is divisible by 65. Solution We need show that 65 ( ). Since 65 = 5 13 we need show that 5 ( ) and 13 ( ). First, since φ (5) = 4 we have mod 5. Hence = ( 2 4) = 5 0 mod 5. Secondly, since φ (13) = 12 we have mod 5. Hence = ( 2 12) = 65 0 mod 13. Combining these we get the required result. Example Is 221 prime? Solution Fermat s Little Theorem tells us that If 221 is prime then mod 221. Note that 220 = =
11 Look at powers of 2 modulo 221. So n 2 2n = ( 2 2n 1 ) 2 mod = = = = ( 101) 2 = ( 101) = ( 101) ( 101) mod 221. Since mod 221 we deduce that 221 is not prime. Example You now notice that 221 is composite and in fact 221 = Use Fermat s Little Theorem, and not the method of successive squaring modulo 221, to check that mod 221. Solution. If x mod (17 13) then x mod 17 and x mod 13. By Fermat s theorem we have mod 17 so = ( 2 4) 3 ( 1) mod 17. Similarly mod 13 so = = 16 3 mod 13. Thus our two equations become x 16 mod 17 and x 3 mod 13 11
12 Such a system was solved in the Appendix to Chapter 3, using the Chinese Remainder Theorem, where we found x 16 mod 221. Example Solve x 22 + x 11 2 mod 11. Solution Any solution must have gcd (x, 11) = 1 and so, by By Fermat s Theorem, x 22 + x 11 x 2 + x x x (x + 6) 2 36 mod 11, by completing the square. Thus we need only solve (x + 6) mod 11. From the table x x 2 mod we see that x mod 11 and x mod 11 are solutions, i.e. x 1 or 9 mod 11. Example Show that there are no integer solutions (x, y) to x 12 11x 6 y 5 + y Solution We assume there are integer solutions. modulo 11 they remain solutions. There are two cases. When we look at this First, it maybe that 11 y in which case the equation becomes x 12 8 mod 11. For any solution of this we must have gcd (x, 11) = 1 so, again by Fermat s Theorem, x 10 1 mod 11 and so we get x 2 8 mod 11. From the table above we see this has no solutions. Secondly, perhaps 11 y, i.e. gcd (y, 11) = 1. So Fermat s Theorem again gives both x 10, y 10 1 mod 11. Thus x 12 11x 6 y 5 + y 10 x x mod 11, and so we are looking for solutions to x 2 7 mod 11. Again from the table we see this has no solution. In both cases our equation has no solutions modulo 11. This contradiction means our original equation has no integer solutions. 12
13 7) Wilson s Theorem. Recall that Z m = {[r] m : 1 r m, (r, m) = 1} = {[r] m : 1 r m, [x] m Z m : [r] m [x] m = [1] m }. Question What 1 r m are self-inverse modulo m, i.e. for which we can we take [x] m = [r] m in [r] m [x] m = [1] m? In other words, for which 1 r m do we have r 2 1 mod m? Answer given here only for m = p, prime. Theorem x 2 1 mod p if, and only if, x 1 or 1 mod p. Proof x 2 1 mod p p ( x 2 1 ) p (x 1) (x + 1) p (x 1) or p (x + 1) since p prime x 1 mod p or x 1 mod p. Thus the only self-inverses in Z p are [1] p and [p 1] p. As a corollary of this we have Theorem Wilson s Theorem. If p is prime then (p 1)! 1 mod p. Proof p.291. Take the product of all the classes in Z p: 1 r p 1 (r,p)=1 [r] p. Rearrange, pairing up a class with its inverse, leaving [1] p and [p 1] p unpaired. So the product becomes ) [1] p ( pairs [r] p [r] 1 p [p 1] p = [p 1] p. Thus 1 r p 1 (r,p)=1 [r] p = [p 1] p, 13
14 which is equivalent to the stated result. Example Calculate 20! mod 23. Solution 23 is a prime so Wilson s Theorem gives 22! 1 mod 23. But 22! = ! ( 1) ( 2) 20! 2 20! mod 23. By observation 12 is the inverse of 2 modulo 23 so 20! ! 12 22! mod 12. 8) Permutations on Z 8 Example On Z 8 = {1, 3, 5, 7}, (dropping the [...] 8 ), we have four such permutations. Note that ρ 1 = ρ 3 = ρ 5 = ρ 7 = ( ) = Z 8, ( ) = (1, 3) (5, 7), ( ) = (1, 5) (3, 7), ( ) = (1, 7) (3, 5) ρ b ρ a ([r] 8 ) = ρ b (ρ a ([r] 8 )) = ρ b ([ar] 8 ) = [b (ar)] 8 = [(ba) r] 8 = ρ ba ([r] 8 ). Hence ρ b ρ a = ρ ba. Thus we can draw up the multiplication table for these permutations which can be compared with that for (Z 8, ) : ρ 1 ρ 3 ρ 5 ρ 7 ρ 1 ρ 1 ρ 3 ρ 5 ρ 7 ρ 3 ρ 3 ρ 1 ρ 7 ρ 5 ρ 5 ρ 5 ρ 7 ρ 1 ρ 3 ρ 7 ρ 7 ρ 5 ρ 3 ρ The mapping Z 8 {ρ 1, ρ 3, ρ 5, ρ 7 }, r ρ r preserves the structure of the table. Perhaps you can generalize this to a result for (Z m, )? 14
7. 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 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 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 informationMATH 310: Homework 7
1 MATH 310: Homework 7 Due Thursday, 12/1 in class Reading: Davenport III.1, III.2, III.3, III.4, III.5 1. Show that x is a root of unity modulo m if and only if (x, m 1. (Hint: Use Euler s theorem and
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 information4 Number Theory and Cryptography
4 Number Theory and Cryptography 4.1 Divisibility and Modular Arithmetic This section introduces the basics of number theory number theory is the part of mathematics involving integers and their properties.
More informationnot to be republished NCERT REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results
REAL NUMBERS CHAPTER 1 (A) Main Concepts and Results Euclid s Division Lemma : Given two positive integers a and b, there exist unique integers q and r satisfying a = bq + r, 0 r < b. Euclid s Division
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 (2018-01-24) 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 informationSlides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006
Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Spring 2006 1 / 1 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 2.4 2.6 of Rosen Introduction I When talking
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 informationChapter 5. Number Theory. 5.1 Base b representations
Chapter 5 Number Theory The material in this chapter offers a small glimpse of why a lot of facts that you ve probably nown and used for a long time are true. It also offers some exposure to generalization,
More information6 Permutations Very little of this section comes from PJE.
6 Permutations Very little of this section comes from PJE Definition A permutation (p147 of a set A is a bijection ρ : A A Notation If A = {a b c } and ρ is a permutation on A we can express the action
More informationApplied Cryptography and Computer Security CSE 664 Spring 2017
Applied Cryptography and Computer Security Lecture 11: Introduction to Number Theory Department of Computer Science and Engineering University at Buffalo 1 Lecture Outline What we ve covered so far: symmetric
More information3 The fundamentals: Algorithms, the integers, and matrices
3 The fundamentals: Algorithms, the integers, and matrices 3.4 The integers and division This section introduces the basics of number theory number theory is the part of mathematics involving integers
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 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 312/ AMS 351 (Fall 17) Sample Questions for Final
Math 312/ AMS 351 (Fall 17) Sample Questions for Final 1. Solve the system of equations 2x 1 mod 3 x 2 mod 7 x 7 mod 8 First note that the inverse of 2 is 2 mod 3. Thus, the first equation becomes (multiply
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 informationSolutions to Practice Final
s to Practice Final 1. (a) What is φ(0 100 ) where φ is Euler s φ-function? (b) Find an integer x such that 140x 1 (mod 01). Hint: gcd(140, 01) = 7. (a) φ(0 100 ) = φ(4 100 5 100 ) = φ( 00 5 100 ) = (
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 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 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 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 informationSolution Sheet (i) q = 5, r = 15 (ii) q = 58, r = 15 (iii) q = 3, r = 7 (iv) q = 6, r = (i) gcd (97, 157) = 1 = ,
Solution Sheet 2 1. (i) q = 5, r = 15 (ii) q = 58, r = 15 (iii) q = 3, r = 7 (iv) q = 6, r = 3. 2. (i) gcd (97, 157) = 1 = 34 97 21 157, (ii) gcd (527, 697) = 17 = 4 527 3 697, (iii) gcd (2323, 1679) =
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 informationCHAPTER 1 REAL NUMBERS KEY POINTS
CHAPTER 1 REAL NUMBERS 1. Euclid s division lemma : KEY POINTS For given positive integers a and b there exist unique whole numbers q and r satisfying the relation a = bq + r, 0 r < b. 2. Euclid s division
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 informationMATH 2200 Final Review
MATH 00 Final Review Thomas Goller December 7, 01 1 Exam Format The final exam will consist of 8-10 proofs It will take place on Tuesday, December 11, from 10:30 AM - 1:30 PM, in the usual room Topics
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 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 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 informationKnow the Well-ordering principle: Any set of positive integers which has at least one element contains a smallest element.
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
More informationDiscrete Structures Lecture Primes and Greatest Common Divisor
DEFINITION 1 EXAMPLE 1.1 EXAMPLE 1.2 An integer p greater than 1 is called prime if the only positive factors of p are 1 and p. A positive integer that is greater than 1 and is not prime is called composite.
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 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 informationDiscrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6
CS 70 Discrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6 1 Modular Arithmetic In several settings, such as error-correcting codes and cryptography, we sometimes
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 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 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 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 informationORDERS OF ELEMENTS IN A GROUP
ORDERS OF ELEMENTS IN A GROUP KEITH CONRAD 1. Introduction Let G be a group and g G. We say g has finite order if g n = e for some positive integer n. For example, 1 and i have finite order in C, since
More informationPart IA Numbers and Sets
Part IA Numbers and Sets Definitions Based on lectures by A. G. Thomason Notes taken by Dexter Chua Michaelmas 2014 These notes are not endorsed by the lecturers, and I have modified them (often significantly)
More informationMATH 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.
MATH 501 Discrete Mathematics Lecture 6: Number theory Prof. Dr. Slim Abdennadher, slim.abdennadher@guc.edu.eg German University Cairo, Department of Media Engineering and Technology 1 Number theory Number
More information4 PRIMITIVE ROOTS Order and Primitive Roots The Index Existence of primitive roots for prime modulus...
PREFACE These notes have been prepared by Dr Mike Canfell (with minor changes and extensions by Dr Gerd Schmalz) for use by the external students in the unit PMTH 338 Number Theory. This booklet covers
More informationSOLUTIONS TO PROBLEM SET 1. Section = 2 3, 1. n n + 1. k(k + 1) k=1 k(k + 1) + 1 (n + 1)(n + 2) n + 2,
SOLUTIONS TO PROBLEM SET 1 Section 1.3 Exercise 4. We see that 1 1 2 = 1 2, 1 1 2 + 1 2 3 = 2 3, 1 1 2 + 1 2 3 + 1 3 4 = 3 4, and is reasonable to conjecture n k=1 We will prove this formula by induction.
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 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 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 informationChapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations
Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 9.1 Chapter 9 Objectives
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 informationa the relation arb is defined if and only if = 2 k, k
DISCRETE MATHEMATICS Past Paper Questions in Number Theory 1. Prove that 3k + 2 and 5k + 3, k are relatively prime. (Total 6 marks) 2. (a) Given that the integers m and n are such that 3 (m 2 + n 2 ),
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 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 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 informationALGEBRA I (LECTURE NOTES 2017/2018) LECTURE 9 - CYCLIC GROUPS AND EULER S FUNCTION
ALGEBRA I (LECTURE NOTES 2017/2018) LECTURE 9 - CYCLIC GROUPS AND EULER S FUNCTION PAVEL RŮŽIČKA 9.1. Congruence modulo n. Let us have a closer look at a particular example of a congruence relation on
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 informationPRIME NUMBERS YANKI LEKILI
PRIME NUMBERS YANKI LEKILI We denote by N the set of natural numbers: 1,2,..., These are constructed using Peano axioms. We will not get into the philosophical questions related to this and simply assume
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 Notes. Advanced Discrete Structures COT S
Lecture Notes Advanced Discrete Structures COT 4115.001 S15 2015-01-13 Recap Divisibility Prime Number Theorem Euclid s Lemma Fundamental Theorem of Arithmetic Euclidean Algorithm Basic Notions - Section
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 informationREAL NUMBERS. Any positive integer a can be divided by another positive integer b in such a way that it leaves a remainder r that is smaller than b.
REAL NUMBERS Introduction Euclid s Division Algorithm Any positive integer a can be divided by another positive integer b in such a way that it leaves a remainder r that is smaller than b. Fundamental
More informationDiscrete mathematics I - Number theory
Discrete mathematics I - Number theory Emil Vatai (based on hungarian slides by László Mérai) 1 January 31, 2018 1 Financed from the financial support ELTE won from the Higher Education
More informationDefinition For a set F, a polynomial over F with variable x is of the form
*6. Polynomials Definition For a set F, a polynomial over F with variable x is of the form a n x n + a n 1 x n 1 + a n 2 x n 2 +... + a 1 x + a 0, where a n, a n 1,..., a 1, a 0 F. The a i, 0 i n are the
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 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 informationQ 2.0.2: If it s 5:30pm now, what time will it be in 4753 hours? Q 2.0.3: Today is Wednesday. What day of the week will it be in one year from today?
2 Mod math Modular arithmetic is the math you do when you talk about time on a clock. For example, if it s 9 o clock right now, then it ll be 1 o clock in 4 hours. Clearly, 9 + 4 1 in general. But on a
More informationREVIEW PROBLEMS FOR SECOND 3200 MIDTERM
REVIEW PROBLEMS FOR SECOND 3200 MIDTERM PETE L. CLARK 1)a) State Euclid s Lemma (the one involving prime numbers and divisibility). b) Use Euclid s Lemma to show that 3 1/5 and 5 1/3 are both irrational.
More informationNumber Theory. Zachary Friggstad. Programming Club Meeting
Number Theory Zachary Friggstad Programming Club Meeting Outline Factoring Sieve Multiplicative Functions Greatest Common Divisors Applications Chinese Remainder Theorem Throughout, problems to try are
More information4. Congruence Classes
4 Congruence Classes Definition (p21) The congruence class mod m of a Z is Example With m = 3 we have Theorem For a b Z Proof p22 = {b Z : b a mod m} [0] 3 = { 6 3 0 3 6 } [1] 3 = { 2 1 4 7 } [2] 3 = {
More information3.7 Non-linear Diophantine Equations
37 Non-linear Diophantine Equations As an example of the use of congruences we can use them to show when some Diophantine equations do not have integer solutions This is quite a negative application -
More informationMA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES
MA257: INTRODUCTION TO NUMBER THEORY LECTURE NOTES 2018 57 5. p-adic Numbers 5.1. Motivating examples. We all know that 2 is irrational, so that 2 is not a square in the rational field Q, but that we can
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 informationIntroduction to Information Security
Introduction to Information Security Lecture 5: Number Theory 007. 6. Prof. Byoungcheon Lee sultan (at) joongbu. ac. kr Information and Communications University Contents 1. Number Theory Divisibility
More informationNumber theory (Chapter 4)
EECS 203 Spring 2016 Lecture 10 Page 1 of 8 Number theory (Chapter 4) Review Questions: 1. Does 5 1? Does 1 5? 2. Does (129+63) mod 10 = (129 mod 10)+(63 mod 10)? 3. Does (129+63) mod 10 = ((129 mod 10)+(63
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 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 information= 1 2x. x 2 a ) 0 (mod p n ), (x 2 + 2a + a2. x a ) 2
8. p-adic numbers 8.1. Motivation: Solving x 2 a (mod p n ). Take an odd prime p, and ( an) integer a coprime to p. Then, as we know, x 2 a (mod p) has a solution x Z iff = 1. In this case we can suppose
More information3.2 Solving linear congruences. v3
3.2 Solving linear congruences. v3 Solving equations of the form ax b (mod m), where x is an unknown integer. Example (i) Find an integer x for which 56x 1 mod 93. Solution We have already solved this
More informationSignature: (In Ink) UNIVERSITY OF MANITOBA TEST 1 SOLUTIONS COURSE: MATH 2170 DATE & TIME: February 11, 2019, 16:30 17:15
PAGE: 1 of 7 I understand that cheating is a serious offence: Signature: (In Ink) PAGE: 2 of 7 1. Let a, b, m, be integers, m > 1. [1] (a) Define a b. Solution: a b iff for some d, ad = b. [1] (b) Define
More informationPart IA Numbers and Sets
Part IA Numbers and Sets Theorems Based on lectures by A. G. Thomason Notes taken by Dexter Chua Michaelmas 2014 These notes are not endorsed by the lecturers, and I have modified them (often significantly)
More informationMcGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60
McGill University Faculty of Science Solutions to Practice Final Examination Math 40 Discrete Structures Time: hours Marked out of 60 Question. [6] Prove that the statement (p q) (q r) (p r) is a contradiction
More informationNumber Theory Notes Spring 2011
PRELIMINARIES The counting numbers or natural numbers are 1, 2, 3, 4, 5, 6.... The whole numbers are the counting numbers with zero 0, 1, 2, 3, 4, 5, 6.... The integers are the counting numbers and zero
More informationArithmetic, Algebra, Number Theory
Arithmetic, Algebra, Number Theory Peter Simon 21 April 2004 Types of Numbers Natural Numbers The counting numbers: 1, 2, 3,... Prime Number A natural number with exactly two factors: itself and 1. Examples:
More informationEULER S THEOREM KEITH CONRAD
EULER S THEOREM KEITH CONRAD. Introduction Fermat s little theorem is an important property of integers to a prime modulus. Theorem. (Fermat). For prime p and any a Z such that a 0 mod p, a p mod p. If
More informationObjective Type Questions
DISTANCE EDUCATION, UNIVERSITY OF CALICUT NUMBER THEORY AND LINEARALGEBRA Objective Type Questions Shyama M.P. Assistant Professor Department of Mathematics Malabar Christian College, Calicut 7/3/2014
More informationProof by Contradiction
Proof by Contradiction MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Proof by Contradiction Fall 2014 1 / 12 Outline 1 Proving Statements with Contradiction 2 Proving
More informationExam 2 Review Chapters 4-5
Math 365 Lecture Notes S. Nite 8/18/2012 Page 1 of 9 Integers and Number Theory Exam 2 Review Chapters 4-5 Divisibility Theorem 4-1 If d a, n I, then d (a n) Theorem 4-2 If d a, and d b, then d (a+b).
More informationMath 131 notes. Jason Riedy. 6 October, Linear Diophantine equations : Likely delayed 6
Math 131 notes Jason Riedy 6 October, 2008 Contents 1 Modular arithmetic 2 2 Divisibility rules 3 3 Greatest common divisor 4 4 Least common multiple 4 5 Euclidean GCD algorithm 5 6 Linear Diophantine
More informationNotes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.
Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Chapter : Logic Topics:. Statements, Negation, and Compound Statements.2 Truth Tables and Logical Equivalences.3
More informationMATH 2200 Final LC Review
MATH 2200 Final LC Review Thomas Goller April 25, 2013 1 Final LC Format The final learning celebration will consist of 12-15 claims to be proven or disproven. It will take place on Wednesday, May 1, from
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 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 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 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 informationIntegers and Division
Integers and Division Notations Z: set of integers N : set of natural numbers R: set of real numbers Z + : set of positive integers Some elements of number theory are needed in: Data structures, Random
More informationA number that can be written as, where p and q are integers and q Number.
RATIONAL NUMBERS 1.1 Definition of Rational Numbers: What are rational numbers? A number that can be written as, where p and q are integers and q Number. 0, is known as Rational Example:, 12, -18 etc.
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 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 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 information