Mathematics of Cryptography Part I

Size: px
Start display at page:

Download "Mathematics of Cryptography Part I"

Transcription

1 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 residues modulo n is Z n. It contains integers from 0 to n 1. The set Z has non-negative (positive and zero) and negative integers; the set Z n has onl non-negative integers. To map a nonnegative integer from Z to Z n, we need to divide the integer b n and use the remainder; to map a negative integer from Z to Z n, we need to repeatedl add n to the integer to move it to the range 0 to n We mentioned four properties: Propert 1: if a 1, then a ±1. Propert 2: if a b and b a, then a ±b. Propert 3: if a b and b c, then a c. Propert 4: if a b and a c, then a (m b n c), where m and n are arbitrar integers. 3. The number 1 is an integer with onl one divisor, itself. A prime has onl two divisors: 1 and itself. For eample, the prime 7 has onl two divisor 7 and 1. A composite has more than two divisors. For eample, the composite 42 has several divisors: 1, 2, 3, 6, 7, 14, 21, and The greatest common divisor of two positive integers, gcd (a, b), is the largest positive integer that divides both a and b. The Euclidean algorithm can find the greatest common divisor of two positive integers. 5. A linear Diophantine equation of two variables is of the form a b c. We need to find integer values for and that satisf the equation. This tpe of equation has either no solution or an infinite number of solutions. Let d gcd (a, b). If d does not divide c then the equation have no solitons. If d divides c, then we have an infinite number of solutions. One /. of them is called the particular solution; the rest, are called the general solutions. 1

2 2 6. The modulo operator takes an integer a from the set Z and a positive modulus n. The operator creates a nonnegative residue, which is the remainder of dividing a b n. We mentioned three properties for the modulo operator: First: (a b) mod n [(a mod n) (b mod n)] mod n Second: (a b) mod n [(a mod n) (b mod n)] mod n Third: (a b) mod n [(a mod n) (b mod n)] mod n 7. A residue class [a] is the set of integers congruent modulo n. It is the set of all integers such that a (mod n). In each set, there is one element called the least (nonnegative) residue. The set of all of these least residues is Z n. 8. The set Z n is the set of all positive integer between 0 and n 1. The set Z n is the set of all integers between 0 and n 1 that are relativel prime to n. Each element in Z n has an additive inverse; each element in Z n has a multiplicative inverse. The etended Euclidean algorithm is used to find the multiplicative inverses in Z n. 9. A matri is a rectangular arra of l m elements, in which l is the number of rows and m is the number of columns. If a matri has onl one row (l 1), it is called a row matri; if it has onl one column (m 1), it is called a column matri. A square matri is a matri with the same number of rows and columns (l m). The determinant of a square matri A is a scalar defined in linear algebra. The multiplicative inverse of a square matri eists onl if its determinant has a multiplicative inverse in the corresponding set. 10. A linear equation is an equation in which the power of each variable is 1. A linear congruence equation is a linear equation in which calculations are done modulo n. An equation of tpe a b (mod n) can be solved b finding the multiplicative inverse of a. A set of linear equations can be solved b finding the multiplicative inverse of a matri. Eercises 11. a. It is false because b. It is true because c. It is true because 127 is a prime. d. It is true because e. It is false because f. It is false because 8 is greater than

3 3 a. gcd (88, 220) 44, as shown in the following table: q r 1 r 2 r b. gcd (300, 42) 6, as shown in the following table: q r 1 r 2 r c. gcd (24, 320) 8, as shown in the following table: q r 1 r 2 r d. gcd (401, 700) 1 (coprime), as shown in the following table: q r 1 r 2 r a. gcd (a, b, 16) gcd (gcd (a, b), 16) gcd (24, 16) 8 b. gcd (a, b, c, 16) gcd (gcd (a, b, c), 16) gcd (12, 16) 4 c. gcd (200, 180, 450) gcd (gcd (200, 180), 450) gcd (20, 450) 10 d. gcd (200, 180, 450, 600) gcd (gcd (200, 180, 450), 600) gcd (10, 600) 10

