Modular Arithmeticmedium
0:00.0

If gcd(a,n)=1\gcd(a, n) = 1, then by Euler's Totient Theorem, aϕ(n)?(modn)a^{\phi(n)} \equiv ? \pmod{n}.