Search the courses, subjects, tracks, games and features, or jump straight to a page.
Learn it your way
A short class with Sarah and her students. The other ways are under More.
Sign up free to listen. Transcripts are free to read.
Let's begin with Fermat's Little Theorem, which states that if p is a prime and a is an integer such that p does not divide a, then a^(p-1) ≡ 1 (mod p). This means if you raise a to the power of one less than the prime and divide by p, you’ll get a remainder of 1.
So, if I take 5 as a and 7 as p, should I expect 5^(7-1) mod 7 = 1?
Exactly! You would calculate 5^6 mod 7 and get 1. This theorem is a powerful tool in number theory.
Why is it called a 'Little' theorem?
Good question! It distinguishes it from Fermat's Last Theorem, which is quite different and much more complex.
Now, let's explore a corollary of Fermat's Little Theorem, namely a^p ≡ a (mod p) for any integer a.
That sounds interesting! How do we prove that?
We can split it into two cases: If p divides a, then both leave remainder 0. If not, we use Fermat’s theorem.
So basically, no matter what, we always get a mod p back from a^p?
Precisely! It's a robust property of primes.
Let’s see a practical application, like calculating 7222 mod 11.
Can we directly compute like a calculator?
We could, but using Fermat’s theorem allows faster calculations! First, notice that GCD(7, 11) = 1, so we can apply the theorem.
Wait, how do we break down 7222?
Rewrite it: 7222 = 7^2 * 10^2 + 2. Then simplify using 7^10 mod 11 ≡ 1.
So we conduct everything mod 11?
Correct! You will find it becomes much easier and gives you 5 mod 11.
Fermat's theorem also helps in primality testing. You can select an integer b co-prime to n to check if b^(n-1) ≡ 1 mod n holds.
So if it does not hold, we can say n is composite?
Exactly! However, if it does hold, it's not guaranteed that n is prime.
Why is that a problem?
Carmichael numbers are tricky—they behave like primes under Fermat’s test, though they are composite!
To wrap up, Carmichael numbers are composites that still satisfy the theorem for all bases.
So no matter how many bases we test, we could still misclassify them, right?
Exactly! For example, 561 is a Carmichael number but isn't prime.
So, how do mathematicians deal with these?
Advanced tests beyond Fermat’s are needed to ensure reliable primality assessments.
So Fermat's theorem is powerful—but not foolproof!
Yes, that's a great summary! Always consider its limitations.
A key principle for calculations involving prime numbers and modular arithmetic.
A method facilitated by Fermat's theorem to establish if numbers are prime.
Specific composite numbers that complicate primality testing due to their misleading properties.
Fermat's little rule does decree, primes hold true, don’t you see?
Once there was a prime named p. All his friends, non-multiples of p, raised to the power of (p-1), danced perfectly congruent to 1 in their modulo home.
FLTP - Fermat's Little Theorem Primes: For any integer a, if p primes, a^p-1 ≡ 1.
FLOP - Fermat's Little Operation for Primes: F.p - Little - Operation - Prime.
Term
Fermat's Little Theorem
Click to flip
Term
Carmichael Number
Click to flip
A theorem stating that if p is a prime number and a is an integer such that p does not divide a, then a^(p-1) ≡ 1 (mod p).
Composite numbers that satisfy the conditions of Fermat's Little Theorem for all bases co-prime to them.
Methods for determining whether a given number is prime.
A system of arithmetic for integers in which numbers wrap around upon reaching a certain value (the modulus).
A proposition that follows from one already proven, in this case, a consequence of Fermat's Little Theorem.
Fermat's Little Theorem provides a method for primality testing and has applications in modular arithmetic involving prime numbers.
The section discusses Fermat's Little Theorem and its implications for primality testing, highlighting corollaries, the significance of Carmichael numbers, and practical methods of calculating large powers modulo a prime. It illustrates how the theorem can be effectively applied in various mathematical scenarios.
Fermat's Little Theorem states that if p is a prime number and a is an integer such that p does not divide a (indicated as p ∤ a), then the equation a^(p-1) ≡ 1 (mod p) holds. This theorem is particularly useful in primality testing and computation in modular arithmetic.
An interesting corollary derived from Fermat's Theorem is that for any integer a, a^p ≡ a (mod p), applicable for all integers a. This can be proven through two cases:
The theorem simplifies calculations involving large powers of integers modulo prime numbers. For instance, calculating 7222 mod 11 can involve breaking it down using the theorem, which ultimately leads to efficient computation without complex programming.
Fermat's theorem also forms the basis for primality tests. To ascertain if a number n is prime, an integer b co-prime to n can be selected to check if b^(n-1) ≡ 1 (mod n). If this condition fails, n is composite. However, a success does not guarantee primality, as demonstrated with the Carmichael number example, illustrating that some composites can behave like primes in this test.
Carmichael numbers raise concerns in primality testing, being composite numbers that satisfy Fermat's theorem for any base b that is co-prime to them. Thus, even with multiple tests, one can falsely classify them as primes. An example is the number 561, which possesses prime factors leading to it behaving as a prime under Fermat’s conditions.
In conclusion, while Fermat's Little Theorem aids significantly in both modular arithmetic and primality testing, it is critical to recognize its limitations, particularly regarding Carmichael numbers.