4 4 14. a. gcd (2n 1, n) gcd (n, 1) 1 b. gcd (201, 100) gcd ( , 100) 1 gcd (81, 40) gcd (2 40 1, 40) 1 gcd (501, 250) gcd ( , 250) a. gcd (3n 1, 2n 1) gcd (2n 1, n) 1 b. gcd (301, 201) gcd ( , ) 1 gcd (121, 81) gcd (3 40 1, ) a. We use the following table: q r 1 r 2 r s 1 s 2 s t 1 t 2 t gcd s t gcd (4, 7) 1 (4)(2) (7)( 1) 1 b. We use the following table: q r 1 r 2 r s 1 s 2 s t 1 t 2 t gcd s t gcd (291, 42) 3 (291)( 1) (42)(7) 3

5 5 c. We use the following table: q r 1 r 2 r s 1 s 2 s t 1 t 2 t gcd s t gcd (84, 320) 4 (84)( 19) (320)(5) 4 d. We use the following table: q r 1 r 2 r s 1 s 2 s t 1 t 2 t gcd s t gcd (400, 60) 20 (400)( 1) (60)(7) a. 22 mod 7 1 b. 291 mod c. 84 mod d. 400 mod a. ( ) mod 10 (273 mod mod 10) mod 10 (3 7) mod 10 0 mod 10 b. ( ) mod 10 (4223 mod mod 10) mod 10 (3 3) mod 10 6 mod 10 c. ( ) mod 12 (148 mod mod 12) mod 12 (4 8) mod 12 0 mod 12 d. ( ) mod 12 (2467 mod mod 12) mod 12 (7 5) mod 12 0 mod 12

6 6 19. a. (125 45) mod 10 (125 mod mod 10) mod 10 (5 5) mod 10 5 mod 10 b. (424 32) mod 10 (424 mod mod 10) mod 10 (4 2) mod 10 8 mod 10 c. (144 34) mod 10 (144 mod mod 10) mod 10 (4 4) mod 10 6 mod 10 d. (221 23) mod 10 (221 mod mod 10) mod 10 (1 3) mod 10 3 mod a. a mod 10 (a n 10 n a a 0 ) mod 10 [(a n 10 n ) mod 10 (a ) mod 10 a 0 mod 10] mod 10 [0 0 a 0 mod 10] a 0 mod 10 b. a mod 100 (a n 10 n a a 0 ) mod 10 [(a n 10 n ) mod 100 (a ) mod 100 a 0 mod 10] mod 10 [0 0 (a ) mod 100 a 0 mod 100] (a ) mod 100 a 0 mod 100 [a a 0 ] mod 100. c. Similarl a mod 1000 [a a a 0 ] mod a mod 5 (a n 10 n a a 0 ) mod 5 [(a n 10 n ) mod 5 (a ) mod 5 a 0 mod 5] mod 5 [0 0 a 0 mod 5] a 0 mod a mod 2 (a n 10 n a a 0 ) mod 2 [(a n 10 n ) mod 2 (a ) mod 2 a 0 mod 2] mod 2 [0 0 a 0 mod 2] a 0 mod a mod 4 (a n 10 n a a 0 ) mod 4 [(a n 10 n ) mod 4 (a ) mod 4 a 0 mod 4] mod 4 [0 0 (a ) mod 4 a 0 mod 4] (a a 0 ) mod a mod 8 (a n 10 n a a a 0 ) mod 8 [(a n 10 n ) mod 8 (a ) mod 8 (a ) mod 8 a 0 mod 8] mod 8 [0 0 (a ) mod 8 (a ) mod 8 a 0 mod 8] (a a a 0 ) mod a mod 9 (a n 10 n a a 0 ) mod 9 [(a n 10 n ) mod 9 (a ) mod 9 a 0 mod 9] mod 9 (a n a 1 a 0 ) mod a mod 7 (a n 10 n a a 0 ) mod 7 [(a n 10 n ) mod 7 (a ) mod 7 a 0 mod 7] mod 7 a 5 ( 2) a 4 ( 3) a 3 ( 1) a 2 (2) a 1 (3) a 0 (1)] mod 7 For eample, mod 13 [( 1)6 (2)3 (1)1 ( 2)4 ( 3)5 ( 1)3 (2)6 (3)7 (1)2] mod 7 3 mod 7

