WWikiTTheoremsThe integers modulo n have exactly n elements
Theorem·T60
There are exactly n residue classes modulo a positive n.
In words
For a positive modulus n, the integers modulo n are in bijection with the numbers 0 through n minus 1, so there are exactly n residue classes.
Never needed: F10 · A03 · A04 · A05 · A07 · A09 (computed from the citation graph, not asserted).
Proof
- 1The natural number is the set of naturals below it (D029). Define by for (a function by Separation, each having one class). We show is a bijection.
- 2Injective. Let with ; by trichotomy assume (the case is symmetric). Then , so (L73, T04); by D113 this gives for some .
- 3
- 4
- 5
∎
Remarks
The sets
are a complete residue system: every integer is congruent to exactly one of them, its remainder under division by
. This is the count that makes
a finite ring, so Lagrange-style counting and L36 apply to its group of units, the route to Euler and Fermat. For
the quotient is infinite (a copy of
), which is why
is required.