MAT Modular arithmetic and number theory. Modular arithmetic

Size: px
Start display at page:

Download "MAT Modular arithmetic and number theory. Modular arithmetic"

Transcription

1 Modular arithmetic 1 Modular arithmetic may seem like a new and strange concept at first The aim of these notes is to describe it in several different ways, in the hope that you will find at least one of them easy to understand We also give some examples to show that it is not such a new concept after all And finally, we construct some groups and use this machinery to derive some results in number theory Modular arithmetic could also be useful because it gives a concrete example of what a coset is 2 Arithmetic mod 2 Imagine writing two columns of integers as follows: Any integer z will eventually appear in one (and only one) of the columns; so we have a partition of the integers Of course, this is just the familiar partition into odds and evens We can write any integer on the left as 2k, for some integer k; while any integer on the right can be written as 2k + 1 Now imagine taking two numbers from the left column (two even numbers, say 8 and 14); if we add them, we get another even number (22); and we can prove that this holds in general if our two numbers are 2x and 2y, then their sum is 2x + 2y = 2(x + y) On the other hand, suppose we add an odd number, 2m + 1, to an even one, 2n We get 2m n = 2(m + n) + 1, which is odd If we multiply two odd numbers, say 2x + 1 and 2y + 1, we get (2x + 1)(2y + 1) = 4xy + 2x + 2y + 1 = 2(2xy + x + y) + 1, which is again odd 1

2 We can summarise this as even + even = even, odd+even = odd, odd odd = odd, and in general we have the familiar rules: even + even = even, even + odd = odd, odd + odd = even even even = even, even odd = even, odd odd = odd This is arithmetic modulo 2, where we look not at the integer itself, but rather at which equivalence class (odd or even) it falls into Two integers x and y are equivalent up to a multiple of 2 or congruent (mod 2) if they are in the same column: starting from x and repeatedly adding (or subtracting) 2, we eventually get to y Stated another way, x y is a multiple of two, and either both are odd, or both are even they have the same parity If x y is not a multiple of two, then they have different parity There is yet another way of looking at arithmetic mod 2 Since every integer z has the same parity as either 0 or 1, we can restrict ourselves to just {0, 1}: z 0 (mod 2) iff z = 0 + 2k, for some integer k; z 1 (mod 2) iff z = 1 + 2k, for some integer k That is, we divide z by 2, and work with the remainder (which is either 0 or 1) Addition of a and b (mod 2), denoted + 2, just means look at the parity of a+b, or add a and b, divide by 2, and look at the remainder Of course 2, ie multiplication mod 2, is similar 3 Arithmetic mod n We can generalise all this, replacing 2 by some fixed integer n We are now partitioning the integers into n columns: kn + 0 kn + 1 kn + 2 kn + (n 2) kn + (n 1) 2n + 0 2n + 1 2n + 2 2n + (n 2) 2n + (n 1) n + 0 n + 1 n + 2 n + (n 2) n + (n 1) n 2 n 1 n + 0 n + 1 n + 2 n + (n 2) n + (n 1) 2n + 0 2n + 1 2n + 2 2n + (n 2) 2n + (n 1) In general, we say that z and z + kn are equivalent up to a multiple of n, or just congruent modulo n (where z and k are integers) 2

3 4 Defn Let x and y be integers We say that x and y are congruent modulo n iff x y = kn for some k Z We denote this by x y (mod n) or x = y (mod n) 5 Congruence mod n is easily seen to be an equivalence relation, and it partitions the integers into n equivalence classes (the n columns that we saw above) [0] n := {0 + kn : k Z} [1] n := {1 + kn : k Z} [n 1] n := {n 1 + kn : k Z} When there is no risk of confusion, we write [x] instead of [x] n 6 We can define binary operations on these equivalence classes in a natural way: [x] n + n [y] n := [x + y] n and [x] n n [y] n := [xy] n For example, working modulo 10 we have: [4] [9] 10 = [13] 10 = [3] 10 Similarly [4] [9] 10 = [36] 10 = [6] 10 An equivalence class has many different representations eg [4] 10 = [14] 10 = [ 276] 10, and [37] 10 = [267] 10 = [ 93] 10 The next result assures us that when we add these two equivalence classes, we always get the same result, ie [4 + 37] 10 = [ ] 10 = [14 93] 10 = In general, if [x] = [x ] and [y] = [y ], then [x + y] = [x + y ] and [xy] = [x y ] 7 Proposition If x x (mod n) and y y (mod n), then x + y x + y (mod n) and xy x y (mod n) Proof: Suppose x = x + k x n and y = y + k y n Then x + y = (x + y ) + (k x + k y )n, so x + y x + y (mod n) We also have xy = x y + (k x k y n + k x y + k y x )n, so xy x y (mod n) 8 As we saw above, arithmetic modulo 10 simply means that we consider only the last digit of a number (when the number is positive) eg = 7 (mod 10) Another case that we are familiar with is arithmetic modulo 12, which is how we calculate time if it is 8 o clock, and I am meeting someone 7 hours 3

4 from now, then we will meet at 3 o clock, since = 15 = 3 (mod 12) If it helps you, you can think of arithmetic mod n as if you are working with an n-hour clock Exercises 1 What is (mod 10)? What is (mod 10)? 2 I am thinking of an integer x; what is 230 x (mod 10)? 230 x (mod 2)? Can you determine 230 x (mod 3) without knowing x? How about 230 x (mod 23)? 3 What is (mod 7)? What is (mod 7)? 4 What is 2 (mod 717)? The point of exercise 3, for example, is that we don t need to add or multiply 775 and 773 Since (mod 7) and (mod 7), it is enough to work out and 5 3 What time is it one hour before midnight? Two hours before midnight? We can write these facts as 1 11 (mod 12), 2 10 (mod 12) and, in general, 1 n 1 (mod n) and j n j (mod n) 9 Proposition Z n := {[0], [1], [2],, [n 1]} is a group under addition Proof: We first show that every integer is in one of these n classes By the Euclidean algorithm, any integer z can be written as mn + r, for some 0 r n 1 So every integer is congruent (mod n) to one of {0, 1,, n 1} Closure If [x] and [y] are two elements of Z n, then x and y are integers, so x + y is an integer, and so [x + y] is one of the classes above Associativity This follows from associativity in Z: ([x] + [y]) + [z] = [x + y] + [z] = [(x + y) + z] (by definition of + in Z n ) = [x + (y + z)] (by associativity in Z) = [x] + [y + z] = [x] + ([y] + [z]) (by definition of + in Z n ) Identity [0] is clearly an identity, since for any [x], we have [0] + [x] = [0 + x] = [x] = [x + 0] = [x] + [0] Inverses For any [x] Z n, [ x] is also in Z n, and [ x] + [x] = [ x + x] = [0] = [x + ( x)] = [x] + [ x], so every element has an inverse in Z n 4