7 7 27. a mod 11 (a n 10 n a a 0 ) mod 11 [(a n 10 n ) mod 11 (a ) mod 11 a 0 mod 11] mod 11 a 3 ( 1) a 2 (1) a 1 ( 1) a 0 (1)] mod 11 For eample, mod 11 [(1)6 ( 1)3 (1)1 ( 1)4 (1)5 ( 1)3 (1)6 ( 1)7 (1)2] mod 11 8 mod 11 5 mod a mod 13 (a n 10 n a a 0 ) mod 13 [(a n 10 n ) mod 13 (a ) mod 13 a 0 mod 13] mod 13 a 5 (4) a 4 (3) a 3 ( 1) a 2 ( 4) a 1 ( 3) a 0 (1)] mod For eample, mod 13 [( 4)6 ( 3)3 (1)1 (4)4 (3)5 ( 1)3 ( 4)6 ( 3)7 (1)2] mod 13 3 mod 13 a. (A N) mod 26 (0 13) mod mod 26 N b. (A 6) mod 26 (0 6) mod 26 6 mod 26 G c. (Y 5) mod 26 (24 5) mod mod 26 T d. (C 10) mod 26 (2 10) mod 26 8 mod mod 26 S 30. (0, 0), (1, 19), (2, 18), (3, 17), (4, 16), (5, 15), (6, 14), (7, 13), (8, 12), (9, 11), (10, 10) 31. (1, 1), (3, 7), (9, 9), (11, 11), (13, 17), (19, 19) 32. a. We use the following table: q r 1 r 2 r t 1 t 2 t gcd t gcd (180, 38) has no inverse in Z 180.

8 8 b. We use the following table: q r 1 r 2 r t 1 t 2 t gcd gcd (180, 7) mod mod mod 180. t c. We use the following table: gcd (180, 132) has no inverse in Z 180. d. We use the following table: q r 1 r 2 r t 1 t 2 t gcd q r 1 r 2 r t 1 t 2 t gcd e. gcd (180, 24) has no inverse in Z 180. t t 33. a. We have a 25, b 10 and c 15. Since d gcd (a, b) 5 divides c, there is an infinite number of solutions. The reduced equation is We solve the equation 5s 2t 1 using the etended Euclidean algorithm to get s 1 and t 2. The particular and general solutions are Particular: General: 0 (c/d) s k 0 (c/d) t k (k is an integer) b. We have a 19, b 13 and c 20. Since d gcd (a, b) 1 and divides c, there is an infinite number of solutions. The reduced equation is We

9 9 solve the equation 19s 13t 1 to get s 2 and t 3. The particular and general solutions are Particular: General: 0 (c/d) s k 0 (c/d) t k (k is an integer) c. We have a 14, b 21 and c 77. Since d gcd (a, b) 7 divides c, there is an infinite number of solutions. The reduced equation is We solve the equation 2s 3t 1 to get s 1 and t 1. The particular and general solutions are Particular: General: 0 (c/d) s k 0 (c/d) t k (k is an integer) d. We have a 40, b 16 and c 88. Since d gcd (a, b) 8 divides c, there is an infinite number of solutions. The reduced equation is We solve the equation 5s 2t 1 to get s 1 and t 2. The particular and general solutions are Particular: General: 0 (c/d) s k 0 (c/d) t k (k is an integer) 34. a. Since gcd (15, 12) 3 and 3 does not divide 13, there is no solution. b. Since gcd (18, 30) 6 and 6 does not divide 20, there is no solution. c. Since gcd (15, 25) 5 and 5 does not divide 69, there is no solution. d. Since gcd (40, 30) 10 and 10 does not divide 98, there is no solution. 35. We have the equation We have a 39, b 15 and c 270. Since d gcd (a, b) 3 divides c, there is an infinite number of solutions. The reduced equation is We solve the equation 13s 5t 1: s 2 and t 5. The particular and general solutions are Particular: General: 0 (c/d) s k 0 (c/d) t k To find an acceptable solution (nonnegative values) for and, we need to start with negative values for k. Two acceptable solutions are k 35 5 and 5 k 36 0 and In each case, we follow three steps discussed in Section 2.4 of the tetbook.

