Read · 2 min
Reducing in modulo is very helpful in some problems. Let's look at an example:
Example 1: Find the remainder when is divided by .
This problem appears quite scary. If you typed it on your calculator, you would probably get an overflow, so don't try it. Instead, let's approach it using modulo . If we take , we get one. This means that every single is congruent to a in our expression! Similarly, , so every also becomes a ! This means our entire expression is congruent to Yay! We're done!
Unluckily, not all problems reduce this easily.
Example 2: Find the remainder when is divided by .
Although the numbers are not quite as large as the previous problem, this example requires a bit more thinking. One clever approach is to combine the 's and 's like this: Now we can perform a similar trick as the previous problem. We know , hence Uh oh, what do we do now? Let's try to find a way to reduce this. We can separate into , and since , we can substitute and arrive at
Time for one last example!
Example 3: Prove that for any odd prime , is composite.
Although this problem is significantly harder than the previous two, it uses the simple idea of reduction (and a bit of clever thinking).
Let's first show that if , then the expression is composite. Plugging in, we get . Easy.
Now let's show that any prime is divisible by . We know that (there's our reduction), so our expression simply becomes . Now for some casework!
Case 1: . Then we get and we are done here.
Case 2: . Therefore our expression becomes and we are done here as well.
There is no third case because , so therefore is composite for all primes .
Reducing using modulo is very helpful when you need to find a remainder, or simply anything related to remainders and divisibility that consist of large numbers.