Skip to content
Gioi Toan
Start learning
A thick book and a smiling magnifying glass

What is Congruence?

Short answer

A congruence is a way of writing that a is congruent to b modulo m, meaning the two integers a and b have the same remainder when divided by the positive integer m.

Type
Definition
First learned
Grade 7
Symbol
a≡b(modm)a \equiv b \pmod{m}
Also called
đồng dư, quan hệ đồng dư
In English
congruence, modular congruence

Formulas

a≡b(modm)  ⟺  a−b⋮ma \equiv b \pmod{m} \iff a - b \vdots m

Explanation

Given two integers a, b and a positive integer m. We say a is congruent to b modulo m if a and b have the same remainder when divided by m, written a≡b(modm)a \equiv b \pmod{m}.

Congruences have many properties similar to ordinary equalities: you can add, subtract and multiply two congruences with the same modulus. Thanks to this, we can solve many divisibility problems and find remainders.

Congruences often appear in advanced problems about integers, finding the last digit, or proving divisibility.

Examples

Example 1

Prove that 17≡5(mod6)17 \equiv 5 \pmod{6}.

See the solution to example 1

We have 17=6⋅2+517 = 6 \cdot 2 + 5 and 5=6⋅0+55 = 6 \cdot 0 + 5, both leave remainder 5 when divided by 6, so 17≡5(mod6)17 \equiv 5 \pmod{6}.

Common mix-ups

  • The symbol ≡\equiv is not an ordinary equals sign; use it only when the modulus has been stated clearly.
  • You may not divide both sides of a congruence by an arbitrary number if that number is not coprime with the modulus.

Where the name comes from

Dong du is a Sino-Vietnamese word: dong means same, du means remainder, referring to two numbers having the same remainder when divided by a number.

Skills