n : Prime no.
x : +ve integer not divisible by n ()
We get this from the fact that Φ(n) = n -1 when n is prime
when GCD(x, n) = 1
xn−1≡1modn
n : Prime no.
x : +ve integer not divisible by n (x≡modn)
We get this from the fact that Φ(n) = n -1 when n is prime
xΦ(n)+1≡xmodn when GCD(x, n) = 1
xn≡xmodn