Fermat's Little Theorem: A Number Magic Trick!
Images

FermatsLittleTheorem
Key Facts
What's the Big Secret?
Imagine you have a special number called a 'prime' number. These are numbers that can only be divided evenly by 1 and themselves, like 2, 3, 5, or 7. Fermat's little theorem is like a magic trick that works with these prime numbers!
It says that if you take any regular number, raise it to the power of a prime number, and then subtract the original number, you'll always get a number that's perfectly divisible by that prime number. It's like a secret handshake for prime numbers!
Who Was Fermat?
A long, long time ago, in the year 1640, a clever mathematician named Pierre de Fermat shared this amazing discovery. He loved playing with numbers and found this cool pattern. He called it his 'little theorem' because he had another, even bigger theorem called 'Fermat's Last Theorem'.
This little theorem is like a helpful tool that mathematicians still use today to understand numbers better. It's like finding a hidden treasure map for numbers!
Let's See the Magic!
Let's try an example! Pick the prime number 7. Now, pick any number, say 2. If you multiply 2 by itself 7 times (that's 2 to the power of 7), you get 128. Now, subtract the original number, 2, from 128. You get 126. Is 126 divisible by 7? Yes! 126 divided by 7 is exactly 18. See? The magic works! It's like a puzzle where the answer is always neat and tidy.
Why Is It So Cool?
This little theorem is super important because it helps us check if a number is truly prime. It's like a special test! If a number doesn't follow Fermat's rule, then it's definitely not a prime number. This helps scientists and computer wizards create super-secure codes for sending secret messages online. So, this old math trick helps keep our secrets safe in the digital world!
Based on content from Wikipedia · Licensed under CC BY-SA 4.0
