Alright, congruence modulo n one of the most confusing concepts in math that somehow manages to sound like a fancy word salad. Don’t Worry! We’re here to break it down and make it as simple as possible for you.
First: what is congruence? Well, let’s say we have two numbers let’s call them “a” and “b”. If when we divide both of these numbers by a certain number (let’s call that n), they leave the same remainder, then those two numbers are said to be congruent modulo n.
For example: if you have 17 divided by 5, it leaves a remainder of 2. If we also divide 34 by 5, it also leaves a remainder of 2. So 17 and 34 are congruent modulo 5! We write this as:
17 34 (mod 5)
Now that you understand what congruence is, why we care about it in math. Well, for starters, it helps us simplify calculations and make them easier to work with. Let’s say we want to calculate the value of 6^41 modulo 7. This might seem like a daunting task at first glance, but using congruence can help us break it down into smaller steps that are much simpler to compute:
First, let’s find out what happens when we square 6 (mod 7):
6^2 = 36
Now, if you remember your modular arithmetic, you know that any number raised to an even power is congruent to 1 modulo n. So:
36 1 (mod 7)
Great! Now we can simplify our calculation for 6^41 by using this fact:
6^41 = 6 * (6^2)^20
Now, let’s use congruence again to simplify the second part of that equation. Remember, if a is congruent to b modulo n and p is any integer, then a^p is also congruent to b^p modulo n:
(6^2)^20 = (1)^20 1^20 (mod 7)
So we can simplify our calculation even further:
6^41 = 6 * 1^20
Now, let’s do some modular arithmetic to find out what happens when we multiply 6 by 1 raised to the power of 20. The answer is that it leaves a remainder of 3 (mod 7), so:
6^41 = 3 (mod 7)
Using congruence, we were able to simplify our calculation from something incredibly complex and difficult to compute into something much simpler.
So next time you’re faced with a daunting math problem that involves modular arithmetic, remember: break it down using congruence, and watch as the complexity melts away!