Congruences in Number Theory
📂Number TheoryCongruences in Number Theory
Definition
Given integers a≡b(modm), ⟺, a, b, m, there exists an integer k that satisfies a=b+mk.
Theorem
Assuming a1≡b1(modm) and a2≡b2(modm) are true:
- [1] Addition: a1+a2≡b1+b2(modm)
- [2] Subtraction: a1−a2≡b1−b2(modm)
- [3] Multiplication: a1a2≡b1b2(modm)
- [4] Division: if gcd(c,m)=1, then
ac≡bc(modm)⟹a≡b(modm)
- [5] Product of Modulos: if gcd(m1,m2)=1, then
{a≡b(modm1)a=b(modm2)⟹a≡b(modm1m2)
- [6] Power of Modulo: if a≡b(modmn), then a≡b(modm)
- [7] Reduction including modulo: ax≡ay(modam)⟺x≡y(modm)
Explanation
The equation a≡b(modm) is called a congruence, and within the Modulo m, a is said to be congruent to b. The modulo is often simply pronounced as modulo m, as (mod) is used as is in the formula.
In theorem [4], without the condition gcd(c,m)=1, it is not possible to divide both sides by c. For example, 8≡20(mod12) holds, but 2≡5(mod12), which is divided by 4 on both sides, does not hold.
In dealing with simple number theory problems, m is often set to be a prime number, but as things become complicated, m is set to be a composite number. Therefore, it’s necessary to understand the overall properties of congruence equations.
Proof
[5]
Because of a≡b(modm1), there exists an integer n1 satisfying:
a=b+n1m1
Because of a≡b(modm2), there exists an integer n2 satisfying:
a=b+n2m2
Since m1 and m2 are coprime, for both equations to be satisfied simultaneously, n1 must be a multiple of m2, and n2 must be a multiple of m1. Thus, there exists an integer n3 satisfying:
a=b+n3m1m2
Then, by the definition of congruence:
a≡b(modm1m2)
■
[6]
If a≡b(modmn), then there exists an integer k satisfying:
a=b+mnk
Detaching mn−1 gives:
a=b+mnk⋅n=b+m⋅(mn−1k)
Thus, there exists an integer mn−1k satisfying:
a≡b(modm)
■
[7]
For some integer k,
ax≡ay(modam)⟺ax=ay+amk⟺x=y+mk⟺x≡y(modm)
■