2x 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?

Size: px
Start display at page:

Download "2x 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?"

Transcription

1 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 inverse C Solving Linear Congruences In algebra we have linear equations in one unknown x given by Solving this equation gives x 3. 2x 7 A linear congruence in modular arithmetic is an equation of the form ax b mod n The solution to this linear congruence is the set of integers x which satisfy this: ax b mod n Why is the solution a set of integers rather than a unique integer? Recall ax b mod n integer k. means that ax b is a multiple of n or ax b kn for some Can we confine ourselves to a unique solution to the linear congruence ax b mod n? If two solutions x x and x x satisfy the linear congruence 0 ax b mod n and they are congruent modulo n, that is x x 0 mod n same solution and count them as one solution. For example let us consider the linear congruence We can trial a table of integers for x: 2 x mod 5 (*), then we say these are the x x mod Table Shows the junctions of 2x mod 5

2 Chapter 3: Theory of Modular Arithmetic 26 Therefore x 3 and x 8 satisfy However they are the same solution. Why? 2 x mod 5 Because 8 3 mod 5. We count this as one solution not two. [It is the same station in modulo 5 clock.] Since we are interested in solutions modulo 5 we only need to consider integers amongst the list; x 0,, 2, 3 and 4 [least non-negative residues modulo 5] Because all the other integers will be one of these in modulo 5 which is illustrated below: x 0,, 2, 3, 4 mod 5 these junctions. Figure 7 Modulo 5 clock covers all the stations. Any other integer will stop at one of A more systematic way of solving the above linear congruence is given next. Example 0 Determine the integers x of the following linear congruence: 2 x mod 5 By definition of congruence 2x mod 5 implies that 2x is a multiple of 5: 2x 5y where y is an integer Rearranging this we have 2x 5y which is a Diophantine equation and we solved these type of equations in chapter. Making x the subject of 2x 5y gives 5y x 2 Remember x must be an integer. So what values of y can we use?

3 Chapter 3: Theory of Modular Arithmetic 27 Only the odd integers because if we choose even then we get even plus which does not give a whole number after dividing by 2. Substituting y, 3, 5,,, 3, 5, x 3, 8, 3,, 2, 7, 2, 5y into x gives 2 respectively. We count all these solutions as one or the same solution because they are all congruent to each other modulo 5: mod 5 See the above Fig. 7 and you will notice that all these numbers 3, 8, 3,, 2, 7 stop at the same junction, 3 mod 5. We normally write this as just one solution which is the least non-negative residue modulo 5: x 3 mod 5 We say the solution of 2x mod 5 is 3 mod 5 x. Example Solve the linear congruence: 2 x mod 6 The solution of this linear congruence 2x mod 6 x 0,, 2, 3, 4 and 5 must be in the list: Because we are working with modulo 6 in this case. Evaluating these we have x x mod Table 2 Junctions of 2x mod 6. [Note that the numbers 0, 2 and 4 are repeated]. By examining this table we find that there are no x values which satisfy 2 x mod 6. The set of integers 2x will not stop at junction modulo 6. This means that there is no solution to the given linear congruence 2x mod 6. (Try doing this by solving the Diophantine equation 2x 6y.) If we have x b mod n then we only have to consider values of

4 Chapter 3: Theory of Modular Arithmetic 28 In solving 2x mod 5 x 0,, 2, 3,, n. we tried values of x up to 9 (see Table at the beginning of this section), but we only need to try x 0,, 2, 3, 4. C2 Number of solutions of a Linear Congruence The above Example demonstrates that there are some linear congruences which have no solution. How do we know which congruences have a solution? The next proposition gives the criteria for a solution. Proposition (3.5). The linear congruence ax b mod n has a solution g b where g gcd a, n. Note that in Example 0 we had 2x mod 5. The the linear congruence 2x mod 5 has a solution. g gcd 2, 5 and so On the other hand in Example we had 2x mod 6 the g gcd 2, 6 2 and 2 does not divide so there are no solutions to this linear congruence. (For this example you would have noticed from the previous table that 2x mod 6 only stops at 0, 2 and 4 modulo 6 because these numbers are multiples of g gcd2, 6 2.) How do we prove this proposition (3.5)? By Proposition (.6) of chapter : ax by c has integer solutions g c where gcd, a b g Proof. We have ax b mod n Let g gcd a, n equation which means that there is an integer y such that ax b yn implies ax ny b. Then by Proposition (.6) we conclude that the Diophantine ax ny b has a solution g b which is our required result.