10 10 a. Step 1: a 3, b 4, n 5 d gcd (a, n) 1 Since d divides b, there is onl one solution. Step 2: Reduction: 3 4 (mod 5) Step 3: 0 (3 1 4) (mod 5) 2 b. Step 1: a 4, b 4, n 6 d gcd (a, n) 2 Since d divides b, there are two solutions. Step 2: Reduction: 2 2 (mod 3) Step 3: 0 (2 1 2) (mod 3) / 2 4 c. Step 1: a 9, b 12, n 7 d gcd (a, n) 1 Since d divides b, there is onl one solution. Step 2: Reduction: 9 12 (mod 7) Step 3: 0 (9 1 12) (mod 7) (2 1 5) (mod 7) 4 d. Step 1: a 256, b 442, n 60 d gcd (a, n) 4 Since d does not divide b, there is no solution. 37. a (mod 5) 3 ( 5 4) (mod 5) 3 4 (mod 5) a 3, b 4, n 5 d gcd (a, n) 1 Since d divides b, there is onl one solution. Reduction: 3 4 (mod 5) 0 (3 1 4) (mod 5) 2

11 11 b (mod 6) 4 ( 6 4) (mod 6) 4 4 (mod 6) a 4, b 4, n 6 d gcd (a, n) 2 Since d divides b, there are two solutions. Reduction: 2 2 (mod 3) 0 (2 1 2) (mod 3) / 2 4 c (mod 7) 9 ( 4 12) (mod 7) 9 1 (mod 7) a 9, b 1, n 7 d gcd (a, n) 1 Since d divides b, there is onl one solution. Reduction: 9 1 (mod 7) 0 (9 1 1) (mod 7) 4 d (mod 50) (mod 50) a 232, b 206, n 50 d gcd (a, n) 2 Since d divides b, there are two solutions. Reduction: (mod 25) 16 3 (mod 25) 0 (16 1 3) (mod 25) / a. The result of multipling the first two matrices is a 1 1 matri, as shown below: ( ) mod 16 10

12 12 b. The result of multipling the second two matrices is a 3 3 matri, as shown below: a. The determinant and the inverse of matri A are shown below: 3 0 A det(a) 3 mod (det(a)) 1 7 mod A 1 7 A adj(a) b. Matri B has no inverse because det(b) ( ) mod 2 mod 10, which has no inverse in Z 10. c. The determinant and the inverse of matri C are shown below: C det(c) 3 mod C (det(c)) 1 7 mod 10 In this case, det(c) 3 mod 10; its inverse in Z 10 is 7 mod 10. It can proved that C C 1 I (identit matri). 40. Although we give the general method for ever case using matri multiplication, in cases a and c, there is no need for matri multiplication because the coefficient of (in a) or (in c) is actuall 0 in these two cases. These cases can be solved much easier.

13 13 a. In this particular case, the answer can be found easier because the coefficient of is 0 in the first equation.the solution is shown below: mod 5 2 mod 5 b. The solution is shown below: mod 7 2 mod 7 c. The solution is shown below: mod 7 1 mod 7 d. The solution is shown below: mod 8 1 mod 8

14 14

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

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

Definition: div Let n, d 0. We define ndiv d as the least integer quotient obtained when n is divided by d. That is if

Definition: div Let n, d 0. We define ndiv d as the least integer quotient obtained when n is divided by d. That is if Section 5. Congruence Arithmetic A number of computer languages have built-in functions that compute the quotient and remainder of division. Definition: div Let n, d 0. We define ndiv d as the least integer

More information

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

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

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

You don't have to be a mathematician to have a feel for numbers. John Forbes Nash, Jr.

