1 Euler’s Theorem
- Euler Function: ϕ(n)::= the number of integers in [0…n),that are relatively prime to n.
- Euler Theorem: If n and k are relatively prime, then:
kϕ(n)=1 mode(n) - Fermat’s Little Theorem: Suppose p is a prime and k is not a
multiple of p. Then:
kp−1=1 mode(p) - Computing Euler Function:
(a)If p is a prime, then: ϕ(pk)=pk−pk−1 for k≥1 .
(b)If a and b are relatively prime, then: ϕ(ab)=ϕ(a)ϕ(b) .
2 RSA Public Key Encryption
Reference
[1] Lehman E, Leighton F H, Meyer A R. Mathematics for Computer Science[J]. 2015.