5 Chapter 3: Theory of Modular Arithmetic 29 Example 2 Which of the following linear congruences have solutions? (a) 7x 8 mod 4 (b) 2x 8 mod 6 (c) 5x 2 mod 9 (d) 36x 54 mod 90 (a) The greatest common divisor of 7 and 4, that is not divide 8 so by the above Proposition (3.5) the linear congruence 7 x 8 mod 4 (b) For 2x 8 mod 6 the congruence 2 x 8 mod 6 (c) For 5x 2 mod 9 we have linear congruence 5 x 2 mod 9 (d) The gcd36, x 54 mod 90 has solutions. has no solution gcd 7, 4 7, but 7 does gcd 2, 6 6 but 6 8 so the given linear has no solution gcd 5, 9 3 and 3 divides 2 so the given has solutions (we are not asked to find them) and 8 divides 54 so the given linear congruence Next, we show that the congruence ax b mod n has exactly g gcd a, n incongruent solutions. What does incongruent mean? Not congruent. For example 6 x 2 mod 4 has solutions x mod 4 and x 3 mod 4 but 3 mod 4 [ 3 mod 4 is not congruent to We say x mod 4 and x 3 mod 4 linear congruence 6x 2 mod 4. These congruences x mod 4 and x 3 mod 4 are two different stops on the modulo 4 clock. Example 3 Solve the linear congruence 6x 3 mod 9. mod 4 ] are two incongruent solutions of the given

6 Chapter 3: Theory of Modular Arithmetic 30 We use the above Proposition (3.5) to test whether we have a solution: mod has a solution g b where g gcd a, n ax b n We first find the greatest common divisor of 6 and 9: g gcd 6, 9 3 Since 3 3 the given linear congruence 6x 3 mod 9. has exactly 3 solutions. In this case we are working with modulo 9 so we only need to consider x 0,, 2, 3, 4, 5, 6, 7 and 8 Evaluating these gives x x mod By using this table we see our solutions are The linear congruence 6x 3 mod 9 Table 4 Shows junctions of 6x mod 9 x 2, 5, 8 mod 9 has three incongruent solutions x 2, 5, 8 mod 9. By observing Table 4 in Example 3 we have that the congruences 6 x 0, 3, 6 mod 9 have solutions because all these numbers 0, 3, 6 are multiples of 3 which is the gcd of 6 and 9. The set of integers represented by 6x mod 9 0, 3, 6 on the modulo 9 clock. only stops at junctions However the following congruence equations 6x, 2, 4 and 5 mod 9 will have no solutions because g 3 does not divide into any of these numbers, 2, 4, 5, 7, 8. Proposition (3.6). The linear congruence ax b mod n Has exactly g incongruent solutions modulo n provided g b where g gcd a, n How do we prove this result?. We use Proposition (.7) of chapter which gives the solutions of the Diophantine equation:

7 Chapter 3: Theory of Modular Arithmetic 3 If x 0, y 0 are particular solutions of the Diophantine equation and g c where gcd a, b g by Proof. ax by c then all the other solutions of this equation are given b x x t 0 g a and y y t 0 g We do the proof in two parts. First we list the solutions and then we show there are exactly g incongruent solutions. The given congruence ax b mod n ax b kn implies that there is an integer k such that ax kn ax n k b which implies Let x 0 be a particular solution to this equation then by applying the above Proposition (.7) to ax n k b gives the other solutions as n x x t 0 g where t is an arbitrary integer and g gcd a, n Substituting t 0, t, t 2, and t g we have n n n n x x, x, x 2, x 3,, x g g g g g (*) Need to show that each of these are not congruent modulo n. How? Use proof by contradiction. Suppose any two numbers in the list (*) are congruent modulo n: n n x t x t mod n g g Where 0 t t g. By using Definition (3.): 2 g g On n n x t 0 2 x t 0 mod n a b mod n a b kn implies there is an integer k such that n n x t 0 2 x t k n 0 g g n t t 2 k n Simplifying and factorizing g t t k g implies t t k g 2 2 Cancelling n's