You don't have to be a mathematician to have a feel for numbers. John Forbes Nash, Jr. Course Title: Real Analsis Course Code: MTH3 Course instructor: Dr. Atiq ur Rehman Class: MSc-II Course URL: www.mathcit.org/atiq/fa5-mth3 You don't have to be a mathematician to have a feel for numbers.

More information

Linear Equations in Linear Algebra

Linear Equations in Linear Algebra 1 Linear Equations in Linear Algebra 1.1 SYSTEMS OF LINEAR EQUATIONS LINEAR EQUATION,, 1 n A linear equation in the variables equation that can be written in the form a a a b 1 1 2 2 n n a a is an where

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

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

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

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

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

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

MATH 2112/CSCI 2112, Discrete Structures I Winter 2007 Toby Kenney Homework Sheet 5 Hints & Model Solutions

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

Math Theory of Number Homework 1

Math Theory of Number Homework 1 Math 4050 Theory of Number Homework 1 Due Wednesday, 015-09-09, in class Do 5 of the following 7 problems. Please only attempt 5 because I will only grade 5. 1. Find all rational numbers and y satisfying

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

Chapter 1 : The language of mathematics.

Chapter 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

. In particular if a b then N(

. In particular if a b then N( Gaussian Integers II Let us summarise what we now about Gaussian integers so far: If a, b Z[ i], then N( ab) N( a) N( b). In particular if a b then N( a ) N( b). Let z Z[i]. If N( z ) is an integer prime,

More information

Ma/CS 6a Class 2: Congruences

Ma/CS 6a Class 2: Congruences Ma/CS 6a Class 2: Congruences 1 + 1 5 (mod 3) By Adam Sheffer Reminder: Public Key Cryptography Idea. Use a public key which is used for encryption and a private key used for decryption. Alice encrypts

More information

Section 1.5 Formal definitions of limits

Section 1.5 Formal definitions of limits Section.5 Formal definitions of limits (3/908) Overview: The definitions of the various tpes of limits in previous sections involve phrases such as arbitraril close, sufficientl close, arbitraril large,

More information

A Readable Introduction to Real Mathematics

A Readable Introduction to Real Mathematics Solutions to selected problems in the book A Readable Introduction to Real Mathematics D. Rosenthal, D. Rosenthal, P. Rosenthal Chapter 7: The Euclidean Algorithm and Applications 1. Find the greatest

More 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

LESSON 35: EIGENVALUES AND EIGENVECTORS APRIL 21, (1) We might also write v as v. Both notations refer to a vector.

LESSON 35: EIGENVALUES AND EIGENVECTORS APRIL 21, (1) We might also write v as v. Both notations refer to a vector. LESSON 5: EIGENVALUES AND EIGENVECTORS APRIL 2, 27 In this contet, a vector is a column matri E Note 2 v 2, v 4 5 6 () We might also write v as v Both notations refer to a vector (2) A vector can be man

More information

Eigenvectors and Eigenvalues 1

Eigenvectors and Eigenvalues 1 Ma 2015 page 1 Eigenvectors and Eigenvalues 1 In this handout, we will eplore eigenvectors and eigenvalues. We will begin with an eploration, then provide some direct eplanation and worked eamples, and

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

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

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

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

Objective Type Questions

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

Signature: (In Ink) UNIVERSITY OF MANITOBA TEST 1 SOLUTIONS COURSE: MATH 2170 DATE & TIME: February 11, 2019, 16:30 17:15

Signature: (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 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

The set of integers will be denoted by Z = {, -3, -2, -1, 0, 1, 2, 3, 4, }

The 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

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

4 Powers of an Element; Cyclic Groups

4 Powers of an Element; Cyclic Groups 4 Powers of an Element; Cyclic Groups Notation When considering an abstract group (G, ), we will often simplify notation as follows x y will be expressed as xy (x y) z will be expressed as xyz x (y z)

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

M 340L CS Homework Set 1

M 340L CS Homework Set 1 M 340L CS Homework Set 1 Solve each system in Problems 1 6 by using elementary row operations on the equations or on the augmented matri. Follow the systematic elimination procedure described in Lay, Section

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 145 Algebra, Solutions to Assignment 4

MATH 145 Algebra, Solutions to Assignment 4 MATH 145 Algebra, Solutions to Assignment 4 1: a) Find the inverse of 178 in Z 365. Solution: We find s and t so that 178s + 365t = 1, and then 178 1 = s. The Euclidean Algorithm gives 365 = 178 + 9 178

More 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

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

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru Number Theory Marathon Mario Ynocente Castro, National University of Engineering, Peru 1 2 Chapter 1 Problems 1. (IMO 1975) Let f(n) denote the sum of the digits of n. Find f(f(f(4444 4444 ))). 2. Prove

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

Homework Notes Week 6

Homework Notes Week 6 Homework Notes Week 6 Math 24 Spring 24 34#4b The sstem + 2 3 3 + 4 = 2 + 2 + 3 4 = 2 + 2 3 = is consistent To see this we put the matri 3 2 A b = 2 into reduced row echelon form Adding times the first

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

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

Mathematics for Cryptography

Mathematics for Cryptography Mathematics for Cryptography Douglas R. Stinson David R. Cheriton School of Computer Science University of Waterloo Waterloo, Ontario, N2L 3G1, Canada March 15, 2016 1 Groups and Modular Arithmetic 1.1

More information

Algebra. Modular arithmetic can be handled mathematically by introducing a congruence relation on the integers described in the above example.

Algebra. Modular arithmetic can be handled mathematically by introducing a congruence relation on the integers described in the above example. Coding Theory Massoud Malek Algebra Congruence Relation The definition of a congruence depends on the type of algebraic structure under consideration Particular definitions of congruence can be made for

More 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

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

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru

Number Theory Marathon. Mario Ynocente Castro, National University of Engineering, Peru Number Theory Marathon Mario Ynocente Castro, National University of Engineering, Peru 1 2 Chapter 1 Problems 1. (IMO 1975) Let f(n) denote the sum of the digits of n. Find f(f(f(4444 4444 ))). 2. Prove

More information

MATH 3240Q Introduction to Number Theory Homework 4

MATH 3240Q Introduction to Number Theory Homework 4 If the Sun refused to shine I don t mind I don t mind If the mountains fell in the sea Let it be it ain t me Now if six turned out to be nine Oh I don t mind I don t mind Jimi Hendrix If Six Was Nine from

More information

Sub chapter 1. Fundamentals. 1)If Z 2 = 0,1 then (Z 2, +) is group where. + is addition modulo 2. 2) Z 2 Z 2 = (0,0),(0,1)(1,0)(1,1)

