In everyday life, when we divide a number by another, we often focus on the remainder left after division. For example, if you have Rs.38 and you pay Rs.10 notes, you will have Rs.8 left after giving out three Rs.10 notes. This idea of focusing on the remainder is the foundation of congruence in mathematics.
Congruence is a way to say that two numbers have the same remainder when divided by a certain number, called the modulus. This concept is very useful in number theory and appears frequently in competitive exams.
We write this relationship as:
\[ a \equiv b \pmod{m} \]
This reads as: "a is congruent to b modulo m."
Here, \(a\) and \(b\) are integers, and \(m\) is a positive integer called the modulus. This means that when \(a\) and \(b\) are divided by \(m\), they leave the same remainder.
Two integers \(a\) and \(b\) are said to be congruent modulo \(m\) if their difference \((a - b)\) is exactly divisible by \(m\). In other words, \(m\) divides \((a - b)\).
\[ a \equiv b \pmod{m} \iff m \mid (a - b) \]
Here, the symbol \(\mid\) means "divides". So, \(m \mid (a - b)\) means \(a - b\) is a multiple of \(m\).
For example, consider \(a = 38\), \(b = 8\), and \(m = 10\). Then, \(38 - 8 = 30\), and since 30 is divisible by 10, we say:
\[ 38 \equiv 8 \pmod{10} \]
Congruence has three important properties that make it an equivalence relation:
The modulo operation finds the remainder when one number is divided by another. For example, \(38 \mod 10 = 8\) because when 38 is divided by 10, the remainder is 8.
Every integer belongs to a residue class modulo \(m\), which is the set of all integers that leave the same remainder when divided by \(m\).
For modulus \(m = 5\), the possible remainders (or residues) are 0, 1, 2, 3, and 4. These form the residue classes:
| Integer \(a\) | Residue \(a \mod 5\) | Residue Class |
|---|---|---|
| 7 | 2 | \(\{..., -8, -3, 2, 7, 12, 17, ...\}\) |
| 13 | 3 | \(\{..., -7, -2, 3, 8, 13, 18, ...\}\) |
| 20 | 0 | \(\{..., -10, -5, 0, 5, 10, 15, 20, ...\}\) |
Notice that all integers in the same residue class are congruent modulo 5.
Congruence is preserved under addition, subtraction, and multiplication. This means:
\[ \begin{cases} a \equiv b \pmod{m}, \quad c \equiv d \pmod{m} \\ \Rightarrow a + c \equiv b + d \pmod{m} \\ a - c \equiv b - d \pmod{m} \\ a \cdot c \equiv b \cdot d \pmod{m} \end{cases} \]
This property allows us to simplify calculations by reducing numbers modulo \(m\) at every step.
Step 1: Calculate the difference \(38 - 8 = 30\).
Step 2: Check if 30 is divisible by 10.
Since \(30 \div 10 = 3\) with no remainder, 30 is divisible by 10.
Answer: Therefore, \(38 \equiv 8 \pmod{10}\) is true.
Step 1: We want to find \(x\) such that when multiplied by 7 and divided by 11, the remainder is 1.
Step 2: This means \(x\) is the modular inverse of 7 modulo 11.
Step 3: Find \(x\) such that \(7x \equiv 1 \pmod{11}\). Try values of \(x\) from 1 to 10:
Step 4: Since \(7 \times 8 \equiv 1 \pmod{11}\), the modular inverse of 7 modulo 11 is 8.
Answer: \(x = 8\).
Step 1: Directly calculating \(3^{100}\) is impossible by hand, so use modular arithmetic properties.
Step 2: Find the pattern of powers of 3 modulo 7:
Step 3: Notice that \(3^6 \equiv 1 \pmod{7}\). This means powers of 3 repeat every 6 steps modulo 7.
Step 4: Express 100 as \(100 = 6 \times 16 + 4\).
Step 5: Using this,
\[ 3^{100} = 3^{6 \times 16 + 4} = (3^6)^{16} \times 3^4 \equiv 1^{16} \times 3^4 \equiv 3^4 \pmod{7} \]
From Step 2, \(3^4 \equiv 4 \pmod{7}\).
Answer: The remainder when \(3^{100}\) is divided by 7 is 4.
Step 1: Find residues of 15 and 28 modulo 6:
Step 2: Use the property \(a + b \equiv (a \mod m) + (b \mod m) \pmod{m}\):
\[ (15 + 28) \mod 6 \equiv (3 + 4) \mod 6 = 7 \mod 6 = 1 \]
Answer: \((15 + 28) \mod 6 = 1\).
Step 1: The moduli 3, 5, and 7 are pairwise coprime.
Step 2: The product of moduli is \(M = 3 \times 5 \times 7 = 105\).
Step 3: Calculate \(M_i = \frac{M}{m_i}\) for each modulus:
Step 4: Find modular inverses \(y_i\) such that \(M_i y_i \equiv 1 \pmod{m_i}\):
Step 5: Calculate \(x\) using the formula:
\[ x \equiv \sum_{i=1}^3 a_i M_i y_i \pmod{M} \]
Where \(a_1=2, a_2=3, a_3=2\).
\[ x \equiv 2 \times 35 \times 2 + 3 \times 21 \times 1 + 2 \times 15 \times 1 = 140 + 63 + 30 = 233 \]
Step 6: Find \(x \mod 105\):
\[ 233 \mod 105 = 233 - 2 \times 105 = 233 - 210 = 23 \]
Answer: \(x \equiv 23 \pmod{105}\). So, \(x = 23\) is a solution.
When to use: When dealing with large numbers or complex expressions in modular arithmetic.
When to use: When solving modular equations or simplifying expressions.
When to use: When solving linear congruences involving modular inverses.
When to use: When calculating remainders of large powers.
When to use: When first learning modular arithmetic or verifying congruences.
Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.
Go to practice →