8 Chapter 3: Theory of Modular Arithmetic 32 We have t 2 t k g t g g (because k ) and earlier we had t 2 g. This is a contradiction because we have t 2 g and t 2 g. Hence none of the congruences in the above list (*) are congruent to each other modulo n. This means that the list of numbers: are incongruent modulo n. n n n n x x, x, x 2, x 3,, x g g g g g n Any other solution x x t 0 g Why? is congruent to one of these in the list modulo n. We can show this by using the Division Algorithm on integers t and g. The Division Algorithm (.7) of chapter : Let a, b be given. Then there are unique integers q and r such that a bq r 0 r b Applying this on the above integers t and g means there are integers q and r such that: t gq r 0 r g ( ) n Substituting this t gq r into x x t 0 g gives n n x x 0 t x 0 gq r g g x nq r n 0 g n x 0 0 r Because g nq0 mod n n x r 0 mod n g From ( ) we have 0 r g which means r 0,, 2, 3,, g so this n x x t 0 g is in the above list (*) which is: n n n n x x, x, x 2, x 3,, x g g g g g Hence we have exactly g incongruent solutions to ax b mod n.

9 Chapter 3: Theory of Modular Arithmetic 33 C3 Solving Linear Congruence Equations The list (*) produced in the proof of the above Proposition (3.6) is used to find the g solutions of ax b mod n. Hence the following integers: g g g g n n n n (3.7) x x, x, 2, 3,, 0 0 x x x g mod n are the g solutions of ax b mod n provided g b where g gcd a, n These numbers can be written in compact form as: g (3.8) x n x t 0 mod n for t 0,, 2,, g We find a solution x 0 and then add multiples of n g. Example 4 Find all the solutions of the linear congruence equation: 7 x 35 mod 70 First we determine the greatest common divisor, gcd, of 7 and 70: gcd 7, 70 7 What next? We need to check that 7 divides into 35. Since 7 Why? Because by Proposition (3.6):. 35 we have 7 incongruent solutions. mod has exactly g solutions provided g b where g gcd a, n ax b n We can find the first solution by trial and error. Is there an obvious solution? Yes, it is x 5 mod 70 because How do we find the other six solutions? Using the list of numbers given in (3.8): g (3.8) x n x t 0 mod n With x 5 0 mod 70, n 70 and g 7 0 with t 0,, 2,, 7 for t 0,, 2,, g we have to x 5 0 mod 70 n g Adding multiples of 7, into this (3.8) gives

10 Chapter 3: Theory of Modular Arithmetic 34 x 5, 5 0, 5 2 0, 5 3 0,, , 5, 25, 35, 45, 55, 65 mod 70 Simplifying You can check that each of these is a solution by substituting these into 7 x 35 mod 70 Example 5 Find all the solutions of the linear congruence equation: First gcd7, x 34 mod 70 but 7 does not divide into 34. What does this mean in relation to the solutions of 7x 34 mod 70? There are no solutions to 7x 34 mod 70. Example 6 Find all the incongruent solutions of the linear congruence: 5 x 34 mod 7 The greatest common divisor of 5 and 7 is, that is gcd5, How many solutions do we have of the given linear congruence? and divides into One solution which means this linear congruence has a unique solution. How can we find this? We are given 5x 34 mod 7. We can simplify this to make the arithmetic easier; note that 34 6 mod 7 therefore 5x 34 6 mod 7. It is simpler to solve 5x 6 mod 7 rather than 5x 34 mod 7 Also note that 5 2 mod 7 and 6 mod 7 can solve the equivalent easier equation:. Using these results means that we 2x mod 7 2x mod 7 Multiplying by By observation we know x 4 mod 7 is a solution because mod 4 Checking that this solution is correct:,

11 Chapter 3: Theory of Modular Arithmetic mod 7 Therefore 5x 34 mod 7 has the unique solution 4 mod 7 x. To solve the linear equation 6x 5 0 It is easier to divide through by 3 and solve 2x 5 0. Can we divide through by a common factor for congruences? We need to be careful because we are dealing with integers. The next example demonstrates this. Example 7 Find all the incongruent solutions of the linear congruence: 6 x 5 mod 2 The gcd6, 2 3 and 3 5 so there are 3 incongruent solutions modulo 2. If you only have paper and pen then modulo 2 is too tedious to work with. Can we convert this to a smaller modulus and work with that? Yes. By Proposition (3.0) of the previous section: ac bc mod n implies a b mod n g where g gcd c, n This n g gives us a smaller modulus. We are given 6x 5 mod 2 gcd 6, 2 3 and. We can write the given linear congruence 6x 5 mod 2 32x 35 mod 7 3 The above Proposition (3.0) allows us to cancel the 3 s which in this case gives: 2 x 5 mod 7 By inspection we have the solution x 6 mod 7 From this x 6 mod 7 we have What are values of t? x 6 7t where t is an integer to this congruence. Since we only have 3 solutions so t 0, and 2. By substituting these values t 0, and 2 into x 6 7t we have as

