Proof of Euler-Fermat (2/28) Here’s an outline of the proof of the Euler-Fermat Theorem, which mirrors the proof of flt. Given any m, let B = {b i | 0.

Slides:



Advertisements
Similar presentations
The Euler Phi-Function Is Multiplicative (3/3)
Advertisements

An Aside from Number Theory: The Euler Phi-function (9/20/13) Definition. The Euler Phi-function of a positive integer n, denoted  (n) is the number of.
1 Lect. 12: Number Theory. Contents Prime and Relative Prime Numbers Modular Arithmetic Fermat’s and Euler’s Theorem Extended Euclid’s Algorithm.
MA/CSSE 473/474 How (not) to do an induction proof.
Chapter 8 – Introduction to Number Theory. Prime Numbers prime numbers only have divisors of 1 and self –they cannot be written as a product of other.
Computability and Complexity
Chapter 8 Introduction to Number Theory. Prime Numbers prime numbers only have divisors of 1 and self –they cannot be written as a product of other numbers.
Sets, Combinatorics, Probability, and Number Theory Mathematical Structures for Computer Science Chapter 3 Copyright © 2006 W.H. Freeman & Co.MSCS Slides.
Fermat’s Little Theorem (2/24) Theorem (flt). If p is prime and GCD(a, p) = 1, then a p – 1  1 (mod p). Again, this says that in a mod p congruence, we.
The Fundamental Theorem of Arithmetic (2/12) Definition (which we all already know). A number greater than 1 is called prime if its only divisors are 1.
Number Theory and Cryptography
Basic properties of the integers
Induction and recursion
Great Theoretical Ideas in Computer Science.
Induction Sections 41. and 4.2 of Rosen Fall 2008 CSCE 235 Introduction to Discrete Structures Course web-page: cse.unl.edu/~cse235 Questions:
Congruence class arithmetic. Definitions: a ≡ b mod m iff a mod m = b mod m. a  [b] iff a ≡ b mod m.
Elementary Number Theory and Methods of Proof. Basic Definitions An integer n is an even number if there exists an integer k such that n = 2k. An integer.
6/20/2015 5:05 AMNumerical Algorithms1 x x1x
Congruence of Integers
Discrete Structures Chapter 2 Part B Mathematical Induction
The essential quality of a proof is to compel belief.
Properties of the Integers: Mathematical Induction
CS555Spring 2012/Topic 61 Cryptography CS 555 Topic 6: Number Theory Basics.
BY MISS FARAH ADIBAH ADNAN IMK
Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations Copyright © The McGraw-Hill Companies, Inc. Permission required.
C OURSE : D ISCRETE STRUCTURE CODE : ICS 252 Lecturer: Shamiel Hashim 1 lecturer:Shamiel Hashim second semester Prepared by: amani Omer.
Great Theoretical Ideas in Computer Science.
Chapter 2 The Fundamentals: Algorithms, the Integers, and Matrices
1 Properties of Integers Objectives At the end of this unit, students should be able to: State the division algorithm Apply the division algorithm Find.
Mathematics of Cryptography Part I: Modular Arithmetic
Induction and recursion
1 Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown Chapter 4 – Finite Fields.
Upcoming MA 214 Schedule (2/21) The mid-term exam will be entirely take-home (with very specific “ground rules”). It will be handed out on Wednesday March.
External Direct Products (11/4) Definition. If G 1, G 2,..., G n are groups, then their external direct product G 1  G 2 ...  G n is simply the set.
Pythagorean Triples (1/24) Pythagorean Theorem. A triangle with sides of length a, b and c is a right triangle if and only if a 2 + b 2 = c 2. As number.
Introduction to Proofs
Great Theoretical Ideas in Computer Science.
Mathematics Review Exponents Logarithms Series Modular arithmetic Proofs.
Powers and Roots of Complex Numbers. Remember the following to multiply two complex numbers:
Cyclic Groups (9/25) Definition. A group G is called cyclic if there exists an element a in G such that G =  a . That is, every element of G can be written.
Great Theoretical Ideas in Computer Science.
Chapter 4 More on Directed Proof and Proof by Contrapositive 4.1 Proofs Involving Divisibility of Integers 4.2 Proofs Involving Congruence of Integers.
Chinese Remainder Theorem Dec 29 Picture from ………………………
Section 3.3: Mathematical Induction Mathematical induction is a proof technique that can be used to prove theorems of the form:  n  Z +,P(n) We have.
Elements of Coding and Encryption 1. Encryption In the modern word, it is crucial that the information is transmitted safely. For example, Internet purchases,
Lecture 6.1: Misc. Topics: Number Theory CS 250, Discrete Structures, Fall 2011 Nitesh Saxena.
The Euler-Fermat Theorem Our text calls this “Euler’s Formula”, but I prefer the above name, giving due credit to Fermat. Obvious question: Can Fermat’s.
Tuesday’s lecture: Today’s lecture: One-way permutations (OWPs)
Computing k th Roots Quickly (4/4) Via the Fast Exp algorithm, we know we can quickly compute large powers of large numbers modulo large numbers. What.
Great Theoretical Ideas in Computer Science for Some.
Congruences (2/17) If m (the modulus) is positive and if a and b are integers, then we say a is congruent to b mod m, writing a  b (mod m), provided that.
Application: Algorithms Lecture 20 Section 3.8 Wed, Feb 21, 2007.
Prime Numbers (3/17 ) We all know what a prime number is. Theorem (Euclid). There are infinitely many primes. Euclid’s original proof idea can be stated.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Introduction to Number Theory
9.1 Primes and Related Congruence Equations 23 Sep 2013.
Chapter 5. Section 5.1 Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If we can reach.
Cryptography Lecture 14 Arpita Patra © Arpita Patra.
AF2. Turn off your phones Primes, gcd, some examples, reading.
MA/CSSE 473 Day 09 Modular Division Revisited Fermat's Little Theorem Primality Testing.
CS480 Cryptography and Information Security
Chapter 4 With Question/Answer Animations 1. Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their.
Great Theoretical Ideas in Computer Science.
Perfect Numbers (3/26) Definition. A number is called perfect if it is equal to the sum of its proper divisors. Examples: 6 and 28 are the first two (check!).
Congruence class arithmetic
Advanced Algorithms Analysis and Design
Numerical Algorithms x x-1
CSE 311: Foundations of Computing
Useful GCD Fact If a and b are positive integers, then gcd(a,b) = gcd(b, a mod b) Proof: By definition of mod, a = qb+ (a mod b) for.
Presentation transcript:

Proof of Euler-Fermat (2/28) Here’s an outline of the proof of the Euler-Fermat Theorem, which mirrors the proof of flt. Given any m, let B = {b i | 0 < b i < m and GCD(b i, m) = 1}. Note that B has  (m) elements. For any a  B, if we multiply all elements of B by a and then reduce by m, “The Scrambling Lemma” says we get B back, in a different order. Now multiply all together. Hence ab 1  ab 2 ...  ab  (m)  b 1  b 2 ...  b  (m) (mod m), i.e., a  (m) (b 1  b 2 ...  b  (m) )  (b 1  b 2 ...  b  (m) ) (mod m). Finally, we can cancel (b 1  b 2 ...  b  (m) ) from both sides because that product is relatively prime to m. The E-F Theorem follows.

Computing the Euler Phi-Function Because of the Euler-Fermat Theorem, it is clear that to solve congruences which have exponents larger than the modulus, we need to be able to compute  (m). Going through and checking numbers one by one for relative primeness to m is not a feasible algorithm. So let’s work out a formula for  (m). We use a very typical strategy in number theory: Settle what you want for prime numbers and their powers, then Use the Fundamental Theorem of Arithmetic to “patch together” the information about separate primes to get the result for any number.

Multiplicative Functions In number theory, the following definition is standard: Definition. A function f whose domain is integers (or a subset thereof), is called multiplicative if f(ab) = f(a)f(b) provided that a and b are relatively prime. If we know that a function is multiplicative and if we can figure out what it does to prime powers, then by the FTA we know what it does to arbitrary numbers. You shall read, and we shall discuss Monday, that the Euler-Phi function is indeed multiplicative. Hence it will suffice to figure out what  (p k ) is for any prime p and any positive k.

What’s  (p k ) ? Well, first, we know already that  (p) = p – 1 (= p 1 – p 0 ). As always, try out some examples: What is  (25) =  (5 2 )? Just list it out! What is  (27) =  (3 3 )? See any patterns? Conjecture: If p is prime,  (p k ) = ? Now prove it. Okay, assuming then that  is multiplicative, we can now easily compute  of any number which we know how to factor into its FTA form. Examples: What is  (100)? What is  (363)? What is  (720)?

For Monday Hand-in #3 is due at class time. Read Chapter 11. Do Exercises 11.1 and Have a good weekend, but......