Math 2.0

Number theory Definition

Congruence modulo n

Builds on Divisibility

Definition

Let nn be a positive integer, and let aa and bb be integers. The integer aa is congruent to bb modulo nn when nn divides a−ba - b. The notation is a≡b(modn)a \equiv b \pmod{n}. The integer nn is the modulus of the congruence.

Remarks

Equivalently, a≡b(modn)a \equiv b \pmod n if and only if aa and bb have the same remainder on division by nn, that is, a mod n=b mod na \bmod n = b \bmod n. Congruence modulo nn is an equivalence relation on the integers. Its classes are the residue classes modulo nn. For example, 38≡14(mod12)38 \equiv 14 \pmod{12}, because 12∣2412 \mid 24. Some texts allow each integer nn as a modulus. Then congruence modulo 00 is equality, and congruence modulo −n-n is congruence modulo nn.

Reading path

To understand this page from the ground up, read these 2 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Divisibility definition
  2. Congruence modulo n definition

Where this leads

63 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Modular_arithmetic, Congruence
About this page