12 Chapter 3: Theory of Modular Arithmetic 36 x 6, 3, 20 mod 2 These are the 3 incongruent solutions modulo 2. You can check these by substituting them into the given linear congruence 6x 5 mod 2. Generally it is easier to divide through by the gcd a, n to find possible solutions of ax b mod n to work with. because then we are dealing with a smaller modulus which is simpler C4 Unique s How many solutions does the general linear congruence have if gcd a, n? ax b mod n Just one, a unique solution because g is the number of solutions of ax b mod n provided g divides b. We can write this as a general result. Corollary (3.9). If gcd a, n then the linear congruence ax b mod n has a unique solution modulo n. Proof. Applying Proposition (3.6) with g : ax b mod n has exactly g solutions provided g b where g gcd a, n We are given g gcd a, n and b so we have a unique solution to ax b mod n. Example 8 Solve the linear congruence: 6 x mod 3

13 Chapter 3: Theory of Modular Arithmetic 37 Since gcd6, 3 6 x mod 3 so we have a unique solution modulo 3. The congruence means that 3k 6x 3k implies x where k is an integer 6 35 We choose k so that x is an integer. Let k 5 then x. Hence 6 In ordinary algebra when we have 6x x mod 3 x. This x 6 6 is the inverse 6 of 6. Similarly, the unique solution of the above linear congruence 6x mod 3 x mod 3 We call this x mod 3 the (multiplicative) inverse of 6 modulo 3. C5 Multiplicative Inverse is Definition (3.20). If ax mod n then the unique solution of this congruence is called the multiplicative inverse of a modulo n and is denoted by a mod n In Example 0 we had 2x mod 5 x 3 mod 5 Therefore we write this in compact notation as 2 3 mod 5. In the exercises we will show that a mod n has an inverse a and n are relatively prime. Example 9 Determine the inverse of 3 mod 4. To find the inverse means we need to solve 3x mod 4. The gcd3, 4 we have a unique solution. By inspection x 5 mod 4 Because mod 4 Inverse of 3 modulo 4 is 5 modulo 4 or in notation form 3 5 mod 4.. so

14 Chapter 3: Theory of Modular Arithmetic 38 Example 20 Determine the inverse of 3 modulo 5. In this case we need to solve 3x mod 5. Note that the not divide into so there are no solutions to this congruence 3x mod 5. Therefore 3 modulo 5 has no inverse. gcd 3, 5 3 but 3 does It is critical that a mod n has an inverse if and only if a and n are relatively prime. This implies that only the relative prime integers to n have inverses. Which integers have inverses modulo 0?, 3, 7 and 9 The integers 2, 4, 5, 6, 8 and 0 will not have inverses modulo 0 because they are not relatively prime with 0. SUMMARY (3.5) ax b mod n has solutions g b where g gcd a, n. The multiplicative inverse of a modulo n is the unique solution x mod n of ax mod n and is denoted by a mod n.

2x 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?

2x 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 information

CHAPTER 3. Congruences. Congruence: definitions and properties

CHAPTER 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 information