5 10 The inverse of j under addition (mod n) is j What about the inverse under multiplication (mod n)? Suppose there is some i such that ij 1 (mod n); then whenever jk jm, we have ijk ijm and so k m (mod n); that is, we can use i to cancel out j, and we write i = j 1 In particular, if j has an inverse, then jk 0 (mod n) implies j 1 jk j 1 0, that is k 0 (mod n) 5 Write out the multiplication tables mod 2, mod 3 and mod 4 Do all the numbers have an inverse? 6 What is 2 1 (mod 3)? What is 2 1 (mod 9)? Does 2 1 (mod 6) exist? As you can see, 2 has an inverse modulo 3 and modulo 9, but not modulo 4 or 6 Why is this? The problem is that 2 divides 6; so for example 2 3 = 6 0 (mod 6), even though 2 0 and 3 0 If 2 had an inverse, then we could deduce that (mod 6), but this gives us 3 0 (mod 6), which is clearly false Now 4 does not have an inverse mod 6, even though it does not divide 6; but it has a common factor with 6 So although we cannot factor 6 as 4 x, we can factor 2 6 as 4 3, where 4 0 and 3 0 (mod 6) The numbers that have no common factor with 6 all have an inverse, and in fact they form a group, under multiplication mod 6 11 Defn Two integers m and n are relatively prime or co-prime if they have no common prime factor 12 So for example, is co-prime with , but not with (since 11 is a common factor) In general, let m = p a 1 1 p as s and n = q b 1 1 qv bv be the decompositions of m and n into primes Then m and n are co-prime iff the p i s are all different from the q j s 13 Defn The multiplicative group mod n, denoted Z n, consists of all the integers m such that 0 < m < n, and m is co-prime to n 14 You can check that Z 5 = {1, 2, 3, 4}, Z 6 = {1, 5}, Z 7 = {1, 2, 3, 4, 5, 6}, Z 8 = {1, 3, 5, 7}, Z 9 = {1, 2, 4, 5, 7, 8} So, even if y > x, Z y could have less elements than Z x Note also that, if p is prime, Z p is all of {1, 2,, p 1} Strictly speaking, the elements of Z n are not numbers, but congruence classes mod n So Z 5 = {[1] 5, [2] 5, [3] 5, [4] 5 }, Z 6 = {[1] 6, [5] 6 }, etc The result below assures us that, say, since 5 is co-prime to 6, all the numbers in [5] 6 are co-prime to 6 5

6 15 Proposition Let m m (mod n) Then m is co-prime to n iff m is co-prime to n Proof: If m m (mod n), then m = m + kn, for some integer k We will show that if m is not co-prime to n, then neither is m So let z be a common factor of m and n, say m = za and n = zb Then m = za + kzb, so z is also a common factor of m and n Similarly, if m is not co-prime to n, then neither is m We now show that Z n is, in fact, a group The proof is similar to that of Prop 9, except for the Inverses axiom 16 Proposition Z n is a group under mod n Proof: Closure If [x] and [y] are in Z n, then n has no common factor with x or y, so it has no common factor with xy Thus [xy] is also in Z n Associativity This follows from associativity in Z: ([x] [y]) [z] = [x y] [z] = [(x y) z] (by definition of in Z n) = [x (y z)] (by associativity in Z) = [x] [y z] = [x] ([y] [z]) (by definition of in Z n) Identity 1 is co-prime to n, and [1] is an identity since, for any [x], we have [1] [x] = [1 x] = [x] = [x 1] = [x] [1] Inverses Let [x] be in Z n, and let Z n have r elements in all, say [z 1 ],, [z r ] If [x] had no inverse, then [xz i ] is not [1] for any i This means that there are at most r 1 possible values for [xz 1 ], [xz 2 ],, [xz r ], so two of them must be equal, say [xz j ] = [xz k ] for some z j < z k Then [x(z j z k )] = [xz j ] [xz k ] = [0]; that is, x(z j z k ) is a multiple of n Since x is co-prime to n, it must be that z j z k is a multiple of n Now 0 < z j < z k < n implies that 0 < z k z j < n, which is impossible 6

7 Number theory We can now use our results in group theory, including Lagrange s Theorem, to do a little bit of number theory These will give us simple ways of testing whether a number is prime These algorithms are, however, very slow to run even on a computer It was only in 2002 that Indian scientists discovered a prime-testing algorithm that is guaranteed to run quickly A related problem is to find the prime factors of a given number This has great practical importance, as it could be used to break many computer encryption codes There is, however, no known algorithm that factors numbers quickly, so many secrets are safe for now It is possible that in fact no fast factorisation algorithm exists 17 Definition The number of integers between 1 and n, that are co-prime to n, is denoted by φ(n), ie φ(n) := {m 1 m n, m is co-prime to n} The function φ is called Euler s totient function Note that the size of Z n is, by definition, φ(n) So, from note 14 we have φ(5) = 4, φ(6) = 2, φ(7) = 6, φ(8) = 4, φ(9) = 6 We will need the following corollary of Lagrange s Theorem: 18 Lemma Let g be an element of the group G, and let e be the identity in G Then g G = e Proof: The order of g is the least positive index k for which g k = e The k distinct powers of g form a subgroup of G, so by Lagrange s Theorem, k divides G ; that is, G = km, for some integer m Then g G = g km = (g k ) m = e m = e 19 Euler s Theorem If a is co-prime to n, then a φ(n) 1 (mod n) Proof: If a is co-prime to n, then a is an element of Z n (Strictly speaking, the congruence class of a is an element of Z n) By Prop 16, Z n is a group with identity 1, and, by definition, Z n = φ(n) So by Lemma 18, a Z n = a φ(n) 1 (mod n) 7