Sub chapter 1. Fundamentals. 1)If Z 2 = 0,1 then (Z 2, +) is group where. + is addition modulo 2. 2) Z 2 Z 2 = (0,0),(0,1)(1,0)(1,1) DISCRETE MATHEMATICS CODING THEORY Sub chapter. Fundamentals. )If Z 2 =, then (Z 2, +) is group where + is addition modulo 2. 2) Z 2 Z 2 = (,),(,)(,)(,) Written for the sake of simplicit as Z 2 Z 2 =,,,

More information

ELEMENTS OF NUMBER THEORY

ELEMENTS OF NUMBER THEORY ELEMENTS OF NUMBER THEORY Examination corner 1 one mark question in part A 1 - two mark question in part B 1 five mark OR 3mark+2 mark question in part C 1 two or four mark question in part E concepts

More information

Senior Math Circles Cryptography and Number Theory Week 2

Senior Math Circles Cryptography and Number Theory Week 2 Senior Math Circles Cryptography and Number Theory Week 2 Dale Brydon Feb. 9, 2014 1 Divisibility and Inverses At the end of last time, we saw that not all numbers have inverses mod n, but some do. We

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

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

then the hard copy will not be correct whenever your instructor modifies the assignments.

then the hard copy will not be correct whenever your instructor modifies the assignments. Assignments for Math 2030 then the hard copy will not be correct whenever your instructor modifies the assignments. exams, but working through the problems is a good way to prepare for the exams. It is

More information