Solution 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 (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 information

MATH 433 Applied Algebra Lecture 4: Modular arithmetic (continued). Linear congruences.

MATH 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 information

3.2 Solving linear congruences. v3

3.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 information

Elementary Number Theory. Franz Luef

Elementary Number Theory. Franz Luef Elementary Number Theory Congruences Modular Arithmetic Congruence The notion of congruence allows one to treat remainders in a systematic manner. For each positive integer greater than 1 there is an arithmetic

More information

Part V. Chapter 19. Congruence of integers

Part 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 information

12x + 18y = 50. 2x + v = 12. (x, v) = (6 + k, 2k), k Z.

12x + 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 information

COMP239: Mathematics for Computer Science II. Prof. Chadi Assi EV7.635

COMP239: 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 information

Chapter 1 A Survey of Divisibility 14

Chapter 1 A Survey of Divisibility 14 Chapter 1 A Survey of Divisibility 14 SECTION C Euclidean Algorithm By the end of this section you will be able to use properties of the greatest common divisor (gcd) obtain the gcd using the Euclidean

More information

1 Overview and revision

1 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 information

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

Know 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 information

2 Arithmetic. 2.1 Greatest common divisors. This chapter is about properties of the integers Z = {..., 2, 1, 0, 1, 2,...}.

2 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 information

Chapter 3 Basic Number Theory

Chapter 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 information

4. Congruence Classes

4. 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 information

Lecture Notes. Advanced Discrete Structures COT S

Lecture 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 information

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic

11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic 11 Division Mod n, Linear Integer Equations, Random Numbers, The Fundamental Theorem of Arithmetic Bezout s Lemma Let's look at the values of 4x + 6y when x and y are integers. If x is -6 and y is 4 we

More information

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases

Lecture 2. The Euclidean Algorithm and Numbers in Other Bases Lecture 2. The Euclidean Algorithm and Numbers in Other Bases At the end of Lecture 1, we gave formulas for the greatest common divisor GCD (a, b), and the least common multiple LCM (a, b) of two integers

More information

M381 Number Theory 2004 Page 1

M381 Number Theory 2004 Page 1 M81 Number Theory 2004 Page 1 [[ Comments are written like this. Please send me (dave@wildd.freeserve.co.uk) details of any errors you find or suggestions for improvements. ]] Question 1 20 = 2 * 10 +

More information

Homework #2 solutions Due: June 15, 2012

Homework #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 information

Modular Arithmetic Instructor: Marizza Bailey Name:

Modular 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 information

Practice Number Theory Problems

Practice Number Theory Problems Massachusetts Institute of Technology Handout 9 6.857: Network and Computer Security March 21, 2013 Professor Ron Rivest Due: N/A Problem 3-1. GCD Practice Number Theory Problems (a) Compute gcd(85, 289)

More information

Commutative Rings and Fields

Commutative Rings and Fields Commutative Rings and Fields 1-22-2017 Different algebraic systems are used in linear algebra. The most important are commutative rings with identity and fields. Definition. A ring is a set R with two

More information

2.3 In modular arithmetic, all arithmetic operations are performed modulo some integer.

2.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 information

For your quiz in recitation this week, refer to these exercise generators:

For your quiz in recitation this week, refer to these exercise generators: Monday, Oct 29 Today we will talk about inverses in modular arithmetic, and the use of inverses to solve linear congruences. For your quiz in recitation this week, refer to these exercise generators: GCD

More information

Definition For a set F, a polynomial over F with variable x is of the form

Definition 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 information

Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have

Proof 1: Using only ch. 6 results. Since gcd(a, b) = 1, we have Exercise 13. Consider positive integers a, b, and c. (a) Suppose gcd(a, b) = 1. (i) Show that if a divides the product bc, then a must divide c. I give two proofs here, to illustrate the different methods.

More information

MATH 4400 SOLUTIONS TO SOME EXERCISES. 1. Chapter 1

MATH 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 information

Math 131 notes. Jason Riedy. 6 October, Linear Diophantine equations : Likely delayed 6

Math 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 information

a the relation arb is defined if and only if = 2 k, k

a 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 information

This exam contains 5 pages (including this cover page) and 4 questions. The total number of points is 100. Grade Table

This exam contains 5 pages (including this cover page) and 4 questions. The total number of points is 100. Grade Table MAT115A-21 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 information

NUMBER 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: 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 information

MATH 215 Final. M4. For all a, b in Z, a b = b a.

MATH 215 Final. M4. For all a, b in Z, a b = b a. MATH 215 Final We will assume the existence of a set Z, whose elements are called integers, along with a well-defined binary operation + on Z (called addition), a second well-defined binary operation on

More information

ALGEBRA. 1. Some elementary number theory 1.1. Primes and divisibility. We denote the collection of integers

ALGEBRA. 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 information

Congruences. September 16, 2006

Congruences. 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 information

MATH 361: NUMBER THEORY FOURTH LECTURE

MATH 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 information

3.7 Non-linear Diophantine Equations

3.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 information

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time.

This is a recursive algorithm. The procedure is guaranteed to terminate, since the second argument decreases each time. 8 Modular Arithmetic We introduce an operator mod. Let d be a positive integer. For c a nonnegative integer, the value c mod d is the remainder when c is divided by d. For example, c mod d = 0 if and only

More information

Number Theory Proof Portfolio

Number 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 information

Elementary Number Theory Review. Franz Luef

Elementary 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 information

Math From Scratch Lesson 20: The Chinese Remainder Theorem

Math From Scratch Lesson 20: The Chinese Remainder Theorem Math From Scratch Lesson 20: The Chinese Remainder Theorem W. Blaine Dowler January 2, 2012 Contents 1 Relatively Prime Numbers 1 2 Congruence Classes 1 3 Algebraic Units 2 4 Chinese Remainder Theorem

More information

Discrete Mathematics and Probability Theory Fall 2018 Alistair Sinclair and Yun Song Note 6

Discrete 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 information

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Solutions Warm-up Problems 1. What is a prime number? Give an example of an even prime number and an odd prime number. A prime number

More information

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 3

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 3 CS 70 Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 3 Modular Arithmetic In several settings, such as error-correcting codes and cryptography, we sometimes wish to work over a smaller

More information

The Euclidean Algorithm and Multiplicative Inverses

The Euclidean Algorithm and Multiplicative Inverses 1 The Euclidean Algorithm and Multiplicative Inverses Lecture notes for Access 2009 The Euclidean Algorithm is a set of instructions for finding the greatest common divisor of any two positive integers.

More information

Integers modulo N. Geoff Smith c 1998

Integers modulo N. Geoff Smith c 1998 Integers modulo N Geoff Smith c 1998 Divisibility Suppose that a, b Z. We say that b divides a exactly when there is c Zsuch that a = bc. We express the fact that b divides a in symbols by writing b a.

More information

THESIS. Presented in Partial Fulfillment of the Requirements for the Degree Master of Science in the Graduate School of The Ohio State University

THESIS. Presented in Partial Fulfillment of the Requirements for the Degree Master of Science in the Graduate School of The Ohio State University The Hasse-Minkowski Theorem in Two and Three Variables THESIS Presented in Partial Fulfillment of the Requirements for the Degree Master of Science in the Graduate School of The Ohio State University By

More information

Number Theory. CSS322: Security and Cryptography. Sirindhorn International Institute of Technology Thammasat University CSS322. Number Theory.

Number 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 information

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST

MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST MATH 115, SUMMER 2012 LECTURE 4 THURSDAY, JUNE 21ST JAMES MCIVOR Today we enter Chapter 2, which is the heart of this subject. Before starting, recall that last time we saw the integers have unique factorization

More information

An integer p is prime if p > 1 and p has exactly two positive divisors, 1 and p.

An 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 information

Math Homework # 4

Math Homework # 4 Math 446 - Homework # 4 1. Are the following statements true or false? (a) 3 5(mod 2) Solution: 3 5 = 2 = 2 ( 1) is divisible by 2. Hence 2 5(mod 2). (b) 11 5(mod 5) Solution: 11 ( 5) = 16 is NOT divisible

More information

Chuck Garner, Ph.D. May 25, 2009 / Georgia ARML Practice

Chuck 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 Warm-Up Problem Problem Find all positive

More information

7.2 Applications of Euler s and Fermat s Theorem.

7.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 information

The Chinese Remainder Theorem

The Chinese Remainder Theorem Sacred Heart University piazzan@mail.sacredheart.edu March 29, 2018 Divisibility Divisibility We say a divides b, denoted as a b, if there exists k Z such that ak = b. Example: Consider 2 6. Then k = 3

More information

Elementary Properties of the Integers

Elementary Properties of the Integers Elementary Properties of the Integers 1 1. Basis Representation Theorem (Thm 1-3) 2. Euclid s Division Lemma (Thm 2-1) 3. Greatest Common Divisor 4. Properties of Prime Numbers 5. Fundamental Theorem of

More information

Math 109 HW 9 Solutions

Math 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 information

Number Theory. Introduction

Number Theory. Introduction Number Theory Introduction Number theory is the branch of algebra which studies the properties of the integers. While we may from time to time use real or even complex numbers as tools to help us study

More information

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...}