8 20 Fermat s Little Theorem If p is a prime, and a is not a multiple of p, then a p 1 1 (mod p) Proof: If p is a prime, then all positive integers less than p are co-prime to p; therefore φ(p) = p 1 The result therefore follows immediately from Euler s Theorem 21 Fermat mentioned the result in a letter October 18, 1640 to his friend and confidant Frnicle de Bessy Fermat must have proved this without using Lagrange s Theorem (c 1830) or Euler s Theorem (1736) As with the big theorem that he mentioned in another note, Fermat he did not include the proof as he was afraid that there was not enough space Fermat s Little Theorem is sometimes stated as: For any integer a and prime p, a p a (mod p) When a is a multiple of p, both sides are 0 (mod p) When a is not a multiple of p, this result follows from Thm 20 by multiplying both sides by a Conversely, Thm 20 follows from a p a (mod p) by multiplying both sides by a 1, which exists whenever a is not a multiple of p The converse of Fermat s Theorem is unfortunately not true there are numbers n which are not prime, and yet, for all a co-prime to n, a n 1 1 (mod n) Korselt did some work on these numbers in 1899, but the first example, 561, was found by Robert Daniel Carmichael in 1910, and they are now known as Carmichael numbers 22 Wilson s Theorem If p is prime, then (p 1)! 1 (mod p) Proof: If p = 2, then (2 1)! = 1, and = 2 0 (mod 2) So we consider the odd primes p > 2 Since p is prime, the numbers 1, 2,, p 1 are all co-prime to p, and therefore form a group Z p under multiplication mod p In particular, every one of these numbers has an inverse Note that 1 and p 1 are their own inverses, since 1 2 = 1, and (p 1) 2 = p 2 2p We claim that these are the only such elements in Z p If some k is its own inverse, we have k 2 1 (k 1)(k + 1) = k (mod p) This means that (k 1)(k + 1) is a multiple of p, and since p is prime, either k 1 or k + 1 is a multiple of p Thus k 1 (mod p) or 8

9 k 1 p 1 (mod p), as claimed In other words, for 1 < k < p 1, we have k k 1 So we can list the elements of Z p as: 1, m 1, m 1 1, m 2, m 1 2,, m s, m 1, p 1 Therefore (p 1)! = 1 2 (p 1) = 1 m 1 m 1 1 m 2 m 1 2 m s m 1 s (p 1) ( 1) (mod p) s 23 The theorem was first discovered by Ibn al-haytham (also known as Alhazen), but it is named after John Wilson (a student of the English mathematician Edward Waring) who rediscovered it more than 700 years later Waring announced the theorem in 1770, although neither he nor Wilson could prove it Lagrange gave the first proof in 1773 There is evidence that Leibniz was also aware of the result a century earlier, but he never published it Are the following statements true? And if so, is the reasoning correct? Since 1 9 (mod 10), Wilson s Theorem tells us that 9! is of the form 10k + 9, ie its last digit is 9 Similarly, 1 999, 999 (mod 1, 000, 000), so even without working out 999, 999! we know that it is of the form 1, 000, 000k +999, 999, that is, its last six digits are 999, 999 Is the converse of Wilson s Theorem true? 9

Math 127: Equivalence Relations

Math 127: Equivalence Relations Math 127: Equivalence Relations Mary Radcliffe 1 Equivalence Relations Relations can take many forms in mathematics. In these notes, we focus especially on equivalence relations, but there are many other

More information

LECTURE 3: CONGRUENCES. 1. Basic properties of congruences We begin by introducing some definitions and elementary properties.

LECTURE 3: CONGRUENCES. 1. Basic properties of congruences We begin by introducing some definitions and elementary properties. LECTURE 3: CONGRUENCES 1. Basic properties of congruences We begin by introducing some definitions and elementary properties. Definition 1.1. Suppose that a, b Z and m N. We say that a is congruent to

More information

p 1 MAX(a,b) + MIN(a,b) = a+b n m means that m is a an integer multiple of n. Greatest Common Divisor: We say that n divides m.

p 1 MAX(a,b) + MIN(a,b) = a+b n m means that m is a an integer multiple of n. Greatest Common Divisor: We say that n divides m. Great Theoretical Ideas In Computer Science Steven Rudich CS - Spring Lecture Feb, Carnegie Mellon University Modular Arithmetic and the RSA Cryptosystem p- p MAX(a,b) + MIN(a,b) = a+b n m means that m

More information

Applications of Fermat s Little Theorem and Congruences

Applications of Fermat s Little Theorem and Congruences Applications of Fermat s Little Theorem and Congruences Definition: Let m be a positive integer. Then integers a and b are congruent modulo m, denoted by a b mod m, if m (a b). Example: 3 1 mod 2, 6 4

More information

1.6 Congruence Modulo m

1.6 Congruence Modulo m 1.6 Congruence Modulo m 47 5. Let a, b 2 N and p be a prime. Prove for all natural numbers n 1, if p n (ab) and p - a, then p n b. 6. In the proof of Theorem 1.5.6 it was stated that if n is a prime number

More information

Modular Arithmetic. Kieran Cooney - February 18, 2016

Modular Arithmetic. Kieran Cooney - February 18, 2016 Modular Arithmetic Kieran Cooney - kieran.cooney@hotmail.com February 18, 2016 Sums and products in modular arithmetic Almost all of elementary number theory follows from one very basic theorem: Theorem.

More information

Introduction to Modular Arithmetic

Introduction to Modular Arithmetic 1 Integers modulo n 1.1 Preliminaries Introduction to Modular Arithmetic Definition 1.1.1 (Equivalence relation). Let R be a relation on the set A. Recall that a relation R is a subset of the cartesian

More information

Wilson s Theorem and Fermat s Theorem

Wilson s Theorem and Fermat s Theorem Wilson s Theorem and Fermat s Theorem 7-27-2006 Wilson s theorem says that p is prime if and only if (p 1)! = 1 (mod p). Fermat s theorem says that if p is prime and p a, then a p 1 = 1 (mod p). Wilson

More information

Primitive Roots. Chapter Orders and Primitive Roots

Primitive Roots. Chapter Orders and Primitive Roots Chapter 5 Primitive Roots The name primitive root applies to a number a whose powers can be used to represent a reduced residue system modulo n. Primitive roots are therefore generators in that sense,

