






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







ap^ = a (mod p) Or ap-1=1 mod p
*We are skipping finite fields for now
gcd(a, b) → gcd(a (mod b), b)
Example:
steps gcd(21, 12) = gcd(21 (mod 12), 12) = gcd(9, 12) = gcd(12 (mod 9), 9) = gcd(3, 9) = gcd(9 (mod 3), 3) = gcd(0, 3) = 3.
gcd( a , b )=gcd( b , a mod b )
Eculidean(a,b)
Extended Euclidean algorithm (2)
Extended Euclidean algorithm (3)