Simultaneous Linear, and Non-linear Congruences

Simultaneous Linear, and Non-linear Congruences Simultaneous Linear, and Non-linear Congruences CIS002-2 Computational Alegrba and Number Theory David Goodwin david.goodwin@perisic.com 09:00, Friday 18 th November 2011 Outline 1 Polynomials 2 Linear

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

Wednesday, February 21. Today we will begin Course Notes Chapter 5 (Number Theory).

Wednesday, February 21. Today we will begin Course Notes Chapter 5 (Number Theory). Wednesday, February 21 Today we will begin Course Notes Chapter 5 (Number Theory). 1 Return to Chapter 5 In discussing Methods of Proof (Chapter 3, Section 2) we introduced the divisibility relation from

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

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

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

Polynomial and Rational Functions

Polynomial and Rational Functions Name Date Chapter Polnomial and Rational Functions Section.1 Quadratic Functions Objective: In this lesson ou learned how to sketch and analze graphs of quadratic functions. Important Vocabular Define

More information

CSE 20 DISCRETE MATH. Winter

CSE 20 DISCRETE MATH. Winter CSE 20 DISCRETE MATH Winter 2017 http://cseweb.ucsd.edu/classes/wi17/cse20-ab/ Today's learning goals Define and use the congruence modulo m equivalence relation Perform computations using modular arithmetic

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

LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS

LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS LECTURE 4: CHINESE REMAINDER THEOREM AND MULTIPLICATIVE FUNCTIONS 1. The Chinese Remainder Theorem We now seek to analyse the solubility of congruences by reinterpreting their solutions modulo a composite

More 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

Final Examination 201-NYC-05 - Linear Algebra I December 8 th, and b = 4. Find the value(s) of a for which the equation Ax = b

Final Examination 201-NYC-05 - Linear Algebra I December 8 th, and b = 4. Find the value(s) of a for which the equation Ax = b Final Examination -NYC-5 - Linear Algebra I December 8 th 7. (4 points) Let A = has: (a) a unique solution. a a (b) infinitely many solutions. (c) no solution. and b = 4. Find the value(s) of a for which

More information

4 Number Theory and Cryptography

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

Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Slides 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 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

Solutions to Problem Set 4 - Fall 2008 Due Tuesday, Oct. 7 at 1:00