More information

Algorithmic Number Theory and Cryptography (CS 303)

Algorithmic Number Theory and Cryptography (CS 303) Algorithmic Number Theory and Cryptography (CS 303) Modular Arithmetic Jeremy R. Johnson 1 Introduction Objective: To become familiar with modular arithmetic and some key algorithmic constructions that

More information

Number Theory. Konkreetne Matemaatika

Number Theory. Konkreetne Matemaatika ITT9131 Number Theory Konkreetne Matemaatika Chapter Four Divisibility Primes Prime examples Factorial Factors Relative primality `MOD': the Congruence Relation Independent Residues Additional Applications

More information

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory

Number Theory - Divisibility Number Theory - Congruences. Number Theory. June 23, Number Theory - Divisibility - Congruences June 23, 2014 Primes - Divisibility - Congruences Definition A positive integer p is prime if p 2 and its only positive factors are itself and 1. Otherwise, if p 2, then p

More information

To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we. The first (and most delicate) case concerns 2

To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we. The first (and most delicate) case concerns 2 Quadratic Reciprocity To be able to determine the quadratic character of an arbitrary number mod p (p an odd prime), we need to be able to evaluate q for any prime q. The first (and most delicate) case

More information

L29&30 - RSA Cryptography

L29&30 - RSA Cryptography L29&30 - RSA Cryptography CSci/Math 2112 20&22 July 2015 1 / 13 Notation We write a mod n for the integer b such that 0 b < n and a b (mod n). 2 / 13 Calculating Large Powers Modulo n Example 1 What is

More information

6. Find an inverse of a modulo m for each of these pairs of relatively prime integers using the method

6. Find an inverse of a modulo m for each of these pairs of relatively prime integers using the method Exercises Exercises 1. Show that 15 is an inverse of 7 modulo 26. 2. Show that 937 is an inverse of 13 modulo 2436. 3. By inspection (as discussed prior to Example 1), find an inverse of 4 modulo 9. 4.

More information

NUMBER THEORY AMIN WITNO

NUMBER THEORY AMIN WITNO NUMBER THEORY AMIN WITNO.. w w w. w i t n o. c o m Number Theory Outlines and Problem Sets Amin Witno Preface These notes are mere outlines for the course Math 313 given at Philadelphia

More information

Modular arithmetic Math 2320

Modular arithmetic Math 2320 Modular arithmetic Math 220 Fix an integer m 2, called the modulus. For any other integer a, we can use the division algorithm to write a = qm + r. The reduction of a modulo m is the remainder r resulting

More information

Public Key Encryption

Public Key Encryption Math 210 Jerry L. Kazdan Public Key Encryption The essence of this procedure is that as far as we currently know, it is difficult to factor a number that is the product of two primes each having many,

More information

University of British Columbia. Math 312, Midterm, 6th of June 2017

University of British Columbia. Math 312, Midterm, 6th of June 2017 University of British Columbia Math 312, Midterm, 6th of June 2017 Name (please be legible) Signature Student number Duration: 90 minutes INSTRUCTIONS This test has 7 problems for a total of 100 points.

More information

An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g.,

An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g., Binary exponentiation An interesting class of problems of a computational nature ask for the standard residue of a power of a number, e.g., What are the last two digits of the number 2 284? In the absence

More information

Algorithmic Number Theory and Cryptography (CS 303)

Algorithmic Number Theory and Cryptography (CS 303) Algorithmic Number Theory and Cryptography (CS 303) Modular Arithmetic and the RSA Public Key Cryptosystem Jeremy R. Johnson 1 Introduction Objective: To understand what a public key cryptosystem is and

More information

Modular Arithmetic. claserken. July 2016

Modular Arithmetic. claserken. July 2016 Modular Arithmetic claserken July 2016 Contents 1 Introduction 2 2 Modular Arithmetic 2 2.1 Modular Arithmetic Terminology.................. 2 2.2 Properties of Modular Arithmetic.................. 2 2.3

More information

CHAPTER 2. Modular Arithmetic

CHAPTER 2. Modular Arithmetic CHAPTER 2 Modular Arithmetic In studying the integers we have seen that is useful to write a = qb + r. Often we can solve problems by considering only the remainder, r. This throws away some of the information,

More information

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

Solutions to Problem Set 6 - Fall 2008 Due Tuesday, Oct. 21 at 1:00 18.781 Solutions to Problem Set 6 - Fall 008 Due Tuesday, Oct. 1 at 1:00 1. (Niven.8.7) If p 3 is prime, how many solutions are there to x p 1 1 (mod p)? How many solutions are there to x p 1 (mod p)?

More information

SOLUTIONS TO PROBLEM SET 5. Section 9.1

SOLUTIONS TO PROBLEM SET 5. Section 9.1 SOLUTIONS TO PROBLEM SET 5 Section 9.1 Exercise 2. Recall that for (a, m) = 1 we have ord m a divides φ(m). a) We have φ(11) = 10 thus ord 11 3 {1, 2, 5, 10}. We check 3 1 3 (mod 11), 3 2 9 (mod 11), 3

More information

6.2 Modular Arithmetic

6.2 Modular Arithmetic 6.2 Modular Arithmetic Every reader is familiar with arithmetic from the time they are three or four years old. It is the study of numbers and various ways in which we can combine them, such as through

More information

b) Find all positive integers smaller than 200 which leave remainder 1, 3, 4 upon division by 3, 5, 7 respectively.

b) Find all positive integers smaller than 200 which leave remainder 1, 3, 4 upon division by 3, 5, 7 respectively. Solutions to Exam 1 Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively prime positive integers. Prove that m φ(n) + n φ(m) 1 (mod mn). Solution: a) Fermat s Little

More information

Assignment 2. Due: Monday Oct. 15, :59pm

Assignment 2. Due: Monday Oct. 15, :59pm Introduction To Discrete Math Due: Monday Oct. 15, 2012. 11:59pm Assignment 2 Instructor: Mohamed Omar Math 6a For all problems on assignments, you are allowed to use the textbook, class notes, and other

More information

Lecture 8. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. 3. Euclid s GCD Algorithm

Lecture 8. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. 3. Euclid s GCD Algorithm Lecture 8. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. 3. Euclid s GCD Algorithm Clock Math If it is 1:00 now. What time is it in 5 hours?

More information

Data security (Cryptography) exercise book

Data security (Cryptography) exercise book University of Debrecen Faculty of Informatics Data security (Cryptography) exercise book 1 Contents 1 RSA 4 1.1 RSA in general.................................. 4 1.2 RSA background.................................

More information

Fermat s little theorem. RSA.

Fermat s little theorem. RSA. .. Computing large numbers modulo n (a) In modulo arithmetic, you can always reduce a large number to its remainder a a rem n (mod n). (b) Addition, subtraction, and multiplication preserve congruence:

More information

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation.

The congruence relation has many similarities to equality. The following theorem says that congruence, like equality, is an equivalence relation. Congruences A congruence is a statement about divisibility. It is a notation that simplifies reasoning about divisibility. It suggests proofs by its analogy to equations. Congruences are familiar to us

More information

MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005

MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005 MATH 324 Elementary Number Theory Solutions to Practice Problems for Final Examination Monday August 8, 2005 Deartment of Mathematical and Statistical Sciences University of Alberta Question 1. Find integers

More information

Carmen s Core Concepts (Math 135)

Carmen s Core Concepts (Math 135) Carmen s Core Concepts (Math 135) Carmen Bruni University of Waterloo Week 7 1 Congruence Definition 2 Congruence is an Equivalence Relation (CER) 3 Properties of Congruence (PC) 4 Example 5 Congruences

More information

An elementary study of Goldbach Conjecture

An elementary study of Goldbach Conjecture An elementary study of Goldbach Conjecture Denise Chemla 26/5/2012 Goldbach Conjecture (7 th, june 1742) states that every even natural integer greater than 4 is the sum of two odd prime numbers. If we

More information

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees.

17. Symmetries. Thus, the example above corresponds to the matrix: We shall now look at how permutations relate to trees. 7 Symmetries 7 Permutations A permutation of a set is a reordering of its elements Another way to look at it is as a function Φ that takes as its argument a set of natural numbers of the form {, 2,, n}

More information

The Chinese Remainder Theorem

The Chinese Remainder Theorem The Chinese Remainder Theorem 8-3-2014 The Chinese Remainder Theorem gives solutions to systems of congruences with relatively prime moduli The solution to a system of congruences with relatively prime

More information

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013 CMPSCI 250: Introduction to Computation Lecture #14: The Chinese Remainder Theorem David Mix Barrington 4 October 2013 The Chinese Remainder Theorem Infinitely Many Primes Reviewing Inverses and the Inverse

More information

Solutions for the Practice Final

Solutions for the Practice Final Solutions for the Practice Final 1. Ian and Nai play the game of todo, where at each stage one of them flips a coin and then rolls a die. The person who played gets as many points as the number rolled

More information

ON THE EQUATION a x x (mod b) Jam Germain

ON THE EQUATION a x x (mod b) Jam Germain ON THE EQUATION a (mod b) Jam Germain Abstract. Recently Jimenez and Yebra [3] constructed, for any given a and b, solutions to the title equation. Moreover they showed how these can be lifted to higher

More information

Exam 1 7 = = 49 2 ( ) = = 7 ( ) =

Exam 1 7 = = 49 2 ( ) = = 7 ( ) = Exam 1 Problem 1. a) Define gcd(a, b). Using Euclid s algorithm comute gcd(889, 168). Then find x, y Z such that gcd(889, 168) = x 889 + y 168 (check your answer!). b) Let a be an integer. Prove that gcd(3a

More information

Modular Arithmetic: refresher.

Modular Arithmetic: refresher. Lecture 7. Outline. 1. Modular Arithmetic. Clock Math!!! 2. Inverses for Modular Arithmetic: Greatest Common Divisor. Division!!! 3. Euclid s GCD Algorithm. A little tricky here! Clock Math If it is 1:00

More information

Distribution of Primes

Distribution of Primes Distribution of Primes Definition. For positive real numbers x, let π(x) be the number of prime numbers less than or equal to x. For example, π(1) = 0, π(10) = 4 and π(100) = 25. To use some ciphers, we

More information

Collection of rules, techniques and theorems for solving polynomial congruences 11 April 2012 at 22:02

Collection of rules, techniques and theorems for solving polynomial congruences 11 April 2012 at 22:02 Collection of rules, techniques and theorems for solving polynomial congruences 11 April 2012 at 22:02 Public Polynomial congruences come up constantly, even when one is dealing with much deeper problems

More information

Practice Midterm 2 Solutions

Practice Midterm 2 Solutions Practice Midterm 2 Solutions May 30, 2013 (1) We want to show that for any odd integer a coprime to 7, a 3 is congruent to 1 or 1 mod 7. In fact, we don t need the assumption that a is odd. By Fermat s

More information

Modular Arithmetic and Doomsday

Modular Arithmetic and Doomsday Modular Arithmetic and Doomsday Blake Thornton Much of this is due directly to Joshua Zucker and Paul Zeitz. 1. Subtraction Magic Trick. While blindfolded, a magician asks a member from the audience to

More information

Congruence. Solving linear congruences. A linear congruence is an expression in the form. ax b (modm)

Congruence. Solving linear congruences. A linear congruence is an expression in the form. ax b (modm) Congruence Solving linear congruences A linear congruence is an expression in the form ax b (modm) a, b integers, m a positive integer, x an integer variable. x is a solution if it makes the congruence

More information

Sheet 1: Introduction to prime numbers.

Sheet 1: Introduction to prime numbers. Option A Hand in at least one question from at least three sheets Sheet 1: Introduction to prime numbers. [provisional date for handing in: class 2.] 1. Use Sieve of Eratosthenes to find all prime numbers

More information

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012

CMPSCI 250: Introduction to Computation. Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012 CMPSCI 250: Introduction to Computation Lecture #14: The Chinese Remainder Theorem David Mix Barrington 24 February 2012 The Chinese Remainder Theorem Infinitely Many Primes Reviewing Inverses and the

More information

Number Theory/Cryptography (part 1 of CSC 282)

Number Theory/Cryptography (part 1 of CSC 282) Number Theory/Cryptography (part 1 of CSC 282) http://www.cs.rochester.edu/~stefanko/teaching/11cs282 1 Schedule The homework is due Sep 8 Graded homework will be available at noon Sep 9, noon. EXAM #1

More information

ELEMENTS OF NUMBER THEORY & CONGRUENCES. Lagrange, Legendre and Gauss. Mth Mathematicst

ELEMENTS OF NUMBER THEORY & CONGRUENCES. Lagrange, Legendre and Gauss. Mth Mathematicst ELEMENTS OF NUMBER THEORY & CONGRUENCES Lagrange, Legendre and Gauss ELEMENTS OF NUMBER THEORY & CONGRUENCES 1) If a 0, b 0 Z and a/b, b/a then 1) a=b 2) a=1 3) b=1 4) a=±b Ans : is 4 known result. If

More information

MA/CSSE 473 Day 9. The algorithm (modified) N 1

MA/CSSE 473 Day 9. The algorithm (modified) N 1 MA/CSSE 473 Day 9 Primality Testing Encryption Intro The algorithm (modified) To test N for primality Pick positive integers a 1, a 2,, a k < N at random For each a i, check for a N 1 i 1 (mod N) Use the

More information

Mathematics Explorers Club Fall 2012 Number Theory and Cryptography

Mathematics Explorers Club Fall 2012 Number Theory and Cryptography Mathematics Explorers Club Fall 2012 Number Theory and Cryptography Chapter 0: Introduction Number Theory enjoys a very long history in short, number theory is a study of integers. Mathematicians over

More information

Goldbach Conjecture (7 th june 1742)

Goldbach Conjecture (7 th june 1742) Goldbach Conjecture (7 th june 1742) We note P the odd prime numbers set. P = {p 1 = 3, p 2 = 5, p 3 = 7, p 4 = 11,...} n 2N\{0, 2, 4}, p P, p n/2, q P, q n/2, n = p + q We call n s Goldbach decomposition

More information

x 8 (mod 15) x 8 3 (mod 5) eli 2 2y 6 (mod 10) y 3 (mod 5) 6x 9 (mod 11) y 3 (mod 11) So y = 3z + 3u + 3w (mod 990) z = (990/9) (990/9) 1

x 8 (mod 15) x 8 3 (mod 5) eli 2 2y 6 (mod 10) y 3 (mod 5) 6x 9 (mod 11) y 3 (mod 11) So y = 3z + 3u + 3w (mod 990) z = (990/9) (990/9) 1 Exercise help set 6/2011 Number Theory 1. x 2 0 (mod 2) x 2 (mod 6) x 2 (mod 3) a) x 5 (mod 7) x 5 (mod 7) x 8 (mod 15) x 8 3 (mod 5) (x 8 2 (mod 3)) So x 0y + 2z + 5w + 8u (mod 210). y is not needed.

More information

Math 255 Spring 2017 Solving x 2 a (mod n)

Math 255 Spring 2017 Solving x 2 a (mod n) Math 255 Spring 2017 Solving x 2 a (mod n) Contents 1 Lifting 1 2 Solving x 2 a (mod p k ) for p odd 3 3 Solving x 2 a (mod 2 k ) 5 4 Solving x 2 a (mod n) for general n 9 1 Lifting Definition 1.1. Let

More information

Solutions for the Practice Questions

Solutions for the Practice Questions Solutions for the Practice Questions Question 1. Find all solutions to the congruence 13x 12 (mod 35). Also, answer the following questions about the solutions to the above congruence. Are there solutions

More information

SOLUTIONS FOR PROBLEM SET 4

SOLUTIONS FOR PROBLEM SET 4 SOLUTIONS FOR PROBLEM SET 4 A. A certain integer a gives a remainder of 1 when divided by 2. What can you say about the remainder that a gives when divided by 8? SOLUTION. Let r be the remainder that a

More information

Public Key Cryptography Great Ideas in Theoretical Computer Science Saarland University, Summer 2014

Public Key Cryptography Great Ideas in Theoretical Computer Science Saarland University, Summer 2014 7 Public Key Cryptography Great Ideas in Theoretical Computer Science Saarland University, Summer 2014 Cryptography studies techniques for secure communication in the presence of third parties. A typical

More information

MATH 13150: Freshman Seminar Unit 15

MATH 13150: Freshman Seminar Unit 15 MATH 1310: Freshman Seminar Unit 1 1. Powers in mod m arithmetic In this chapter, we ll learn an analogous result to Fermat s theorem. Fermat s theorem told us that if p is prime and p does not divide

More information

NIM Games: Handout 1

NIM Games: Handout 1 NIM Games: Handout 1 Based on notes by William Gasarch 1 One-Pile NIM Games Consider the following two-person game in which players alternate making moves. There are initially n stones on the board. During

More information

Solutions to Exam 1. Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively prime positive integers.

Solutions to Exam 1. Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively prime positive integers. Solutions to Exam 1 Problem 1. a) State Fermat s Little Theorem and Euler s Theorem. b) Let m, n be relatively rime ositive integers. Prove that m φ(n) + n φ(m) 1 (mod mn). c) Find the remainder of 1 008

More information

Math 319 Problem Set #7 Solution 18 April 2002

Math 319 Problem Set #7 Solution 18 April 2002 Math 319 Problem Set #7 Solution 18 April 2002 1. ( 2.4, problem 9) Show that if x 2 1 (mod m) and x / ±1 (mod m) then 1 < (x 1, m) < m and 1 < (x + 1, m) < m. Proof: From x 2 1 (mod m) we get m (x 2 1).

More information

Constructions of Coverings of the Integers: Exploring an Erdős Problem

Constructions of Coverings of the Integers: Exploring an Erdős Problem Constructions of Coverings of the Integers: Exploring an Erdős Problem Kelly Bickel, Michael Firrisa, Juan Ortiz, and Kristen Pueschel August 20, 2008 Abstract In this paper, we study necessary conditions

More information

MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION

MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION MODULAR ARITHMETIC II: CONGRUENCES AND DIVISION MATH CIRCLE (BEGINNERS) 02/05/2012 Modular arithmetic. Two whole numbers a and b are said to be congruent modulo n, often written a b (mod n), if they give

More information

Introduction. and Z r1 Z rn. This lecture aims to provide techniques. CRT during the decription process in RSA is explained.

Introduction. and Z r1 Z rn. This lecture aims to provide techniques. CRT during the decription process in RSA is explained. THE CHINESE REMAINDER THEOREM INTRODUCED IN A GENERAL KONTEXT Introduction The rst Chinese problem in indeterminate analysis is encountered in a book written by the Chinese mathematician Sun Tzi. The problem

More information

Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017

Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017 Name: Cryptography Math 1580 Silverman First Hour Exam Mon Oct 2, 2017 INSTRUCTIONS Read Carefully Time: 50 minutes There are 5 problems. Write your name legibly at the top of this page. No calculators

More information

ON MODULI FOR WHICH THE FIBONACCI SEQUENCE CONTAINS A COMPLETE SYSTEM OF RESIDUES S. A. BURR Belt Telephone Laboratories, Inc., Whippany, New Jersey

ON MODULI FOR WHICH THE FIBONACCI SEQUENCE CONTAINS A COMPLETE SYSTEM OF RESIDUES S. A. BURR Belt Telephone Laboratories, Inc., Whippany, New Jersey ON MODULI FOR WHICH THE FIBONACCI SEQUENCE CONTAINS A COMPLETE SYSTEM OF RESIDUES S. A. BURR Belt Telephone Laboratories, Inc., Whippany, New Jersey Shah [1] and Bruckner [2] have considered the problem

More information

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = =

1 = 3 2 = 3 ( ) = = = 33( ) 98 = = = Math 115 Discrete Math Final Exam December 13, 2000 Your name It is important that you show your work. 1. Use the Euclidean algorithm to solve the decanting problem for decanters of sizes 199 and 98. In

More information

Congruence properties of the binary partition function

Congruence properties of the binary partition function Congruence properties of the binary partition function 1. Introduction. We denote by b(n) the number of binary partitions of n, that is the number of partitions of n as the sum of powers of 2. As usual,

More information

DUBLIN CITY UNIVERSITY

DUBLIN CITY UNIVERSITY DUBLIN CITY UNIVERSITY SEMESTER ONE EXAMINATIONS 2013 MODULE: (Title & Code) CA642 Cryptography and Number Theory COURSE: M.Sc. in Security and Forensic Computing YEAR: 1 EXAMINERS: (Including Telephone

More information

Cryptography. 2. decoding is extremely difficult (for protection against eavesdroppers);

Cryptography. 2. decoding is extremely difficult (for protection against eavesdroppers); 18.310 lecture notes September 2, 2013 Cryptography Lecturer: Michel Goemans 1 Public Key Cryptosystems In these notes, we will be concerned with constructing secret codes. A sender would like to encrypt

More information

MST125. Essential mathematics 2. Number theory

MST125. Essential mathematics 2. Number theory MST125 Essential mathematics 2 Number theory This publication forms part of the Open University module MST125 Essential mathematics 2. Details of this and other Open University modules can be obtained

More information

Discrete Math Class 4 ( )

Discrete Math Class 4 ( ) Discrete Math 37110 - Class 4 (2016-10-06) 41 Division vs congruences Instructor: László Babai Notes taken by Jacob Burroughs Revised by instructor DO 41 If m ab and gcd(a, m) = 1, then m b DO 42 If gcd(a,

More information

SESAME Modular Arithmetic. MurphyKate Montee. March 2018 IN,Z, We think numbers should satisfy certain rules, which we call axioms:

SESAME Modular Arithmetic. MurphyKate Montee. March 2018 IN,Z, We think numbers should satisfy certain rules, which we call axioms: SESAME Modular Arithmetic MurphyKate Montee March 08 What is a Number? Examples of Number Systems: We think numbers should satisfy certain rules which we call axioms: Commutivity Associativity 3 Existence

More information

Power = 36² mod 99 Power = 9 5 a 5 = 0 x = 81 Power = 9² mod 99 Power = 81 6 a 6 = 1 x = 81 x 81 mod 99 x = 27 7 a 7 = 1 x = 27 x 27 mod 99 x = 36

Power = 36² mod 99 Power = 9 5 a 5 = 0 x = 81 Power = 9² mod 99 Power = 81 6 a 6 = 1 x = 81 x 81 mod 99 x = 27 7 a 7 = 1 x = 27 x 27 mod 99 x = 36 Question 1 Section 4.1 11. What time does a 12-hour clock read a) 80 hours after it reads 11:00? b) 40 hours before it reads 12:00? c) 100 hours after it reads 6:00? I don't really understand this question

More information

Number Theory and Security in the Digital Age

Number Theory and Security in the Digital Age Number Theory and Security in the Digital Age Lola Thompson Ross Program July 21, 2010 Lola Thompson (Ross Program) Number Theory and Security in the Digital Age July 21, 2010 1 / 37 Introduction I have

More information

Discrete Mathematics & Mathematical Reasoning Multiplicative Inverses and Some Cryptography

Discrete Mathematics & Mathematical Reasoning Multiplicative Inverses and Some Cryptography Discrete Mathematics & Mathematical Reasoning Multiplicative Inverses and Some Cryptography Colin Stirling Informatics Some slides based on ones by Myrto Arapinis Colin Stirling (Informatics) Discrete

More information

ALGEBRA: Chapter I: QUESTION BANK

ALGEBRA: Chapter I: QUESTION BANK 1 ALGEBRA: Chapter I: QUESTION BANK Elements of Number Theory Congruence One mark questions: 1 Define divisibility 2 If a b then prove that a kb k Z 3 If a b b c then PT a/c 4 If a b are two non zero integers

More information

A Quick Introduction to Modular Arithmetic

A Quick Introduction to Modular Arithmetic A Quick Introduction to Modular Arithmetic Art Duval University of Texas at El Paso November 16, 2004 1 Idea Here are a few quick motivations for modular arithmetic: 1.1 Sorting integers Recall how you

More information

THE NUMBER OF PERMUTATIONS WHICH FORM ARITHMETIC PROGRESSIONS MODULO m

THE NUMBER OF PERMUTATIONS WHICH FORM ARITHMETIC PROGRESSIONS MODULO m ANALELE ŞTIINŢIFICE ALE UNIVERSITĂŢII AL.I. CUZA DIN IAŞI (S.N.) MATEMATICĂ, Tomul LXI, 2015, f.2 THE NUMBER OF PERMUTATIONS WHICH FORM ARITHMETIC PROGRESSIONS MODULO m BY FLORIAN LUCA and AUGUSTINE O.

More information

UNIVERSITY OF MANITOBA DATE: December 7, FINAL EXAMINATION TITLE PAGE TIME: 3 hours EXAMINER: M. Davidson

UNIVERSITY OF MANITOBA DATE: December 7, FINAL EXAMINATION TITLE PAGE TIME: 3 hours EXAMINER: M. Davidson TITLE PAGE FAMILY NAME: (Print in ink) GIVEN NAME(S): (Print in ink) STUDENT NUMBER: SEAT NUMBER: SIGNATURE: (in ink) (I understand that cheating is a serious offense) INSTRUCTIONS TO STUDENTS: This is

More information

Determinants, Part 1

Determinants, Part 1 Determinants, Part We shall start with some redundant definitions. Definition. Given a matrix A [ a] we say that determinant of A is det A a. Definition 2. Given a matrix a a a 2 A we say that determinant

More information

The Sign of a Permutation Matt Baker

The Sign of a Permutation Matt Baker The Sign of a Permutation Matt Baker Let σ be a permutation of {1, 2,, n}, ie, a one-to-one and onto function from {1, 2,, n} to itself We will define what it means for σ to be even or odd, and then discuss

More information

Groups, Modular Arithmetic and Geometry

Groups, Modular Arithmetic and Geometry Groups, Modular Arithmetic and Geometry Pupil Booklet 2012 The Maths Zone www.themathszone.co.uk Modular Arithmetic Modular arithmetic was developed by Euler and then Gauss in the late 18th century and

More information

Goldbach conjecture (1742, june, the 7 th )

Goldbach conjecture (1742, june, the 7 th ) Goldbach conjecture (1742, june, the 7 th ) We note P the prime numbers set. P = {p 1 = 2, p 2 = 3, p 3 = 5, p 4 = 7, p 5 = 11,...} remark : 1 P Statement : Each even number greater than 2 is the sum of

More information

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand.

Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating by hand. Midterm #2: practice MATH 311 Intro to Number Theory midterm: Thursday, Oct 20 Please print your name: Calculators will not be permitted on the exam. The numbers on the exam will be suitable for calculating

More information

The number theory behind cryptography

The number theory behind cryptography The University of Vermont May 16, 2017 What is cryptography? Cryptography is the practice and study of techniques for secure communication in the presence of adverse third parties. What is cryptography?

More information

Final exam. Question Points Score. Total: 150

Final exam. Question Points Score. Total: 150 MATH 11200/20 Final exam DECEMBER 9, 2016 ALAN CHANG Please present your solutions clearly and in an organized way Answer the questions in the space provided on the question sheets If you run out of room

More information

5 Symmetric and alternating groups

5 Symmetric and alternating groups MTHM024/MTH714U Group Theory Notes 5 Autumn 2011 5 Symmetric and alternating groups In this section we examine the alternating groups A n (which are simple for n 5), prove that A 5 is the unique simple

More information

Arithmetic of Remainders (Congruences)

Arithmetic of Remainders (Congruences) Arithmetic of Remainders (Congruences) Donald Rideout, Memorial University of Newfoundland 1 Divisibility is a fundamental concept of number theory and is one of the concepts that sets it apart from other

More information

Number-Theoretic Algorithms

Number-Theoretic Algorithms Number-Theoretic Algorithms Hengfeng Wei hfwei@nju.edu.cn March 31 April 6, 2017 Hengfeng Wei (hfwei@nju.edu.cn) Number-Theoretic Algorithms March 31 April 6, 2017 1 / 36 Number-Theoretic Algorithms 1

More information

Foundations of Cryptography

Foundations of Cryptography Foundations of Cryptography Ville Junnila viljun@utu.fi Department of Mathematics and Statistics University of Turku 2015 Ville Junnila viljun@utu.fi Lecture 10 1 of 17 The order of a number (mod n) Definition

More information

Two congruences involving 4-cores

Two congruences involving 4-cores Two congruences involving 4-cores ABSTRACT. The goal of this paper is to prove two new congruences involving 4- cores using elementary techniques; namely, if a 4 (n) denotes the number of 4-cores of n,

More information

Solutions for the 2nd Practice Midterm

Solutions for the 2nd Practice Midterm Solutions for the 2nd Practice Midterm 1. (a) Use the Euclidean Algorithm to find the greatest common divisor of 44 and 17. The Euclidean Algorithm yields: 44 = 2 17 + 10 17 = 1 10 + 7 10 = 1 7 + 3 7 =

More information

Application: Public Key Cryptography. Public Key Cryptography

Application: Public Key Cryptography. Public Key Cryptography Application: Public Key Cryptography Suppose I wanted people to send me secret messages by snail mail Method 0. I send a padlock, that only I have the key to, to everyone who might want to send me a message.

More information

1 Introduction to Cryptology

1 Introduction to Cryptology U R a Scientist (CWSF-ESPC 2017) Mathematics and Cryptology Patrick Maidorn and Michael Kozdron (Department of Mathematics & Statistics) 1 Introduction to Cryptology While the phrase making and breaking

More information

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI

LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI LECTURE 7: POLYNOMIAL CONGRUENCES TO PRIME POWER MODULI 1. Hensel Lemma for nonsingular solutions Although there is no analogue of Lagrange s Theorem for prime power moduli, there is an algorithm for determining

More information

Axiom A-1: To every angle there corresponds a unique, real number, 0 < < 180.

Axiom A-1: To every angle there corresponds a unique, real number, 0 < < 180. Axiom A-1: To every angle there corresponds a unique, real number, 0 < < 180. We denote the measure of ABC by m ABC. (Temporary Definition): A point D lies in the interior of ABC iff there exists a segment

More information

Grade 6/7/8 Math Circles April 1/2, Modular Arithmetic

Grade 6/7/8 Math Circles April 1/2, Modular Arithmetic Faculty of Mathematics Waterloo, Ontario N2L 3G1 Modular Arithmetic Centre for Education in Mathematics and Computing Grade 6/7/8 Math Circles April 1/2, 2014 Modular Arithmetic Modular arithmetic deals

More information