Math for Non-Math Majors
Fermat's Little Theorem states that if 'p' is a prime number and 'a' is an integer not divisible by 'p', then $$a^{(p-1)} \equiv 1 \mod p$$. This means when you raise 'a' to the power of one less than the prime number and divide it by 'p', the remainder will always be 1. This theorem is a fundamental concept in number theory and lays the groundwork for more advanced topics in modular arithmetic, particularly in the context of cryptography and prime number properties.
congrats on reading the definition of Fermat's Little Theorem. now let's actually learn it.