My Adventures in Math and Technology
© Daniel Marvin.
Fermat's Little Theorem states that if \(p\) is a prime number, then for any integer \(a\), the number \(a^p - a\) is an integer multiple of \(p\),
When \(\gcd(a, p) = 1\), then,