The Euclidean algorithm gives
Thus the greatest common divisor is . The extended Euclidean algorithm reverses these divisions:
This supplies the Bezout identity with , .
To obtain all solutions of a linear Diophantine equation, subtract this particular solution from any other and divide by . The result is . Since and are coprime integers, divides , giving
Every displayed pair satisfies the original linear Diophantine equation, so the parametrization is exhaustive.
For the modular arithmetic calculation, , so is the modular inverse of . Multiplication gives . The admissible integers are for , ending at ; the next is . There are such integers.
An absolute value on a field is a map satisfying
A Non-Archimedean absolute value satisfies the stronger ultrametric inequality . Two equivalent absolute values induce the same topology, or equivalently differ by a positive real power. The trivial absolute value on a field takes value one on every nonzero element. The rational classification and the compactness criterion below concern nontrivial absolute values on a field; the trivial exceptions are given explicitly.
Here the additive valuation has real values. For any , the mutually inverse constructions are
Multiplicativity becomes , and the ultrametric inequality becomes . Equivalent real-valued valuations differ by positive scaling, so these constructions give the required bijection on equivalence classes. Changing merely rescales the valuation.
To justify the topology formulation, is equivalent to . Thus two nontrivial absolute values on a field with the same topology give the same strict positivity relation on their additive valuations. Fix with . Comparing the signs of , for integers and positive integers , shows that and have identical rational cuts. They are equal, proving for . If one allows valuations in arbitrary ordered groups, the nontrivial classes arising this way are precisely rank-one valuations: higher-rank ordered value groups do not embed order-preservingly in .
For a nontrivial Non-Archimedean absolute value on , for every integer , by repeatedly applying the ultrametric inequality to sums of ones. Some prime must have , otherwise prime factorization and multiplicativity would make every nonzero rational have value one. There is at most one such prime: if both , a Bezout identity contradicts the ultrametric inequality. If , another Bezout identity gives . Hence
This proves the non-Archimedean part of the Ostrowski theorem. If the trivial absolute value on a field is admitted, it supplies one additional class and is not equivalent to any p-adic absolute value.
The valuation ring, its maximal ideal, and its residue field are
Suppose the absolute value on a field is nontrivial and is compact. The ideal is an open additive subgroup of , so is discrete; as a continuous image of a compact space it is finite. The subgroup is also closed, since all its cosets are open, and is therefore compact. The continuous function attains a maximum on , with . Choose with . Then the positive values of have least element . Division with remainder in this additive subgroup of proves . Thus is a discretely valued field and is a uniformizer.
Conversely, normalize the discrete valuation by . If has elements, has elements. Each quotient therefore supplies a finite cover by balls of radius tending to zero. The ring is a closed subset of the complete metric field , hence complete and totally bounded, so it is compact. Equivalently,
This is the local compactness criterion for a complete non-Archimedean field, with nontriviality understood. For the trivial absolute value on a field, has the discrete topology and is compact exactly when is a finite field; its value group is zero rather than a nonzero discrete cyclic group.
The extended Euclidean algorithm gives
Back-substituting in these equations produces the Bezout identity
Thus one integer solution is . In fact, subtracting this Bezout identity from any other solution and using that and are coprime integers gives all solutions: , , where .
For the modular arithmetic calculation, is a prime number and is coprime to it, so Fermat little theorem gives . Since , and the preceding Bezout identity identifies as the modular multiplicative inverse of , we obtain
Consequently the least positive representative is .
We prove the conjugate product of a quadratic ideal identity , which applies to the given two-generator ideal without assuming its displayed generators form an integral basis.
The quadratic ring of integers of a number field has a basis over : the vector 1 is primitive, since a rational algebraic integer must be an integer, and extends to an integral basis. Write , with . Let be the least positive integer in and let generate the set of coefficients of in elements of . Its lattice basis can be chosen as , with . Since , comparison of coefficients shows and . Write , and . Then
The scaled ideal remains an -ideal. From we get , so . The product is generated as an ideal by and is contained in .
Moreover . If a prime divided all three, then and , so would satisfy the monic integer polynomial . It would lie in , impossible because its coefficient in the integral basis is . Bezout identity now expresses one as an integer combination of . Multiplying by , the terms are , , and , all in the product. Hence belongs to it, proving .
The determinant of the lattice basis gives the ideal norm . Consequently
In particular is principal. This does not require the original to be nonzero or the ideal itself to be principal.
Write an integral binary quadratic form as , with discriminant of a binary quadratic form . If is prime, then : any common divisor would have its square dividing . Complete to a matrix in using Bezout identity. After the associated integral change of variables, the properly equivalent form has leading coefficient , say . Its discriminant of a binary quadratic form gives , hence .
Conversely suppose . Since is an integral-form discriminant of a binary quadratic form, or . Choose with even integer parity for and odd integer parity for . This is possible because is odd. Then is divisible by , and
is an integral form of discriminant of a binary quadratic form representing . This proves the discriminant criterion for prime representation by a binary quadratic form, including the case ; no assumption that is a fundamental discriminant was used.
Bezout identity gives integers with whenever , so . If are inverses, multiplying by an inverse gives . Multiplying Bezout identities for and shows that .
Wilson theorem states that for prime . Pair the nonzero residues with their unique multiplicative inverses. The only self-inverse residues are , whose product is , proving the theorem.
Counting one factor of for every multiple of , another for every multiple of , and so on proves Legendre formula
Now , so . Also , while , so .
Finally,
For , , so the second factor is a -adic unit. If , then
First, every nonzero nonunit in a principal ideal domain factors into irreducible elements. Otherwise repeatedly choose a proper nonunit factor of ; then the principal ideals
form a strictly increasing chain, contradicting the ascending chain condition, since every principal ideal domain is a Noetherian ring.
Next every irreducible is a prime element. If but , then . The Bezout identity gives , so multiplying by shows . Thus irreducibles are prime.
Existence of an irreducible factorization and primality give uniqueness: an irreducible on one side divides the product on the other, hence is associate to one factor; cancel and continue. Therefore every principal ideal domain is a unique factorization domain.
Let and . The modular group acts on the complex upper half-plane by fractional linear transformations, and
For fixed , the values with primitive integer pairs have a positive minimum: the conditions bound both and , leaving finitely many pairs. By Bezout identity, a minimizing pair is the bottom row of a matrix in . Applying that matrix gives a point of maximal imaginary part in its orbit.
Translate it by a power of into . It must have modulus at least one, since otherwise would increase its imaginary part. If it is on the unit circle with negative real part, apply , which there changes to . This gives an element of the specified half-open standard fundamental domain of the modular group. It proves existence by reduction to the standard modular region.
For uniqueness, if lies in the closed standard region then and
for every primitive pair. If , this follows from ; if , it follows from . If , then uses , while gives
If both and lie in the region, applying this inequality to and forces their imaginary parts to agree, hence .
The equality cases describe every possible boundary identification. For the map is an integer translation; the half-open vertical strip retains one representative. For , equality requires , and the map is an inversion followed by an integer translation. Inversion exchanges the two halves of the circle, so retaining only the right half removes the duplication; the only translation that returns the exchanged endpoint is the one identifying the two corners. The remaining equality cases have , and , and give only those same corner identifications. Our region retains the right corner alone. Therefore , proving
The equality analysis also gives the elliptic stabilizers of the modular group. The central matrices fix every point. The point is fixed by , with , and the retained corner is fixed by , with . There are no other noncentral stabilizers, and the possible bottom rows in the equality cases give exactly
The corresponding stabilizer orders in are two, three and one; the requested group is , so the center must be included.
We use left multiplication by . For an integral matrix of determinant , the Bezout identity gives a determinant-one row operation sending its first column to , where is the positive gcd of that column. The resulting matrix is with . Adding a multiple of the second row to the first makes .
These representatives are unique. Left multiplication by a unimodular matrix preserves the gcd of the first column, so two representatives in one orbit have the same and hence . A matrix taking to itself has the form , so it changes by ; the prescribed range makes unique. Thus the determinant-n matrix representatives for Hecke operators are exactly . In the printed set, already forces , and forces .
For positive determinant extend the slash operator for modular forms by
The determinant factor makes this a right action: . Right multiplication by permutes the left cosets represented by , since it preserves the set of determinant- integral matrices. Hence satisfies the modular transformation law. Its summands are holomorphic on the upper half-plane. For an upper-triangular representative,
Substitute the Fourier expansion of a modular form. The sum over is zero unless the original index is divisible by , in which case it equals . Writing that index as gives
Only nonnegative powers occur, so is holomorphic at infinity, and all level-one cusps are equivalent to infinity. We have proved and the Fourier coefficients of a composite-index Hecke operator formula
Here , giving . In particular cusp forms stay cusp forms. For nonzero level-one cusp forms the weight is an even integer at least twelve, so the powers are integers; the zero cusp space causes no exception. Thus every preserves integral Fourier coefficients, and closure under addition, multiplication and integer scalars proves
This is the integral Hecke algebra of level-one cusp forms.
We will also need commutativity. The coefficient formula directly gives
For the first identity, the divisors of and in the iterated coefficient sum combine uniquely into a divisor of . For the second, write a coefficient index as with ; the formula is
Applying splits this into the two sums with shifts and ; their overlapping terms give exactly the stated recurrence. Since is the identity, induction expresses each as a polynomial in , and coprime multiplicativity expresses every as a product of these polynomials. Distinct prime operators commute by the coprime identity. Hence all Hecke operators commute, and so do all elements of .
Let and . In the permitted basis , the modular discriminant begins and the normalized Eisenstein series begin , so
The matrix of on this integral basis is unitriangular and has determinant one. Integer elimination therefore gives an integral basis with for . Thus are a -basis of the dual module .
The map is well-defined by lattice preservation and is -linear. Because , it is surjective. For injectivity suppose . For every and every , commutativity gives
The constant term is also zero because is a cusp form. The identity theorem applied to its Fourier expansion of a modular form gives . The integral basis spans the complex cusp space, so as an endomorphism. This proves the perfect integral Hecke pairing and
If , both modules are zero and the asserted basis is empty.
The condition says that the ideal of generated by is all of . The multi-integer Bezout identity therefore supplies integers such that
Equivalently, first apply Bézout's identity to and then to .
The class of is
so its size is Euler's totient function
The unit group acts freely on every pair in : if and , multiplying the Bezout identity by gives . Hence every equivalence class has size . Dividing the answer from part (a) by this size gives
The Chinese remainder theorem says that if the positive integers are pairwise coprime and , then for arbitrary residue classes there is a unique residue class satisfying
Equivalently, reduction is a ring isomorphism
For existence, put . Pairwise coprimality gives , so Bézout's identity supplies an integer with . Then
has the required residues, because every term except the th is divisible by . If and are two solutions, each divides . Pairwise coprimality then implies that their product divides , proving uniqueness modulo .
Evaluation at gives the ring isomorphism
and reducing modulo gives
For each ,
This quotient is a field because is irreducible. Hence is a nonzero prime ideal; it is nonzero because it contains . Its ideal norm is
The ideals are distinct. Indeed, if with , then both and would vanish in the same quotient. Since distinct monic irreducibles are coprime, a Bezout identity between them would make vanish there, a contradiction.
Because the chosen lifts satisfy
for some , evaluation at gives
Every generator of the product ideal either contains a factor or is the displayed product, so
On the other hand, multiplicativity of ideal norms and give
Two finite-index ideals with one contained in the other and equal index are equal. Thus the Dedekind factorization theorem is proved in this monogenic case:
Because , the formal derivative is nonzero and has smaller degree than . Since is irreducible, it cannot divide , so
By the Bezout identity for polynomials, there are with . A repeated root of in would also be a root of , contradicting this identity. Thus the result that an irreducible polynomial in characteristic zero is separable gives
Because , choose with by Bézout's identity. Then
satisfies and . Any two simultaneous solutions differ by a multiple of both coprime integers and hence by a multiple of . This proves the two-modulus Chinese remainder theorem.
The three congruences reduce to
The first two give ; imposing the last gives
The Euclidean algorithm repeatedly replaces a pair by without changing its greatest common divisor. Reversing the divisions expresses as an integer linear combination , which is Bézout's identity.
Here , and therefore
One solution is . It is not unique: for every , is another solution.
The non-Archimedean part of the Ostrowski theorem says that every nontrivial Non-Archimedean absolute value on is equivalent to the p-adic absolute value for a unique prime .
Indeed, for every integer . Nontriviality gives a prime with , and there cannot be two such primes because the Bezout identity would make a sum of two terms of absolute value below one. If is coprime to , another Bezout identity shows . Consequently
for every , which is a positive real power of .
More generally, the Non-Archimedean absolute values on a number field are indexed, up to equivalence, by the nonzero prime ideals . The value attached to is
To prove completeness of the list, restrict an absolute value to and obtain a rational prime . Its valuation ring contains away from a unique prime above ; equivalently, its center
is a nonzero prime ideal. Since is a discrete valuation ring, every is a unit times a power of a uniformizer, so the given value is equivalent to the displayed -adic value. An absolute value trivial on is trivial on the algebraic extension , so no further cases occur.