Finding the remainder of a congruence involves simplifying the expression to find a smaller, non-negative integer that is equivalent (congruent) to the original expression modulo a given number. Here's a breakdown of the process:
Understanding Congruence
Two integers, a and b, are congruent modulo n if their difference (a - b) is divisible by n. This is written as:
a ≡ b (mod n)
This means a and b have the same remainder when divided by n.
Methods for Finding Remainders
Several techniques can be used to simplify a congruence and find the remainder:
-
Direct Division: If the numbers are small enough, you can directly divide a by n and find the remainder. This remainder is congruent to a (mod n).
Example: 17 ≡ 3 (mod 7) because 17 divided by 7 has a remainder of 3.
-
Simplifying with Modular Arithmetic Rules:
- Addition/Subtraction: If a ≡ b (mod n) and c ≡ d (mod n), then a + c ≡ b + d (mod n) and a - c ≡ b - d (mod n).
- Multiplication: If a ≡ b (mod n), then ac ≡ bc (mod n).
- Exponentiation: If a ≡ b (mod n), then ak ≡ bk (mod n) for any positive integer k.
-
Reducing Intermediate Values: During calculations (especially with large numbers or exponents), reduce intermediate results modulo n to keep the numbers manageable.
Example: To find 2124 (mod 7), we can observe that 23 = 8 ≡ 1 (mod 7). Then, we can rewrite 2124 as (23)41 * 21. Therefore:
2124 ≡ (1)41 * 2 ≡ 2 (mod 7)
So, the remainder is 2.
-
Using Euler's Theorem or Fermat's Little Theorem:
- Euler's Theorem: If a and n are coprime (i.e., their greatest common divisor is 1), then aφ(n) ≡ 1 (mod n), where φ(n) is Euler's totient function (the number of integers less than n that are coprime to n).
- Fermat's Little Theorem: If p is a prime number, then for any integer a not divisible by p, ap-1 ≡ 1 (mod p). This is a special case of Euler's Theorem.
Example: Find 312 (mod 5). Since 5 is prime, we can use Fermat's Little Theorem: 34 ≡ 1 (mod 5). Then, 312 ≡ (34)3 ≡ 13 ≡ 1 (mod 5). So, the remainder is 1.
Example Walkthrough
Let's find the remainder when 2124 is divided by 7.
-
Look for a pattern or smaller power: Calculate the remainders of small powers of 2 modulo 7:
- 21 ≡ 2 (mod 7)
- 22 ≡ 4 (mod 7)
- 23 ≡ 8 ≡ 1 (mod 7)
-
Use the pattern: Since 23 ≡ 1 (mod 7), we can write 2124 as (23)41 * 21.
-
Simplify: 2124 ≡ (1)41 2 ≡ 1 2 ≡ 2 (mod 7)
Therefore, the remainder is 2.
Conclusion
Finding the remainder of a congruence often involves simplifying the expression using properties of modular arithmetic and looking for patterns to reduce large numbers to smaller, manageable ones. Euler's theorem and Fermat's Little Theorem can be very powerful tools in specific situations. Ultimately, the goal is to find a number between 0 and n-1 that is congruent to the original expression modulo n.