Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28

Slides:



Advertisements
Similar presentations
1 Lect. 12: Number Theory. Contents Prime and Relative Prime Numbers Modular Arithmetic Fermat’s and Euler’s Theorem Extended Euclid’s Algorithm.
Advertisements

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.
CSC2110 Discrete Mathematics Tutorial 5 GCD and Modular Arithmetic
1 Chapter 7– Introduction to Number Theory Instructor: 孫宏民 Room: EECS 6402, Tel: , Fax :
6/20/2015 5:05 AMNumerical Algorithms1 x x1x
Complexity1 Pratt’s Theorem Proved. Complexity2 Introduction So far, we’ve reduced proving PRIMES  NP to proving a number theory claim. This is our next.
Lecture 3.2: Public Key Cryptography II CS 436/636/736 Spring 2012 Nitesh Saxena.
DTTF/NB479: Dszquphsbqiz Day 9 Announcements: Homework 2 due now Homework 2 due now Computer quiz Thursday on chapter 2 Computer quiz Thursday on chapter.
CS555Spring 2012/Topic 61 Cryptography CS 555 Topic 6: Number Theory Basics.
Module :MA3036NI Cryptography and Number Theory Lecture Week 7
Chinese Remainder Theorem Dec 29 Picture from ………………………
1 Network and Computer Security (CS 475) Modular Arithmetic and the RSA Public Key Cryptosystem Jeremy R. Johnson.
Network and Computer Security (CS 475) Modular Arithmetic
Chinese Remainder Theorem. How many people What is x? Divided into 4s: remainder 3 x ≡ 3 (mod 4) Divided into 5s: remainder 4 x ≡ 4 (mod 5) Chinese Remainder.
MA/CSSE 473 Day 08 Extended Euclid's Algorithm Modular Division Fermat's little theorem.
Tuesday’s lecture: Today’s lecture: One-way permutations (OWPs)
Introduction to Number Theory
Introduction to Number Theory Department of Computer Engineering Sharif University of Technology 3/8/2006.
MA/CSSE 473 Day 07 Extended Euclid's Algorithm Modular Division Fermat's little theorem intro.
MA/CSSE 473 Day 07 Extended Euclid's Algorithm Modular Division
Discrete Math II Howon Kim
B504/I538: Introduction to Cryptography
Mathematics of Cryptography
Topic 12: Number Theory Basics (2)
Great Theoretical Ideas in Computer Science
Advanced Algorithms Analysis and Design
Advanced Algorithms Analysis and Design
Lecture 3.2: Public Key Cryptography II
Numerical Algorithms x x-1 Numerical Algorithms
Number-Theoretic Algorithms (UNIT-4)
Introduction to Number Theory
Numerical Algorithms x x-1
Applied Symbolic Computation (CS 300) Modular Arithmetic
Number Theory and Euclidean Algorithm
Topic 6: Number Theory Basics
Cryptography Lecture 21.
刘振 上海交通大学 计算机科学与工程系 电信群楼3-509
Countable and Countably Infinite Sets
Applied Symbolic Computation (CS 300) Modular Arithmetic
Great Theoretical Ideas in Computer Science
Systems Architecture I
Classical Ciphers – 2 CSCI284 Spring 2004 GWU
Applied Symbolic Computation (CS 300) Modular Arithmetic
Algorithmic Number Theory and Cryptography (CS 303) Modular Arithmetic
Great Theoretical Ideas in Computer Science
Algebraic Structures: Group Theory
Applied Symbolic Computation (CS 300) Modular Arithmetic
Applied Symbolic Computation (CS 300) Modular Arithmetic
CSCI284 Spring 2009 GWU Sections 5.1, 5.2.2, 5.3
RAYAT SHIKSHAN SANSTHA’S S.M.JOSHI COLLEGE HADAPSAR, PUNE
RAYAT SHIKSHAN SANSTHA’S S. M. JOSHI COLLEGE HADAPSAR, PUNE
RAYAT SHIKSHAN SANSTHA’S S.M.JOSHI COLLEGE, HADAPSAR, PUNE
RAYAT SHIKSHAN SANSTHA’S S. M. JOSHI COLLEGE HADAPSAR, PUNE
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Applied Symbolic Computation (CS 300) Modular Arithmetic
Patrick Lee 12 July 2003 (updated on 13 July 2003)
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Clements MAΘ October 30th, 2014
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
RAYAT SHIKSHAN SANSTHA’S S.M.JOSHI COLLEGE HADAPSAR, PUNE
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Cryptography Lecture 17.
RAYAT SHIKSHAN SANSTHA’S S.M.JOSHI COLLEGE HADAPSAR, PUNE
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Presentation transcript:

Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28 Department of Mathematics Power Point Presentation Topic – Eulers Function Prof. Darekar S.R

