The Euler theorem states that if , then
Let be the reduced residue classes modulo . Multiplication by permutes them, so
Their product is a unit and may be cancelled, proving the theorem.
A relation on is a subset of . An equivalence relation is reflexive, symmetric, and transitive. Its equivalence class at is .
The Wilson theorem states that for a prime ,
Indeed, every nonzero residue modulo has a unique multiplicative inverse. The only residues equal to their own inverses solve , hence are and . Pairing every other residue with its distinct inverse leaves
The Fermat little theorem states that for prime ,
equivalently, if , then .
Wilson's theorem at gives
so . Also , and therefore

There are unlisted articles, also show them or only show them.