Solutions to Problem Set 4 - Fall 2008 Due Tuesday, Oct. 7 at 1:00 Solutions to 8.78 Problem Set 4 - Fall 008 Due Tuesday, Oct. 7 at :00. (a Prove that for any arithmetic functions f, f(d = f ( n d. To show the relation, we only have to show this equality of sets: {d

More information

NUMBER THEORY AND CODES. Álvaro Pelayo WUSTL

NUMBER THEORY AND CODES. Álvaro Pelayo WUSTL NUMBER THEORY AND CODES Álvaro Pelayo WUSTL Talk Goal To develop codes of the sort can tell the world how to put messages in code (public key cryptography) only you can decode them Structure of Talk Part

More information

Mathematics 220 Homework 4 - Solutions. Solution: We must prove the two statements: (1) if A = B, then A B = A B, and (2) if A B = A B, then A = B.

Mathematics 220 Homework 4 - Solutions. Solution: We must prove the two statements: (1) if A = B, then A B = A B, and (2) if A B = A B, then A = B. 1. (4.46) Let A and B be sets. Prove that A B = A B if and only if A = B. Solution: We must prove the two statements: (1) if A = B, then A B = A B, and (2) if A B = A B, then A = B. Proof of (1): Suppose

More information

Chapter R REVIEW OF BASIC CONCEPTS. Section R.1: Sets

Chapter R REVIEW OF BASIC CONCEPTS. Section R.1: Sets Chapter R REVIEW OF BASIC CONCEPTS Section R.: Sets. The elements of the set {,,,, 0} are all the natural numbers from to 0 inclusive. There are 9 elements in the set, {,,,,, 7,, 9, 0}.. Each element of

More information

Coordinates for Projective Planes

Coordinates for Projective Planes Chapter 8 Coordinates for Projective Planes Math 4520, Fall 2017 8.1 The Affine plane We now have several eamples of fields, the reals, the comple numbers, the quaternions, and the finite fields. Given

More information

LINEAR CONGRUENCES AND LINEAR DIOPHANTINE EQUATIONS

LINEAR CONGRUENCES AND LINEAR DIOPHANTINE EQUATIONS LINEAR CONGRUENCES AND LINEAR DIOPHANTINE EQUATIONS MATH 422, CSUSM. SPRING 2009. AITKEN This document discusses methods and results related to solving linear congruences and 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

Ma/CS 6a Class 2: Congruences

Ma/CS 6a Class 2: Congruences Ma/CS 6a Class 2: Congruences 1 + 1 5 (mod 3) By Adam Sheffer Reminder: Public Key Cryptography Idea. Use a public key which is used for encryption and a private key used for decryption. Alice encrypts

More information

Analytic Geometry in Three Dimensions

Analytic Geometry in Three Dimensions Analtic Geometr in Three Dimensions. The Three-Dimensional Coordinate Sstem. Vectors in Space. The Cross Product of Two Vectors. Lines and Planes in Space The three-dimensional coordinate sstem is used

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

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

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

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

2. THE EUCLIDEAN ALGORITHM More ring essentials

2. THE EUCLIDEAN ALGORITHM More ring essentials 2. THE EUCLIDEAN ALGORITHM More ring essentials In this chapter: rings R commutative with 1. An element b R divides a R, or b is a divisor of a, or a is divisible by b, or a is a multiple of b, if there

More information

or just I if the set A is clear. Hence we have for all x in A the identity function I ( )

or just I if the set A is clear. Hence we have for all x in A the identity function I ( ) 3 Functions 46 SECTON E Properties of Composite Functions the end of this section ou will be able to understand what is meant b the identit function prove properties of inverse function prove properties

More information

Chapter 4 Finite Fields

Chapter 4 Finite Fields Chapter 4 Finite Fields Introduction will now introduce finite fields of increasing importance in cryptography AES, Elliptic Curve, IDEA, Public Key concern operations on numbers what constitutes a number

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

Two conventions for coordinate systems. Left-Hand vs Right-Hand. x z. Which is which?

Two conventions for coordinate systems. Left-Hand vs Right-Hand. x z. Which is which? walters@buffalo.edu CSE 480/580 Lecture 2 Slide 3-D Transformations 3-D space Two conventions for coordinate sstems Left-Hand vs Right-Hand (Thumb is the ais, inde is the ais) Which is which? Most graphics

More information

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography

Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography Course 2BA1: Trinity 2006 Section 9: Introduction to Number Theory and Cryptography David R. Wilkins Copyright c David R. Wilkins 2006 Contents 9 Introduction to Number Theory and Cryptography 1 9.1 Subgroups

More information

FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures AB = BA = I,

FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures AB = BA = I, FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING Lectures MODULE 7 MATRICES II Inverse of a matri Sstems of linear equations Solution of sets of linear equations elimination methods 4

More information

Number Theory and Group Theoryfor Public-Key Cryptography

Number Theory and Group Theoryfor Public-Key Cryptography Number Theory and Group Theory for Public-Key Cryptography TDA352, DIT250 Wissam Aoudi Chalmers University of Technology November 21, 2017 Wissam Aoudi Number Theory and Group Theoryfor Public-Key Cryptography

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 501 Discrete Mathematics. Lecture 6: Number theory. German University Cairo, Department of Media Engineering and Technology.

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

Algebra for error control codes

Algebra for error control codes Algebra for error control codes EE 387, Notes 5, Handout #7 EE 387 concentrates on block codes that are linear: Codewords components are linear combinations of message symbols. g 11 g 12 g 1n g 21 g 22

More information

Math 109 September 1, 2016

Math 109 September 1, 2016 Math 109 September 1, 2016 Question 1 Given that the proposition P Q is true. Which of the following must also be true? A. (not P ) or Q. B. (not Q) implies (not P ). C. Q implies P. D. A and B E. A, B,

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