The Euler Phi Function Definition Given an integer n, (n) = | Zn*| is the number of all numbers a such that 0 < a < n and a is relatively prime to n (i.e., gcd(a, n)=1). Theorem: If gcd(m,n) = 1, (mn) = (m) (n) Proof. There is a one-to-one mapping between Zmn* and Zm* Zn* x  (x mod m, x mod n) yn(n-1 mod m) + zm (y,z)

The Euler Phi Function Theorem: Formula for (n) Let p be prime, e, m, n be positive integers 1) (p) = p-1 2) (pe) = pe – pe-1 3) If then

Fermat’s Little Theorem If p is a prime number and a is a natural number that is not a multiple of p, then ap-1  1 (mod p) Proof idea: Corollary of Theorem 7.14 gcd(a, p) = 1, then the set { i  a mod p} 0< i < p is a permutation of the set {1, …, p-1}. otherwise we have 0<n<m<p s.t. ma mod p = na mod p, and thus p| (ma - na)  p | (m-n), where 0<m-n < p ) a  2a  … (p-1)a = (p-1)! ap-1  (p-1)! (mod p) Since gcd((p-1)!, p) = 1, we obtain ap-1  1 (mod p)

Euler’s Theorem Given integer n > 1, such that gcd(a, n) = 1 then a(n)  1 (mod n) Corollary of Theorem 7.14 Corollary Given integer n > 1, such that gcd(a, n) = 1 then a(n)-1 mod n is a multiplicative inverse of a mod n. Given integer n > 1, x, y, and a positive integers with gcd(a, n) = 1. If x  y (mod (n)), then ax  ay (mod n).

Consequence of Euler’s Theorem Principle of Modular Exponentiation Given a, n, x, y with n 1 and gcd(a,n)=1, if x  y (mod (n)), then ax  ay (mod n) Proof idea: ax = ak(n) + y = ay (a (n))k by applying Euler’s theorem we obtain ax  ay (mod p)

Chinese Reminder Theorem (CRT) Let n1, n2, ,,, nk be integers s.t. gcd(ni, nj) = 1 for any i  j. There exists a unique solution modulo n = n1 n2 … nk

Proof of CRT Consider the function : Zn Zn1 × Zn2 ×  × Znk (x) = (x mod n1, …, x mod nk) We need to prove that  is a bijection. For 1ik, define mi = n / ni, then gcd(mi,ni)=1 For 1ik, define yi = mi-1 mod ni Define function (a1,a2,…,ak) =  aimiyi mod n, this function inverts  aimiyi  ai (mod ni) aimiyi  0 (mod nj) where i  j

An Example Illustrating Proof of CRT Example of the mappings: n1=3, n2=5, n=15 m1=5, y1=m1-1 mod n1=2, 52 mod 3 = 1 m2=3, y2=m2-1 mod n2=2, 32 mod 5 = 1 (2,4) = (252 + 432) mod 15 = 44 mod 15 = 14 14 mod 3 = 2, 14 mod 5 = 4

Example of CRT: x  5 (mod 7) x  3 (mod 11) x  10 (mod 13) n1=7, n2=11, n3=13, n=1001 m1=143, m2=91, m3=77 y1=143-1 mod 7 = 3-1 mod 7 = 5 y2=91-1 mod 11 = 3-1 mod 11 = 4 y3=77-1 mod 13 = 12-1 mod 13 = 12 x =(5×143×5 + 3×91×4 + 10×77×12) mod 1001 = 13907 mod 1001 = 894

Thank You