A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Properties of Congruences

Graduate Depth 77 in the knowledge graph I know this Set as goal
144topics build on this
364prerequisites beneath it
See this on the map →
Modular Arithmetic and CongruencesFermat's Little TheoremOrder of an Element Modulo n+3 more
congruences modular-arithmetic properties

Core Idea

Congruences mod n form an equivalence relation: a ≡ b (mod n) iff n|(a-b). They respect addition, subtraction, and multiplication. If gcd(a,n) = 1, division is possible. These properties make congruences a powerful algebraic tool for number theory.

Explainer

From your study of modular arithmetic, you know that a ≡ b (mod n) means a and b leave the same remainder when divided by n — equivalently, n divides (a − b). What congruences gain from being an equivalence relation is structure: they carve the integers into n disjoint residue classes (the classes 0, 1, 2, ..., n−1), and every integer belongs to exactly one. You can think of the integers as being "folded" onto a circle of n positions, and two numbers are congruent precisely when they land on the same position.

The arithmetic rules follow directly from this picture. If a ≡ b (mod n) and c ≡ d (mod n), then a + c ≡ b + d and a × c ≡ b × d (mod n). To see why multiplication works: a = b + kn and c = d + ln for some integers k, l, so ac = (b + kn)(d + ln) = bd + (bl + dk + kln)n. The extra terms are all multiples of n, so ac and bd land on the same residue class. This means you can reduce intermediate results at any stage of a computation — a powerful shortcut when doing arithmetic mod n.

Division is the subtler operation. You cannot always divide both sides of a congruence by a common factor and preserve the modulus. For example, 6 ≡ 2 (mod 4), but dividing by 2 gives 3 ≡ 1 (mod 4), which is false. Division works cleanly only when the divisor is coprime to n — that is, gcd(a, n) = 1. In that case, a has a multiplicative inverse mod n, a unique number a⁻¹ such that a·a⁻¹ ≡ 1 (mod n). Multiplying both sides by a⁻¹ is valid division. When gcd(a, n) = d > 1, you can still cancel a from ac ≡ ab (mod n), but the modulus shrinks: c ≡ b (mod n/d).

These properties are what make congruences a genuine algebraic system rather than just notation. The set {0, 1, ..., n−1} under addition and multiplication mod n forms a ring (written ℤ/nℤ); when n is prime, every nonzero element has a multiplicative inverse and it becomes a field. This algebraic lens is what powers everything downstream — Fermat's little theorem, Euler's theorem, and the Legendre symbol all live inside this structure. Whenever you see a proof that "reduces mod p," the congruence properties are the invisible machinery making each step valid.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesSet Operations: Union, Intersection, and ComplementProof by CasesProving by Cases and ExhaustionVacuous Truth and Trivial CasesProof by Cases (Proof by Exhaustion)Mathematical InductionDivisibility and Greatest Common DivisorThe Euclidean AlgorithmModular Arithmetic and CongruencesProperties of Congruences

Longest path: 78 steps · 364 total prerequisite topics

Prerequisites (1)

Leads To (5)