Bézout coefficient 2026-10-13
Bézout coefficients for integers are integers satisfying Bézout's identity . The extended Euclidean algorithm computes one pair. They need not be unique: both and work for , since and .
An additive nontrivial valuation on the rational field is equivalent to exactly one P-adic valuation. Integers have nonnegative values; some prime must have positive value, and Bézout's identity prevents two distinct primes from doing so. Unique factorization then gives the formula, with in the real-valued case. The trivial valuation is a separate possibility if admitted by the definition.
Coprime integers Created 2026-09-24 Updated 2026-10-14
Two integers are coprime when their greatest common divisor is one:
For positive integers, this says that the only positive common divisor is one. For signed integers, use , with absolute values; changing either sign leaves coprimality unchanged. With the convention , zero is coprime precisely to , because . Both are coprime to every integer. [ref]
The word concerns shared prime factors, not whether either input is a prime number. For instance and are coprime composite numbers, even though neither is a square-free integer. Conversely, and are square-free integers but are not coprime. Consecutive integers are always coprime: any common divisor of divides their difference one. Thus provide another pair of coprime composite numbers.
For positive integers, let be the prime support of an integer. The equivalent test is
The set intersection of the two prime supports of an integer must be the empty set. Indeed, any positive common divisor greater than one has a prime factor, and any shared prime factor is a common divisor greater than one. Hence coprimality depends on which prime factors occur, rather than on their prime valuations; replacing either input by its radical of an integer preserves coprimality.
For a list of at least two integers, distinguish pairwise coprimality, requiring every pair to be coprime, from joint coprimality, requiring only the greatest common divisor of the entire list to be one. For example,
No prime factor belongs to all three prime supports of an integer, yet each pair shares one. By contrast, have pairwise coprimality. The distinction is presented by Poritz under the names pairwise and mutually relatively prime. [ref]
Figure 1. . Filled cells mark membership in the prime support of an integer; empty cells mean the prime number does not divide the row label. The first panel has two coprime integers; the middle has joint coprimality but fails pairwise coprimality; the last has pairwise coprimality. The columns exhaust all prime factors of these eight row entries. This original finite arithmetic diagram shows exact divisibility, not sampled probabilities. Details.
One use is simplifying fractions. For a fraction with integer entries and , divide its numerator and denominator by to obtain a reduced fraction with coprime entries. For example, since , and uses the same . A further common divisor would make too small, so the reduction is complete. In particular, the reduced fraction for zero is .
Another use is reversible modular arithmetic: for an integer modulus , an integer has a modular inverse precisely when are coprime. The proof outline uses Bézout's identity: makes a modular inverse, and any inverse relation forces every common divisor to divide one. For example, gives , whereas has no modular inverse modulo . Thus coprimality is the exact condition allowing division by a residue in modular arithmetic. [ref]
Dihedral splitting when the half-rotation order is odd Created 2026-10-14 Updated 2026-10-18
Let have order with odd, and let , . The subgroup is a dihedral group of order , while is a central cyclic group of order two. Since is odd, and lies in by Bézout's identity. Thus the original group of order is the direct product of groups . This statement specifies group orders and avoids the two competing conventions for dihedral notation.
Divisibility Created 2026-09-24 Updated 2026-10-18
For integers , divides when multiplication by some integer takes to :
Then is a divisor of , and is an integer multiple of . The notation means that no such integer exists. For , this is equivalent to saying that the quotient is an integer, or that Euclidean division by leaves remainder zero.
For example, because , whereas because . Signs do not change divisibility: because , and because . In general, changing the sign of either input preserves the relation.
The definition here permits zero as either input. Every integer divides zero, since . In particular, ; however, whenever , since is always zero. This is a statement about multiplication, and assigns no meaning to division by zero: remains undefined.
Two useful properties come directly from the defining multiplication. Divisibility is a reflexive relation, since , and a transitive relation: if and , then . Moreover, a shared divisor divides every integer linear combination:
Indeed, writing and gives . For example, and imply . This small observation explains why the Euclidean algorithm preserves common divisors, and why Bézout's identity can certify a greatest common divisor.
On the positive integers, divisibility is a partial order: if and , then . The restriction matters, since and although . The prime factorization viewpoint makes this order concrete: exactly when every prime valuation of is at most the corresponding prime valuation of . Thus one relation connects equal grouping, prime factorization, and modular arithmetic.
Book VII, definitions 3 and 5 of Euclid's Elements describe the corresponding positive-number relation through one number measuring another and through integer multiples. The sign and zero conventions above belong to the present integer formulation, rather than to those ancient definitions. [ref]
Euclid's lemma 2026-10-13
If a prime number divides a product of integers , then divides or (possibly both):
For example, and . The hypothesis that is a prime number matters: , although six divides neither factor. When does not divide , the greatest common divisor of and is one; multiply Bézout's identity by to see that . Repeated application makes this the uniqueness step in the fundamental theorem of arithmetic. [ref].
For a completely computed example, because , while shows that seven does not divide twenty. Bézout's identity becomes, after multiplication by ,
The two terms on the right are divisible by seven, which explicitly recovers the forced divisibility of the second factor. Both alternatives can hold: , and seven divides both and .
In fact the property characterizes prime numbers among the integers greater than one. If is a composite number, choose with ; then , but divides neither nor . For several factors, repeated application of Euclid's lemma says that a prime number dividing their product divides at least one factor. In a product of prime numbers, that factor must equal it, because a prime number has no other prime factor. This is what prevents a different collection of prime factors from representing the same positive integer in the fundamental theorem of arithmetic.
Book VII, Proposition 30 of Euclid's Elements states the result in terms of a prime number measuring a product; its proof uses coprimality and ratios. The calculation using Bézout's identity above is a modern way to explain the same divisibility statement. [ref]
Extended Euclidean algorithm Created 2026-09-29 Updated 2026-10-20
The extended Euclidean algorithm also computes integers satisfying , as in Bézout's identity. Back-substitution in the calculation under the Euclidean algorithm gives
Thus solves . The linear Diophantine equation is solvable exactly when divides : necessity follows from common divisibility, and multiplying this identity proves sufficiency. For coprime integers , the coefficient of is a modular inverse of modulo , and the coefficient of is a modular inverse of modulo , when the respective modulus is greater than one.
Greatest common divisor Created 2026-09-24 Updated 2026-10-20
For integers not both zero, their greatest common divisor is the largest positive integer dividing both. It is unchanged by replacing either input by its negative. The convention is useful, but this exceptional value is not a largest positive common divisor. For positive inputs, the Euclidean algorithm computes the answer, and Bézout's identity expresses it as an integer linear combination of the inputs.
For and , a common divisor can contain at most one copy of the prime number two and one of the prime number three. Taking the smaller prime valuation at each prime number therefore gives
The check is also a Bézout's identity: every common divisor divides this difference, and six itself divides both inputs. More generally, every common divisor divides the greatest common divisor, a stronger statement than merely being no larger than it. The companion least common multiple takes the larger prime valuations, as the diagram there illustrates. For an application, divide the numerator and denominator of the fraction by six to obtain ; these remaining integers are coprime.
Every subring of the rational numbers containing is a principal ideal domain. If is reduced, Bézout's identity gives integers with , hence . Thus every reduced denominator occurring in is a unit.
For an ideal , write . Then . If is reduced, , so for some integer . Since , . Therefore , including the zero ideal. This is a concrete instance of extending and contracting ideals under localization of a ring.
Linear congruence Created 2026-09-29 Updated 2026-10-14
A linear congruence asks for the integers satisfying , where are integers and . Let be their greatest common divisor. There are solutions exactly when divides . When solutions exist, there are exactly solution classes modulo , obtained from one solution by
The divisibility condition follows immediately from : every common divisor of must divide . Conversely, Bézout's identity constructs a solution when . Differences between any two solutions obey , equivalently , since and are coprime. This explains both the spacing and the number of solution classes.
For a complete example, solve . Here divides nine. Dividing the corresponding divisibility statement by three changes the integer modulus too:
Because , multiplying by the modular inverse three gives . Lifting this class back to modulus fifteen yields . Direct substitution gives , and , each with remainder nine after division with remainder by fifteen. By contrast, has no solutions, because three does not divide ten.
Figure 1.
Multiplication by six modulo fifteen hits residue nine three times and never hits residue ten
. Details.
This is why ordinary-looking division cannot be performed blindly in modular arithmetic. Reducing the equation and its integer modulus together keeps all solutions; retaining modulus fifteen after dividing by three would lose valid classes. When , the modular inverse of exists and gives a unique class . The Euclidean algorithm computes the Bézout coefficients needed for this construction. [ref]
Lucas number 2026-10-14
The Lucas numbers obey the same second-order recurrence as the Fibonacci numbers but start with , so their sequence is . For , . Substitution in the Fibonacci addition formula gives . Consecutive Fibonacci numbers are coprime by the Euclidean algorithm; since , Bézout's identity gives .
Modular multiplicative inverse Created 2026-09-24 Updated 2026-10-13
For integers and , a modular multiplicative inverse is a congruence class satisfying . It exists exactly when . Necessity follows because every common divisor of would divide . Conversely, Bézout's identity gives for coprime integers, making an inverse. This is the basic bridge from greatest common divisor calculations to reversible modular arithmetic.
For example, , so . The modular congruence therefore has the unique solution class . Multiplication by sends all seventeen residue classes to different classes; multiplying by reverses it. The inverse criterion and its algorithmic construction are presented in Ankur Moitra, MIT 18.200, 2024, modular inverses and Euclid's algorithm.
By contrast, has no modular inverse modulo . Its products have only residues . Consequently has no solution, while has five solution classes, . Dividing by a noninvertible residue would discard this distinction. In a prime field , every nonzero residue is invertible; a general integer modulus instead gives a quotient ring that can have zero divisors.
Figure 1.
Multiplication by five is reversible modulo seventeen but collapses classes modulo fifteen
. Details.
Number theory Created 2026-09-24 Updated 2026-10-13
Number theory studies integers, their divisibility, and the patterns created by prime numbers. Its questions often have short statements but rigid answers: which integers divide a given one, when does an equation have integer solutions, and when can arithmetic with congruence classes be reversed? The Euclidean algorithm and modular multiplicative inverses connect these questions through explicit calculations.
For example, and . Their shared prime factors give greatest common divisor . The Euclidean algorithm reaches that answer without finding either complete prime factorization. It also produces , an instance of Bézout's identity. This relation certifies every common divisor at once and solves an associated linear Diophantine equation.
Modular arithmetic retains only remainders, but the lost information can be surprisingly controlled. Multiplication by modulo is a permutation of all residue classes, because has modular inverse . Multiplication by modulo collapses fifteen residue classes to three. Thus an apparently small change in the modulus changes whether a calculation can be reversed. The Chinese remainder theorem explains another kind of compression: remainders modulo coprime integers can be combined into one remainder modulo their product.
Simple restrictions help reveal the structure without telling the whole story. Every prime number greater than three is congruent to or modulo : the other four residue classes force divisibility by or . The converse fails because and lie in those classes but are composite numbers. Necessary conditions are useful filters, not substitutes for primality testing.
The subject's appeal lies partly in this tension: prime factorization gives a clean description of every positive integer, while identifying factors and predicting their distribution lead to substantial further questions. Analytic number theory uses tools from analysis to study global patterns, and algebraic number theory extends arithmetic into number fields. Applications include cryptography and error-correcting codes; MIT's discrete applied mathematics course develops modular structures for both purposes. [ref]
Euclid's Elements already gives a greatest-common-measure construction in Book VII, Proposition 2, and the argument that a finite list cannot exhaust the prime numbers in Book IX, Proposition 20. These are documented ancient treatments, rather than evidence that all of number theory began with one author. [ref] [ref]
Take a reduced fraction , with . Since , Bézout's identity supplies integers with . As the subring contains all integers,
Thus a denominator appearing in a reduced fraction in is automatically a unit of .
Now let . Because , the principal ideal is contained in . For the reverse inclusion, take and write in lowest terms. Multiplying by gives , so for some integer . The preceding result gives , whence
Therefore
This includes : the same argument forces every to be zero. This is the ideals of subrings of the rational numbers property; every such ring is a principal ideal domain.
Put . A principal ideal domain is a unique factorization domain, so every nonzero element of this quotient ring can be written
Indeed, remove the largest power of the prime element from a representative that is not divisible by . Since and have greatest common divisor up to a unit, Bézout's identity in the principal ideal domain gives . Thus is a unit in .
Consequently every nonzero principal ideal in is generated by one of . Include the zero ideal by assigning it exponent . These ideals are distinct: their inverse images in are , and equality of two different powers would, by cancellation in the integral domain, make the nonunit a unit.
Now suppose . If this is the zero ideal, both generators are zero and are associate elements. Otherwise their exponents agree, so write
with both units. Then
and the multiplier is a unit. Thus
The exponent detects the principal ideal, while its remaining factor is invertible; this is why zero divisors cause no obstruction here.
By the first isomorphism theorem for rings, the given surjection identifies with . Since is a principal ideal domain, write .
If , the quotient ring is , an integral domain, so part (a)(ii) applies. If is a unit, the quotient ring is the zero ring; its unique element is associate to itself by multiplication by its identity, so it too is an associator ring.
In the remaining case, unique factorization gives
where is a unit, the are pairwise nonassociate prime elements, and . The principal ideals are pairwise comaximal: different prime factors have greatest common divisor , and Bézout's identity gives a linear combination equal to . The Chinese remainder theorem therefore gives a ring isomorphism
Every factor is an associator ring by part (c), and their finite direct product of rings is an associator ring by part (b). A ring isomorphism preserves units and principal ideals, so the property transfers to . Hence
Reduction modulo the prime preserves integer addition, multiplication, and one:
Every congruence class has an integer representative, so the ring homomorphism is onto. Its kernel is exactly . The quotient is a field because every class not divisible by has a multiplicative inverse by Bézout's identity.
For the coefficientwise extension to the polynomial ring, addition is preserved term by term. If and , the coefficient of in their product is . Reducing it modulo gives , the coefficient in . Thus multiplication and one are preserved as well. Lift each coefficient of a polynomial over to an integer to prove surjectivity. The kernel is
Indeed, its elements are precisely the polynomials whose coefficients are all divisible by .
In the binomial theorem expansion of , every intermediate coefficient is divisible by : the numerator contains the prime factor , while does not for . Hence
For , the last equality uses in characteristic two. This is an instance of the Frobenius endomorphism.
Take , and . Since are coprime integers, Bézout's identity gives , so . Their intersection is : it consists of integers divisible by both and , and coprimality makes this equivalent to divisibility by . Thus the Chinese remainder theorem gives
as a ring isomorphism. This includes or , where the corresponding factor is the zero ring.
Use ordinary matrix addition and multiplication on . Sums and products of polynomials in remain such polynomials, and they commute because powers of the same matrix commute. The identity is . Evaluation is a surjective unital algebra homomorphism over . It is unique among maps fixing the scalar matrices and sending to .
The scalar condition is needed for the word “unique”: as an unrestricted ring-homomorphism assertion over an arbitrary field, prescribing only the image of does not suffice. For example, over with a real scalar matrix , conjugating every coefficient gives another unital ring homomorphism with the same image of . The intended polynomial-evaluation map is the -algebra map just defined.
The kernel of a ring homomorphism is an ideal of the principal ideal domain . It is nonzero because finitely many powers of must become linearly dependent in the finite-dimensional matrix space. Its unique monic generator is precisely the minimal polynomial : division by shows that a polynomial killing has zero remainder, by minimality. Hence and .
If , Bézout's identity gives ; evaluation gives . Conversely an inverse in has form , so , which forces . Thus invertibility in this ring is exactly coprimality with the minimal polynomial.
The polynomials and are coprime. Bézout's identity gives polynomials with . Set
For every , the decomposition
has first summand in and second in , since and polynomial expressions in commute. If belongs to both kernels, the same Bézout identity gives . Thus . Both vector subspaces are invariant under .
On , the restriction of is nilpotent; on , the restriction of is nilpotent. Apply (b) separately, then concatenate the two bases. This yields
where are strictly upper triangular. Empty blocks are allowed if one subspace is zero. In particular has precisely the required diagonal.