WORKSHEET ON NUMBERS, MATH 215 FALL. We start our study of numbers with the integers: N = {1, 2, 3,...} WORKSHEET ON NUMBERS, MATH 215 FALL 18(WHYTE) We start our study of numbers with the integers: Z = {..., 2, 1, 0, 1, 2, 3,... } and their subset of natural numbers: N = {1, 2, 3,...} For now we will not

More information

1. multiplication is commutative and associative;

1. 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 information

Ch 4.2 Divisibility Properties

Ch 4.2 Divisibility Properties Ch 4.2 Divisibility Properties - Prime numbers and composite numbers - Procedure for determining whether or not a positive integer is a prime - GCF: procedure for finding gcf (Euclidean Algorithm) - Definition:

More information

Chapter 5: The Integers

Chapter 5: The Integers c Dr Oksana Shatalov, Fall 2014 1 Chapter 5: The Integers 5.1: Axioms and Basic Properties Operations on the set of integers, Z: addition and multiplication with the following properties: A1. Addition

More information

5: The Integers (An introduction to Number Theory)

5: The Integers (An introduction to Number Theory) c Oksana Shatalov, Spring 2017 1 5: The Integers (An introduction to Number Theory) The Well Ordering Principle: Every nonempty subset on Z + has a smallest element; that is, if S is a nonempty subset

