Number Theory
Number theory here starts from the integers as this library constructed them, an ordered commutative ring and nothing more, and asks what their multiplicative structure is. Division with remainder gives the greatest common divisor and Bezout's identity, Bezout gives Euclid's lemma, and Euclid's lemma is the step that makes prime factorisation unique rather than merely possible. Congruence modulo n turns divisibility into an equivalence relation, so the integers modulo n form a ring in which linear equations can be solved; the Chinese remainder theorem splits a composite modulus into its prime powers, Euler's totient counts the units, and the unit group modulo a prime is cyclic, which is what a primitive root is. The collection then asks which residues are squares. The Legendre symbol is multiplicative because that unit group is cyclic, Euler's criterion and Gauss's lemma compute it, quadratic reciprocity relates the symbol for one prime to the symbol for the other, and the Jacobi symbol extends the computation to odd composite moduli.
The number theory track scaffolded to continue this collection rests on exactly these pages, and it splits at the point where they stop: an analytic block that needs the gamma and zeta functions of the complex analysis track, and a local and algebraic block that needs valuation rings, Dedekind domains and ideal classes from commutative algebra. The metric completion of the rationals that produces the p-adic numbers comes from Topology and Real Analysis.
Pathway
The parts run in order. Everything a page needs from this group has been read by the time you reach it, and the level on each row is how many dependency steps into the group that page sits.
Part 1 · Divisibility and primes
4 pagesNumber theory here starts from the integers as an ordered commutative ring with a division algorithm, so gcds, Bezout's identity and Euclid's lemma lead to unique prime factorisation. The same repeated quotient extraction becomes continued fractions: convergents satisfy determinant identities and sharp approximation bounds, Legendre's criterion characterises best approximants, and eventual periodicity detects quadratic irrationals. For that periodicity becomes arithmetic in : the norm is multiplicative, Pell solutions form a unit group generated by the fundamental solution, parity of the continued-fraction period decides the negative Pell equation, and every nonzero generalized Pell equation breaks into finitely many orbits, making solubility decidable by a finite search.
This page opens the number theory track, and it is built entirely on ℤ as the library constructed it: the ordered commutative ring of The integers form a commutative ring and…
6 definitions, 12 lemmas, 4 theorems, 4 corollariesExamples & counterexamples →Divisibility in ℤ, Bézout’s identity, the gcd characterisation, and the coprime-divides-product lemma provide the arithmetic background.
2 definitions, 6 lemmas, 6 theorems, 4 corollariesExamples & counterexamples →Regular continued fractions turn Euclidean division into an approximation machine.
5 definitions, 6 lemmas, 7 theorems, 1 corollaryExamples & counterexamples →Pell's equation is where the continued-fraction machinery of √D stops being a theory of approximation and becomes a machine for producing integer solutions.
5 definitions, 3 lemmas, 1 proposition, 5 theorems, 3 corollariesExamples & counterexamples →
Part 2 · Congruences and unit groups
9 pages · after Part 1Congruences modulo , the Chinese remainder theorem, Euler's totient, and primitive roots give quotient-ring arithmetic, while quadratic forms and arithmetic functions organize multiplicative information. For finite , trace, norm, embeddings, and discriminants lead to the Dedekind property and unique prime-ideal factorization; the different detects ramification and has exponent in the tame case. Completions supply and . The decomposition page identifies the decomposition group as a prime stabilizer and inertia as the kernel of the residue action; its exact sequence, towers, fixed fields, and Frobenius coset separate ramification, residue degree, and splitting. After good reduction kills inertia, factor degrees give Frobenius cycle lengths.
Congruence turns divisibility into an equivalence relation and hence into the quotient ℤ/n, where addition and multiplication are independent of representatives.
4 definitions, 7 lemmas, 10 theorems, 2 corollariesExamples & counterexamples →This page classifies the rank-one absolute values on ℚ, records the place language and the rational product formula, and then builds ℚ p as a completion before comparing it with the integral compatible-residue model.
5 definitions, 2 lemmas, 11 theorems, 4 corollariesExamples & counterexamples →Arithmetic functions package number-theoretic data into maps on the positive integers.
10 definitions, 2 propositions, 5 theorems, 2 corollariesExamples & counterexamples →For a finite extension K/ℚ, this page separates its maximal order O K from arbitrary full-rank orders.
6 definitions, 1 lemma, 7 theorems, 6 corollariesExamples & counterexamples →Integral binary quadratic forms are the ternary coefficient data (a,b,c) behind ax²+bxy+cy², and this page studies how much of that data survives unimodular change of variables.
9 definitions, 5 lemmas, 4 propositions, 3 theorems, 2 corollariesExamples & counterexamples →- Primitive Roots and Unit Groups Modulo N28 results
The published unit group (ℤ/nℤ)^× collects the residue classes coprime to n, the unit criterion recognises them, and Euler's totient counts them.
3 definitions, 7 lemmas, 3 propositions, 7 theorems, 8 corollariesExamples & counterexamples → - Dirichlet Series and Euler Products15 results
This page fixes Dirichlet-series notation, proves the half-plane and abscissa geometry, and then turns multiplicativity into Euler products only in regions where absolute convergence genuinely licenses the regrouping.
2 definitions, 9 theorems, 4 corollariesExamples & counterexamples → For number fields, integral ideal factorisation is handled through a finite quotient and finite local data.
7 definitions, 2 lemmas, 11 theorems, 4 corollariesExamples & counterexamples →- Decomposition Inertia and Frobenius29 results
Under the Axiom of Choice, completions and unique extension of nonarchimedean absolute values provide the local bridge.
5 definitions, 6 lemmas, 14 theorems, 4 corollariesExamples & counterexamples →
Part 3 · Quadratic residues and reciprocity
11 pages · after Part 2The Legendre and Jacobi symbols, Euler's criterion, Gauss's lemma, and reciprocity control quadratic residues and the two- and four-square problems. Average orders and Perron inversion lead to Chebyshev and Mertens estimates and the explicit formula, while Hilbert symbols give Hasse--Minkowski and Dirichlet characters give primitive -function continuation and functional equations. The classical zeta page uses the Hadamard product and a logarithmic-derivative inequality for a zero-free region near ; a balanced truncated explicit formula yields the stated prime-number-theorem error. Its damped-contour Tauberian route is independent, and the progression result keeps the modulus fixed.
For a prime modulus, the nonzero residue classes form a cyclic unit group of order p-1.
2 definitions, 1 lemma, 3 propositions, 7 theorems, 3 corollariesExamples & counterexamples →Gauss's lemma turns a Legendre symbol into the parity of a finite lower-half count.
1 definition, 3 lemmas, 3 propositions, 9 theorems, 2 corollariesExamples & counterexamples →- Sums of Two Squares18 results
The first supplement to quadratic reciprocity determines exactly when -1 is a square modulo an odd prime.
1 definition, 7 lemmas, 2 propositions, 4 theorems, 4 corollariesExamples & counterexamples → This page fixes the summatory notion of average order and then carries the standard finite-sum arguments that make the first analytic-number-theory constants visible: the…
3 definitions, 3 lemmas, 6 theorems, 5 corollariesExamples & counterexamples →- Lagrange Four Square Theorem16 results
Division with remainder for a nonzero divisor, the divisibility relation with its linearity and transitivity, and congruence modulo an integer together with its compatibility…
1 definition, 9 lemmas, 1 proposition, 2 theorems, 2 corollaries, 1 remarkExamples & counterexamples → - Chebyshev Bounds and Mertens Theorems18 results
This page develops the classical finite arguments behind Chebyshev's density theorem, Bertrand's postulate, and the three Mertens theorems.
4 definitions, 6 lemmas, 6 theorems, 2 corollariesExamples & counterexamples → Dirichlet characters are the Fourier characters of the finite group (ℤ/qℤ)^×, written as arithmetic functions by extending them by zero off the units.
4 definitions, 8 lemmas, 11 theorems, 1 corollaryExamples & counterexamples →Symmetric Perron inversion gives half of a coefficient at a jump.
3 definitions, 5 lemmas, 5 theorems, 1 corollaryExamples & counterexamples →The Hadamard product and the nonnegative trigonometric polynomial give the classical zero-free region 1-β≫1/log(|γ|+3).
1 definition, 9 lemmas, 6 theorems, 4 corollariesExamples & counterexamples →The rational local fields are the archimedean completion ℝ together with the p-adic fields ℚ p.
2 definitions, 5 lemmas, 8 theorems, 2 corollariesExamples & counterexamples →This page fixes e(x)=exp(2π i x) and f̂(ξ)=∫ ℝf(x)e(-xξ) dx. It develops primitive characters, their Gauss sums, and the parity-sensitive theta argument leading to the…
5 definitions, 2 lemmas, 7 theorems, 2 corollariesExamples & counterexamples →