How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced — the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted — a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated — a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Congruences, the Integers Modulo n and the Chinese Remainder Theorem
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Inclusion–Exclusion, the Pigeonhole Principle and Double Counting
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Relations, Functions, and Quotients
- Roots, Rational Powers, and Classical Inequalities
- The ZFC Axioms and the Basic Set Constructions
2 · Summary
Congruence turns divisibility into an equivalence relation and hence into the quotient , where addition and multiplication are independent of representatives. The boundary moduli are part of the construction: congruence modulo is equality, congruence modulo is universal, and is the one-element ring rather than a field. For positive moduli, units are exactly the coprime residue classes, so their number is Euler's totient. Linear congruences are reduced by their gcd, giving both their solvability criterion and their exact number of solution classes.
The two-modulus theorem first proves the full compatibility criterion: residues modulo positive coexist exactly when divides their difference, and then determine one class modulo . Its coprime specialization extends to finite pairwise-coprime lists and preserves both operations. This yields multiplicativity of , while inclusion-exclusion gives Euler's finite prime-divisor product. Partitioning standard residues by gives . Finally, prime modulus makes a field, and inverse pairing in its unit group proves Wilson's theorem.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Congruence modulo an integer: when , including the moduli and
Definition
Let . We say that is congruent to modulo , and write
when in the sense of Divisibility in : when for some integer . Thus there is an integer with . The modulus is any integer; it is not required to be positive.
At modulus , the condition is , which holds exactly when . Hence
At modulus , every two integers are congruent because divides every integer. Changing the sign of the modulus changes nothing: exactly when .
Remarks
- Congruence is a relation on integers. The quotient sets and operations below use nonnegative or positive moduli only where their statements require it.
- The notation is not used for a chosen remainder here. The relation is defined even for , where a remainder operation would not be available.
Congruence modulo every integer is an equivalence relation on
Statement
For every integer , the relation on (Congruence modulo an integer: when , including the moduli and ) is an equivalence relation (Equivalence relation, equivalence class, and the quotient set ). For it is equality, and for it is the universal relation.
Facts & Assumptions
Given: An integer and integers .
Divisibility is reflexive and linear: and imply for all integers ; also implies (Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and ).
An equivalence relation is reflexive, symmetric and transitive (Equivalence relation, equivalence class, and the quotient set ).
Proof
Reflexivity: , so and .
Symmetry: if , then , hence , so .
Transitivity: if and , then and , hence , so .
Steps 1.1, 1.2 and 1.3 establish the three clauses in [F2], so congruence modulo is an equivalence relation.
When , [F1] reads , which is equivalent to ; when , it always holds because .
Congruent integers may be added, subtracted and multiplied: representative changes preserve both arithmetic operations
Statement
Let . If and , then
In particular , and for every the natural powers of Powers : natural exponents in a monoid and integer exponents in a group, with satisfy .
Facts & Assumptions
Given: Integers with and .
If and , then for all integers ; also implies and (Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and ).
is a commutative ring, so subtraction, distributivity and the identities used below are valid (The integers form a commutative ring).
Natural powers in the multiplicative monoid of satisfy and (Powers : natural exponents in a monoid and integer exponents in a group, with ).
A property true at and inherited by successors holds for every natural number (The principle of mathematical induction).
Proof
By [F1], and .
Since , linearity gives .
Since , linearity gives ; also gives , so .
The identity and linearity give , hence .
The power claim holds at because . If it holds at , then step 2.3 applied to and gives . Thus it holds for every by induction.
The congruence class and the quotient set
Definition
Fix an integer . Congruence modulo is an equivalence relation on by Congruence modulo every integer is an equivalence relation on . The congruence class of modulo is
and the integers modulo form the quotient set
This is the quotient-set construction of Equivalence relation, equivalence class, and the quotient set . By The equivalence classes of an equivalence relation are nonempty, cover , and are pairwise equal or disjoint; conversely every such cover arises from exactly one equivalence relation, two classes are equal exactly when their representatives are congruent:
At each class is a singleton because congruence modulo is equality. At there is one class, namely itself.
Remarks
- The notation in this item denotes a quotient set. It does not yet assert any algebraic structure.
- Since congruence modulo and modulo are the same relation, their quotient sets are literally the same collection of subsets of .
For , every class in has one representative with , so ; while is in bijection with
Statement
Let be a positive integer. Every class in (The congruence class and the quotient set ) contains exactly one integer with . Consequently the map
is a bijection from the von Neumann natural to , and . This includes , where the only representative is . For , the map is a bijection .
Facts & Assumptions
Given: A positive integer and integers ; separately, the modulus .
For there are unique integers with and (Division with remainder in : for and there are unique with and ).
exactly when (The congruence class and the quotient set ).
The natural-number embedding into is injective and has image the nonnegative integers; the von Neumann natural is the set of naturals (The naturals embed in the integers, The natural numbers (von Neumann)).
A bijection transports finite cardinality, and (Injection, surjection, bijection, The cardinality of a finite set).
Proof
By [L1], write with . Then , so .
If and , then for some integer , so . Both and express with a remainder in the range from to , so uniqueness in [L1] gives .
At modulus , [F1] says exactly when , exactly when . Hence is injective, and it is surjective by the definition of the quotient set.
Thus from the natural to is surjective by step 1.1 and injective by step 1.2, hence bijective.
Since is finite with cardinality , the bijection in step 2.1 gives . At its domain is , so there is one class.
Steps 1.1 through 3.1 prove the positive-modulus statement, and step 1.3 proves the bijection at modulus .
Addition and multiplication on by and
Definition
Let , including and . For classes in (The congruence class and the quotient set ) define
These are binary operations in the sense of Binary operation on a set; associativity, commutativity, and a subset closed under the operation. Indeed, if and , then and , so
by Congruent integers may be added, subtracted and multiplied: representative changes preserve both arithmetic operations. Thus the two displayed classes do not depend on the representatives chosen.
For , every class is a singleton and these operations reproduce integer addition and multiplication under the bijection . For , the quotient has one element, so and both operations are the unique binary operation on a one-element set.
Remarks
- The representative-independence argument is part of the definition. Without it the displayed formulas would be rules on integers, not operations on classes.
- No field assertion is made here. In particular, the coincidence will exclude from being a field.
For every natural , is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold
Statement
For every , with addition and multiplication as in Addition and multiplication on by and :
- is an abelian group (Group and abelian group), with ;
- is a commutative monoid (Semigroup and monoid);
- multiplication distributes over addition on both sides.
The assertions include and . At , the two distinguished identities coincide because .
Facts & Assumptions
Given: A natural number and classes in .
and , and these values are independent of representatives (Addition and multiplication on by and ).
is a commutative ring: addition and multiplication are associative and commutative, and are identities, every integer has an additive inverse, and multiplication distributes over addition (The integers form a commutative ring).
An abelian group is an associative commutative binary operation with an identity and inverses; a commutative monoid is an associative commutative binary operation with an identity (Group and abelian group, Semigroup and monoid).
Proof
Associativity and commutativity of addition follow from and .
The class is an additive identity, and is an additive inverse of , since and .
Associativity and commutativity of multiplication follow from and , while is a multiplicative identity because .
Left distributivity is ; right distributivity follows identically, or from commutativity.
Steps 1.1 and 1.2 verify the abelian-group clauses, step 1.3 verifies the commutative-monoid clauses, and step 1.4 gives both distributive laws.
The unit group and Euler's totient for
Definition
Let be an integer. Multiplication makes a commutative monoid with identity by For every natural , is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold. A class is a unit when it is invertible in that monoid (Left inverse, right inverse, and invertible element of a monoid). The set of all units is
By The invertible elements of a monoid form a group under the restricted operation, multiplication restricts to a group operation on , called the unit group modulo .
The quotient is finite with cardinality by For , every class in has one representative with , so ; while is in bijection with , and its unit set is a finite subset by A subset of a finite set is finite, with , and equality holds if and only if . Euler's totient function is therefore defined for every positive integer by
(The cardinality of a finite set). For , the quotient has one element, which is its multiplicative identity and hence a unit, so follows from the definition.
Remarks
- The domain of here is the positive integers. No value is defined.
- The one-element multiplicative monoid is a group, even though its identity is also its additive zero. It is not a field because a field requires distinct elements and (Field).
For , is a unit if and only if
Statement
Let and . Then is a unit of (The unit group and Euler's totient for ) if and only if
that is, if and only if and are coprime (Coprime integers: ). Consequently the condition depends only on the class .
Facts & Assumptions
Given: A positive integer and an integer .
Integers are coprime exactly when for some integers ( and are coprime if and only if for some integers ; and in that case the only common divisors of and are and , Bézout's identity: for integers not both zero, is the least positive element of ; in particular has an integer solution, Common divisor, and the greatest common divisor , with the convention , Coprime integers: ).
The class is a unit exactly when some satisfies (The unit group and Euler's totient for ).
If an integer divides two integers, it divides every integer linear combination of them (Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and ).
Proof
Suppose . By [L1], choose integers with . Reducing this equality modulo gives , so is a unit.
Conversely, suppose is a unit. Choose with . Then , so for some integer , and . By [L1], .
If and , write . A Bézout identity then becomes , so by [L1]; symmetry gives the converse. Thus the criterion is representative independent.
Steps 1.1 and 1.2 prove the equivalence, and step 1.3 proves its final representative-independence assertion.
, and for every prime
Statement
Euler's totient satisfies . If is prime (Prime and composite integers: is prime when and its only positive divisors are and ), then
Facts & Assumptions
Given: A prime integer .
is the cardinality of the unit group of for positive , and a class is a unit exactly when its representative is coprime to (The unit group and Euler's totient for , For , is a unit if and only if ).
For a prime , if then (For a prime and any integer , is when and otherwise; so makes and coprime).
The standard representatives modulo a positive are the unique integers with , and there are of them (For , every class in has one representative with , so ; while is in bijection with , The cardinality of a finite set).
A subset of a finite set is finite (A subset of a finite set is finite, with , and equality holds if and only if ).
A prime integer satisfies (Prime and composite integers: is prime when and its only positive divisors are and ).
Proof
Modulo there is one class, and it is the multiplicative identity, hence a unit. Therefore .
Let . If , then , so is not a unit by the unit criterion. If , then : otherwise with and , forcing and , contrary to .
For , [L1] gives , hence , so is a unit by the unit criterion. Thus the units are exactly the classes with representatives .
Translation by is a bijection from the natural onto the representatives with . Hence that finite set, and therefore the unit group, has cardinality .
By [F1] and step 3.1, ; together with step 1.1 this proves both clauses.
For a prime and , multiplication by bijects the standard representatives modulo with the representatives modulo divisible by
Statement
Let be prime and let with . Write for the unique natural with . Multiplication by gives a bijection
Thus the standard representatives modulo divisible by are exactly , and there are of them.
Facts & Assumptions
Given: A prime and a natural .
For a positive modulus , the standard representatives are the integers with , and there are of them (For , every class in has one representative with , so ; while is in bijection with , The cardinality of a finite set).
A map is bijective when it is injective and surjective (Injection, surjection, bijection).
If and , then (The integers have no zero divisors; multiplicative cancellation).
A prime satisfies , hence and (Prime and composite integers: is prime when and its only positive divisors are and ).
Proof
If , then , and . Thus the displayed rule has values in the stated codomain.
The rule is injective: implies because .
It is surjective: if and , write . Since , the inequalities give after using .
Steps 1.1, 1.2 and 1.3 give a bijection, and [F2] transports the domain cardinality to the codomain.
For a prime and ,
Statement
For every prime and natural ,
Equivalently, among the standard classes modulo , the nonunits are exactly those whose standard representatives are divisible by .
Facts & Assumptions
Given: A prime , a natural , and an arbitrary standard representative with .
A class is a unit exactly when (For , is a unit if and only if , The unit group and Euler's totient for ).
Every positive integer is a finite product of primes, and two finite prime products with the same value have the same factors up to a permutation (The fundamental theorem of arithmetic: every integer is a product of primes, and the factorisation is unique up to order — if with every and prime, then and for some ).
Every prime exceeds (Prime and composite integers: is prime when and its only positive divisors are and ).
The gcd of a nonzero pair is its greatest common divisor: it is a common divisor, it is at least every common divisor, and divisibility is transitive. Hence every divisor of divides both and (Common divisor, and the greatest common divisor , with the convention , Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and ).
The standard representatives modulo divisible by have cardinality (For a prime and , multiplication by bijects the standard representatives modulo with the representatives modulo divisible by ).
The standard representatives modulo map bijectively to , which has cardinality , and is the cardinality of its unit subset (For , every class in has one representative with , so ; while is in bijection with , The unit group and Euler's totient for ).
A finite disjoint union has cardinality equal to the sum of the cardinalities of its blocks (The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, The cardinality of a finite set).
Proof
If , then is a common divisor of and . Since by [F1], the greatest-common-divisor property in [F2] gives , so is not a unit.
Suppose , so and are coprime by [L2]. If , [L3] gives a prime dividing that gcd. Then [F2] gives and . Uniqueness of prime factorisation applied to , a product of copies of , forces , contradicting the coprimality of and . Hence , so is a unit.
Since was arbitrary, the standard representatives split disjointly into the unit representatives and the representatives divisible by . The whole set has cardinality by [L5], and the second block has cardinality by [L4].
By the sum rule, in , so .
If , and , then reduces to a congruence with coprime coefficient modulo
Statement
Let , let , and put . If , write
Then , the integers are coprime, and for every ,
Thus the reduced modulus is the positive integer and its coefficient is coprime to it (Congruence modulo an integer: when , including the moduli and ).
Facts & Assumptions
Given: Integers , a positive integer , , and .
The gcd is a nonnegative common divisor, and it is positive when its two arguments are not both zero (Common divisor, and the greatest common divisor , with the convention ).
If , then the uniquely determined quotients and are coprime (If is nonzero then and are coprime, The integers have no zero divisors; multiplicative cancellation).
means for some integer , and divisibility is preserved by integer linear combinations (Divisibility in : when for some integer , Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and ).
Proof
Since , the pair is not , so by [L1]. Because divides , there are integers with , and ; these quotients are unique by cancellation, , and are coprime by [L2].
For any integer , the congruence says , so it holds exactly when there is an integer with ; since , cancellation makes this equivalent to , namely .
For , is solvable exactly when , and then has exactly solution classes modulo
Statement
Let and , and put . The congruence
has an integer solution if and only if . When it is solvable, it has exactly solution classes in . More explicitly, if , , and solves , the solutions modulo are
Facts & Assumptions
Given: Integers , a positive integer , and .
The integer divides both and , and every common divisor of divides each integer linear combination of them (Common divisor, and the greatest common divisor , with the convention , Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and ).
If , the original congruence is equivalent to , where , , , , and are coprime (If , and , then reduces to a congruence with coprime coefficient modulo ).
Every class modulo a positive integer has a unique representative with , and the quotient has cardinality (For , every class in has one representative with , so ; while is in bijection with , The cardinality of a finite set).
Proof
If solves the congruence, then , so for some and . Since and , it follows that .
Conversely suppose and use the notation of [L2]. Choose with by [L3]. Then satisfies , so it solves the reduced congruence and hence the original one.
By [L4], every integer has a unique residue with modulo . Thus every integer congruent to modulo is congruent modulo to exactly one with .
Every solution of the reduced congruence is congruent to modulo . Indeed, ; multiplying by shows that divides . Conversely every solves the reduced congruence.
If and , then , so cancellation gives ; uniqueness of the standard representatives modulo yields . Hence the displayed classes are distinct.
Steps 1.1 and 1.2 prove the solvability criterion. When it holds, steps 2.1, 1.3 and 2.2 show that the displayed list is exhaustive and contains exactly distinct solution classes.
For a finite pairwise-coprime list of positive integers, the product divides every common multiple, and each initial product is coprime to every remaining modulus
Statement
Let be a finite list of positive integers such that whenever . Put , with .
- For every , .
- If every divides an integer , then .
The products are finite monoid products (The product of a finite list in a monoid, by recursion, with the empty product () equal to the identity).
Facts & Assumptions
Given: A natural , a pairwise-coprime list of positive integers , its initial products , and an integer divisible by every list member.
A prime dividing a finite product of integers divides one of its factors (If a prime divides a finite product of integers then for some ; at the product is and the hypothesis cannot hold).
Every integer greater than has a prime divisor (Every integer has a prime divisor; indeed the least divisor of that exceeds is prime).
If , , and , then (If and then ; and if , and then ).
Finite products have empty value and satisfy (The product of a finite list in a monoid, by recursion, with the empty product () equal to the identity, Generalised associativity: in a monoid the product of a finite list does not depend on the bracketing, and in a commutative monoid it does not depend on the order of the factors either).
Coprime integers have gcd , whose only positive divisors are (Coprime integers: , Common divisor, and the greatest common divisor , with the convention ).
Induction proves a statement at every natural number from its base case and successor implication (The principle of mathematical induction).
Proof
Fix . If , [L2] supplies a prime dividing this gcd. Then , so [L1] gives an with ; also , contradicting because and the positive prime would divide that gcd. Hence .
At , divides .
Assume for some . The hypothesis gives , and step 1.1 gives ; hence [L3] gives .
Induction using steps 1.2 and 2.1 yields for every , and in particular ; together with step 1.1 this proves both clauses.
For coprime positive , every pair of residue classes modulo and has a unique simultaneous class modulo
Statement
Let be positive integers, , and . The simultaneous system
is solvable if and only if . If it is solvable, all its solutions form one congruence class modulo .
In particular, when are coprime, every pair of classes determines a unique simultaneous class . This includes or .
Facts & Assumptions
Given: Positive integers , integers , and .
The gcd is a positive common divisor of (Common divisor, and the greatest common divisor , with the convention ).
Writing and , the positive integers are coprime (If is nonzero then and are coprime, The integers have no zero divisors; multiplicative cancellation).
Coprime integers admit integers with ( and are coprime if and only if for some integers ; and in that case the only common divisors of and are and ).
Congruence means divisibility of a difference, and divisors are preserved by integer linear combinations (Congruence modulo an integer: when , including the moduli and , Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and ).
The quotient consists of the congruence classes modulo (The congruence class and the quotient set ).
Proof
If solves both congruences, then and . Since divides , it divides both differences and therefore their difference ; equivalently .
Conversely suppose and write , , as in [L2]. Choose with by [L3], put , and set . Then , while , so .
If are two solutions, then , so for some integer . Also , hence cancellation of gives ; multiplying a Bézout identity for by shows . Thus divides .
Conversely, if divides , then both and divide , so and satisfy exactly the same two residue conditions. Hence, when compatible, the solution set is one class modulo .
When , one has and the compatibility condition is automatic; the modulus is , so steps 1.1 through 1.4 give the stated bijection between pairs of residue classes and simultaneous classes. The same proof applies when either modulus is .
Chinese remainder theorem for a finite pairwise-coprime list: simultaneous residues determine one class modulo the product, and the resulting bijection preserves addition and multiplication
Statement
Let be a finite pairwise-coprime list of positive integers and let . The map
is a bijection. It preserves addition, multiplication, , and componentwise. For the empty list, and both sides have one element.
Facts & Assumptions
Given: A natural , a finite pairwise-coprime list of positive integers , and .
Every initial product is coprime to , and the full product divides every common multiple of all list entries (For a finite pairwise-coprime list of positive integers, the product divides every common multiple, and each initial product is coprime to every remaining modulus).
For coprime positive , each pair of residue classes modulo determines exactly one class modulo (For coprime positive , every pair of residue classes modulo and has a unique simultaneous class modulo ).
Finite products have empty value and satisfy (The product of a finite list in a monoid, by recursion, with the empty product () equal to the identity, Generalised associativity: in a monoid the product of a finite list does not depend on the bracketing, and in a commutative monoid it does not depend on the order of the factors either).
Congruence modulo a divisor follows from congruence modulo the dividend, and modular addition and multiplication are computed on representatives (Congruence modulo an integer: when , including the moduli and , Addition and multiplication on by and ).
A map is bijective exactly when it is both injective and surjective (Injection, surjection, bijection).
Induction proves a statement at every natural number from its base case and successor implication (The principle of mathematical induction).
The quotient is the set of congruence classes modulo (The congruence class and the quotient set ).
Proof
For , . The quotient has one class because congruence modulo is universal, and the empty Cartesian product has its single empty tuple; hence is a bijection and all componentwise preservation assertions are vacuous.
Assume the simultaneous-residue assertion for the first moduli. Given classes modulo the first moduli, the induction hypothesis supplies a unique class having the first residues. Since by [L1], [L2] supplies a unique class reducing to and to the prescribed class modulo . It therefore has all prescribed residues.
If , every divides and hence divides , so is well defined. For representatives , its th coordinate sends to and sends to ; it similarly sends to the componentwise identities.
If two classes modulo have the same first residues, their representatives have difference divisible by every for , hence by using [L1]; the two classes are equal. Thus the class constructed in step 1.2 is unique.
Induction gives existence and uniqueness for every finite length . Therefore is surjective and injective, hence bijective by [L5].
Steps 3.1 and 1.3 prove all assertions, including the empty-list boundary case from step 1.1.
Euler's totient is multiplicative: implies for positive
Statement
For positive integers with ,
Thus Euler's totient is multiplicative on coprime positive arguments.
Facts & Assumptions
Given: Coprime positive integers .
The Chinese remainder map is a bijection preserving multiplication and (Chinese remainder theorem for a finite pairwise-coprime list: simultaneous residues determine one class modulo the product, and the resulting bijection preserves addition and multiplication).
A unit is an element with a multiplicative inverse, and is the cardinality of the unit group modulo the positive integer (The unit group and Euler's totient for ).
The Cartesian product of finite sets of cardinalities has cardinality (The product rule: , and ).
Proof
A class modulo is a unit if and only if both components of its CRT image are units: an inverse of maps to componentwise inverses, while inverses of both components form a pair whose unique CRT preimage multiplies with to the unique preimage of the identity.
Consequently the CRT bijection restricts to a bijection . Taking finite cardinalities and applying [L3] gives .
Euler's product formula for , stated through a finite injective list of its prime divisors
Statement
Let , and let be an injective finite list consisting exactly of the prime divisors of . Put , so . Then
After carrying the natural numbers into , the same identity is
At the list is empty, both products are empty products equal to , and . These finite-list formulas are the precise meanings of the two products displayed in the title.
Facts & Assumptions
Given: A positive integer and an injective finite list consisting exactly of its prime divisors; .
A class modulo is a unit exactly when its representative is coprime to , and counts the unit classes (For , is a unit if and only if , The unit group and Euler's totient for ).
The standard representatives form a set of cardinality (For , every class in has one representative with , so ; while is in bijection with , The cardinality of a finite set).
Inclusion-exclusion gives the cardinality of the complement of a finite union as the alternating sum of the cardinalities of all intersections, with the empty intersection equal to the ambient finite set (A finite family of subsets of a finite set , the intersections for , and the convention , Inclusion and exclusion: , together with the complementary form counting the elements in none of the ).
The canonical prime factorisation is , and implies (For and any injective list of primes containing every prime divisor of , one has ; the exponents are determined by , and for every prime outside the list, The -adic valuation of a nonzero integer: the greatest with , For a prime and a nonzero integer : and ; holds exactly for ; exactly when ; ; and ).
A product of pairwise-coprime positive integers divides every common multiple of its factors (For a finite pairwise-coprime list of positive integers, the product divides every common multiple, and each initial product is coprime to every remaining modulus).
Natural finite products have empty value and obey the successor recursion (Finite sums and finite products of natural numbers, and in ); the integers embed injectively in the field , which in turn embeds injectively as an ordered subfield of (The integers embed in the rationals, The rationals form a field, The rationals embed densely in the reals).
Induction is valid on natural numbers (The principle of mathematical induction).
Distinct primes are coprime: a prime not dividing another prime is coprime to it (Prime and composite integers: is prime when and its only positive divisors are and , For a prime and any integer , is when and otherwise; so makes and coprime).
Every integer greater than has a prime divisor (Every integer has a prime divisor; indeed the least divisor of that exceeds is prime).
Multiplication by a nonzero integer is cancellative (The integers have no zero divisors; multiplicative cancellation).
Proof
For , let . Since the are distinct primes, they are pairwise coprime by [L8]. For put , with . By [L5], the intersection consists exactly of the standard representatives divisible by .
A representative lies outside every exactly when no prime divisor of divides . This is equivalent to : a common divisor greater than would have a prime divisor by [L9], and every such prime would occur in the list. Therefore is precisely the set of unit representatives and has cardinality .
By [L4], . In , finite distributivity and give for each , hence .
The integer divides by [L4]. Multiplication by bijects the integers with onto : its values lie between and , every member of has the required quotient, and [L10] gives injectivity. Hence .
Inclusion-exclusion applied to steps 1.1, 2.1 and 1.2 gives this equality after embedding its integer and rational terms in . Both sides come from , and the ordered-field embedding is injective by [L6], so already in one has .
Finite distributivity gives : the empty case reads , and adjoining replaces every old term by the pair and , indexed respectively by subsets not containing and containing . Multiplying this identity by and using step 3.1 yields .
Combining steps 4.1 and 1.3 proves both formulas. When , there are no prime divisors, so the list is empty; the products equal by [L6], and by [L1].
Remarks
- The same prime-power product also follows by repeatedly applying Euler's totient is multiplicative: implies for positive to the canonical factorisation and using For a prime and , . The proof above instead exposes the inclusion-exclusion count behind the factor .
For every positive integer ,
Statement
For every positive integer ,
The sum is over the finite set of positive divisors of (The sum over a finite index set, and its product form).
Facts & Assumptions
Given: A positive integer , its standard representative set , and its positive-divisor set .
The set has cardinality , and the units modulo a positive are represented exactly once by the with and ; their number is (For , every class in has one representative with , so ; while is in bijection with , For , is a unit if and only if , The unit group and Euler's totient for ).
The gcd is a nonnegative common divisor, and (Common divisor, and the greatest common divisor , with the convention , for all integers , the identity holding at and at as well).
A divisor of a nonzero integer has bounded absolute value; hence is a subset of a finite integer interval and is finite (If and then and ; hence the set of divisors of a nonzero integer is bounded above by , A subset of a finite set is finite, with , and equality holds if and only if ).
A finite set partitioned into finite blocks has cardinality equal to the sum of their cardinalities (The sum rule: a finite disjoint union is finite with and , and a sum over a finite index set splits along a partition, The sum over a finite index set, and its product form).
Integer divisibility gives quotient witnesses, and nonzero integer factors cancel (Divisibility in : when for some integer , The integers have no zero divisors; multiplicative cancellation).
Proof
For each , put . Every lies in exactly one such block: its positive gcd divides , and is a positive divisor of . Thus the form a partition of .
Fix and put . Multiplication by sends each standard unit representative modulo to , because gives ; moreover , so and .
Conversely, if , then , so and for a unique integer . The bounds on give , and by [L2], so cancellation gives . Thus is a standard unit representative modulo .
Steps 1.2 and 1.3 are inverse constructions, so for every .
The index set is finite by [L3]. Applying the sum rule to the partition in step 1.1 and using step 2.1 gives .
Remarks
- The partition by is an incidence identity: each residue is assigned to one positive divisor, and the block over is counted by the units modulo .
For every prime , the two operations on make it a field
Statement
For every prime , the operations of addition and multiplication on make it a field (Field).
Facts & Assumptions
Given: A prime integer .
Modular addition makes an abelian group, modular multiplication makes it a commutative monoid, and both distributive laws hold (For every natural , is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold).
For positive modulus , is invertible exactly when (For , is a unit if and only if ).
Equality is equivalent to , which means (The congruence class and the quotient set , Congruence modulo an integer: when , including the moduli and ).
A field is a commutative ring with in which every nonzero element is multiplicatively invertible (Field).
Proof
By [L1], all additive, multiplicative, identity, inverse, commutativity, associativity and distributive field axioms already hold except possibly and invertibility of nonzero classes.
Since , it does not divide , so [L4] gives .
If , then by [L4]. Hence by [L2], and [L3] makes invertible.
Steps 1.1 through 1.3 verify every clause of [L5], so is a field.
In , inversion pairs every class except and , which are the only self-inverse classes
Statement
Let be prime. In the finite unit group , inversion partitions all classes other than and into disjoint pairs with distinct members. The only self-inverse classes are and .
When these two displayed classes coincide, and the unit group has that single element.
Facts & Assumptions
Given: A prime and the unit group .
The quotient is a field (For every prime , the two operations on make it a field).
Units form a finite group under multiplication and every class has one standard representative; moreover exactly when , which means (The unit group and Euler's totient for , For , every class in has one representative with , so ; while is in bijection with , The congruence class and the quotient set , Congruence modulo an integer: when , including the moduli and ).
An invertible element has a unique inverse, and every one-sided inverse equals that inverse (In a monoid, a left inverse and a right inverse of the same element are equal; hence an invertible element has exactly one inverse, and it is two-sided).
Proof
If a unit is self-inverse, then , so . In a field a product is zero only if a factor is zero: if the first factor is nonzero, multiply by its inverse. Hence or .
Conversely, and , so both displayed classes are self-inverse.
If , then , so ; the unique nonzero standard class is , and it is the only unit.
On the remaining finite set, inversion has no fixed point by steps 1.1 and 1.2. Since is an inverse of , uniqueness in [L3] gives . Therefore the inversion orbits are disjoint pairs with distinct members.
Steps 1.1 through 2.1 prove the pairing and its boundary case.
Wilson's theorem: for every prime ,
Statement
For every prime ,
Facts & Assumptions
Given: A prime .
The unit classes modulo other than and occur in disjoint inverse pairs, while those displayed classes are the only self-inverse ones; at they coincide (In , inversion pairs every class except and , which are the only self-inverse classes).
The nonzero standard representatives modulo are , and their product is (For , every class in has one representative with , so ; while is in bijection with , The factorial and the falling factorial , defined by recursion in ).
A finite product in a commutative monoid may be regrouped and reordered, and each inverse pair has product (The product of a finite list in a monoid, by recursion, with the empty product () equal to the identity, Generalised associativity: in a monoid the product of a finite list does not depend on the bracketing, and in a commutative monoid it does not depend on the order of the factors either, For every natural , is an abelian group, multiplication is a commutative monoid operation, and both distributive laws hold).
Equality of residue classes modulo is equivalent to congruence modulo (The congruence class and the quotient set ), and congruence means divisibility of the difference (Congruence modulo an integer: when , including the moduli and ).
The quotient is a field, so every nonzero class is a unit (For every prime , the two operations on make it a field).
Products of residue classes are computed by multiplying representatives: (Addition and multiplication on by and ).
Proof
By [L5], the nonzero classes are exactly the unit classes. Multiply them all and regroup by [L1]: every two-element inverse pair contributes . If the two displayed self-inverse classes are distinct, their contribution is ; if they coincide, their single common contribution is itself . Thus in every case the product of all nonzero classes is .
By [L2] and [F1], that same class product is . Therefore , which is exactly by [L4].
5 · Examples, counterexamples and false statements
None yet.
Sources
Standard references
Recommended treatments; not extraction sources.
- K. Conrad, Modular Arithmetic
- K. Conrad, The Chinese Remainder Theorem
- Mathematics LibreTexts, Euler's phi Function
- UW Oshkosh, Number Theory Notes 3
- Euler's totient function (Wikipedia)
- Carnegie Mellon, number-theory lecture notes
- Mathematics LibreTexts, Linear Congruences
- MIT, Chinese Remainder Theorem notes
- J. J. P. Veerman, sum of Euler phi over divisors
- MIT 18.783 Lecture Notes 3
- Mathematics LibreTexts, Wilson's Theorem