More information

CS 5319 Advanced Discrete Structure. Lecture 9: Introduction to Number Theory II

CS 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 information

Rings of Residues. S. F. Ellermeyer. September 18, ; [1] m

Rings of Residues. S. F. Ellermeyer. September 18, ; [1] m Rings of Residues S F Ellermeyer September 18, 2006 If m is a positive integer, then we obtain the partition C = f[0] m ; [1] m ; : : : ; [m 1] m g of Z into m congruence classes (This is discussed in

More information

Mathematics of Cryptography Part I

Mathematics of Cryptography Part I CHAPTER 2 Mathematics of Crptograph Part I (Solution to Practice Set) Review Questions 1. The set of integers is Z. It contains all integral numbers from negative infinit to positive infinit. The set of

More information

8 Primes and Modular Arithmetic

8 Primes and Modular Arithmetic 8 Primes and Modular Arithmetic 8.1 Primes and Factors Over two millennia ago already, people all over the world were considering the properties of numbers. One of the simplest concepts is prime numbers.

More information

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I

Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I Intermediate Math Circles February 29, 2012 Linear Diophantine Equations I Diophantine equations are equations intended to be solved in the integers. We re going to focus on Linear Diophantine Equations.

More information

Number Theory Math 420 Silverman Exam #1 February 27, 2018

Number Theory Math 420 Silverman Exam #1 February 27, 2018 Name: Number Theory Math 420 Silverman Exam #1 February 27, 2018 INSTRUCTIONS Read Carefully Time: 50 minutes There are 5 problems. Write your name neatly at the top of this page. Write your final answer

More information

ax b mod m. has a solution if and only if d b. In this case, there is one solution, call it x 0, to the equation and there are d solutions x m d

ax b mod m. has a solution if and only if d b. In this case, there is one solution, call it x 0, to the equation and there are d solutions x m d 10. Linear congruences In general we are going to be interested in the problem of solving polynomial equations modulo an integer m. Following Gauss, we can work in the ring Z m and find all solutions to

More information

Integers and Division

Integers 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 information

MATH Fundamental Concepts of Algebra

MATH Fundamental Concepts of Algebra MATH 4001 Fundamental Concepts of Algebra Instructor: Darci L. Kracht Kent State University April, 015 0 Introduction We will begin our study of mathematics this semester with the familiar notion of even

More information

Q 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?

Q 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 information

Solutions to Section 2.1 Homework Problems S. F. Ellermeyer

Solutions to Section 2.1 Homework Problems S. F. Ellermeyer Solutions to Section 21 Homework Problems S F Ellermeyer 1 [13] 9 = f13; 22; 31; 40; : : :g [ f4; 5; 14; : : :g [3] 10 = f3; 13; 23; 33; : : :g [ f 7; 17; 27; : : :g [4] 11 = f4; 15; 26; : : :g [ f 7;

More information

CHAPTER 6. Prime Numbers. Definition and Fundamental Results

CHAPTER 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 information

STEP Support Programme. Hints and Partial Solutions for Assignment 17

STEP Support Programme. Hints and Partial Solutions for Assignment 17 STEP Support Programme Hints and Partial Solutions for Assignment 7 Warm-up You need to be quite careful with these proofs to ensure that you are not assuming something that should not be assumed. For

More information

3 The fundamentals: Algorithms, the integers, and matrices

3 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 information

Chapter 5. Number Theory. 5.1 Base b representations

Chapter 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 information

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties:

A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties: Byte multiplication 1 Field arithmetic A field F is a set of numbers that includes the two numbers 0 and 1 and satisfies the properties: F is an abelian group under addition, meaning - F is closed under

More information

Definition 6.1 (p.277) A positive integer n is prime when n > 1 and the only positive divisors are 1 and n. Alternatively

Definition 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 information

Number Theory Solutions Packet

Number Theory Solutions Packet Number Theory Solutions Pacet 1 There exist two distinct positive integers, both of which are divisors of 10 10, with sum equal to 157 What are they? Solution Suppose 157 = x + y for x and y divisors of

More information

AN ALGEBRAIC PROOF OF RSA ENCRYPTION AND DECRYPTION

AN 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 information

Notes on Systems of Linear Congruences

Notes 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 information

Chapter 5. Modular arithmetic. 5.1 The modular ring

Chapter 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 information

Outline. Number Theory and Modular Arithmetic. p-1. Definition: Modular equivalence a b [mod n] (a mod n) = (b mod n) n (a-b)

Outline. Number Theory and Modular Arithmetic. p-1. Definition: Modular equivalence a b [mod n] (a mod n) = (b mod n) n (a-b) Great Theoretical Ideas In CS Victor Adamchik CS - Lecture Carnegie Mellon University Outline Number Theory and Modular Arithmetic p- p Working modulo integer n Definitions of Z n, Z n Fundamental lemmas

More information

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers

Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Math Circle Beginners Group February 28, 2016 Euclid and Prime Numbers Warm-up Problems 1. What is a prime number? Give an example of an even prime number and an odd prime number. (a) Circle the prime

More information

10 Problem 1. The following assertions may be true or false, depending on the choice of the integers a, b 0. a "

10 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 information

Intermediate Math Circles February 26, 2014 Diophantine Equations I

Intermediate Math Circles February 26, 2014 Diophantine Equations I Intermediate Math Circles February 26, 2014 Diophantine Equations I 1. An introduction to Diophantine equations A Diophantine equation is a polynomial equation that is intended to be solved over the integers.

More information

7. Prime Numbers Part VI of PJE

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 information

Solving the general quadratic congruence. y 2 Δ (mod p),

Solving the general quadratic congruence. y 2 Δ (mod p), Quadratic Congruences Solving the general quadratic congruence ax 2 +bx + c 0 (mod p) for an odd prime p (with (a, p) = 1) is equivalent to solving the simpler congruence y 2 Δ (mod p), where Δ = b 2 4ac

More information

Introduction to Cryptology. Lecture 19

Introduction to Cryptology. Lecture 19 Introduction to Cryptology Lecture 19 Announcements HW6 due today HW7 due Thursday 4/20 Remember to sign up for Extra Credit Agenda Last time More details on AES/DES (K/L 6.2) Practical Constructions of

More information

With Question/Answer Animations. Chapter 4

With Question/Answer Animations. Chapter 4 With Question/Answer Animations Chapter 4 Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their properties. Key ideas in number theory include divisibility

More information

Basic elements of number theory

Basic 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 information

Basic elements of number theory

Basic 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 information

SOLUTIONS Math 345 Homework 6 10/11/2017. Exercise 23. (a) Solve the following congruences: (i) x (mod 12) Answer. We have

SOLUTIONS 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 information

Number Theory. Modular Arithmetic

Number 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 information

Part I, Number Systems. CS131 Mathematics for Computer Scientists II Note 1 INTEGERS

Part I, Number Systems. CS131 Mathematics for Computer Scientists II Note 1 INTEGERS CS131 Part I, Number Systems CS131 Mathematics for Computer Scientists II Note 1 INTEGERS The set of all integers will be denoted by Z. So Z = {..., 2, 1, 0, 1, 2,...}. The decimal number system uses the

More information

NOTES ON SIMPLE NUMBER THEORY

NOTES 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 information

Lecture notes: Algorithms for integers, polynomials (Thorsten Theobald)

Lecture 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 information

CSE 20: Discrete Mathematics

CSE 20: Discrete Mathematics Spring 2018 Summary So far: Today: Logic and proofs Divisibility, modular arithmetics Number Systems More logic definitions and proofs Reading: All of Chap. 1 + Chap 4.1, 4.2. Divisibility P = 5 divides

More information

The Chinese Remainder Theorem

The Chinese Remainder Theorem Sacred Heart University DigitalCommons@SHU Academic Festival Apr 20th, 9:30 AM - 10:45 AM The Chinese Remainder Theorem Nancirose Piazza Follow this and additional works at: http://digitalcommons.sacredheart.edu/acadfest

More information