Unique Factorization
The unit that establishes prime factorization is unique and builds the machinery around it: divisibility and the division algorithm as the foundation, the Fundamental Theorem of Arithmetic, the canonical form and divisor structure it produces, and the Euclidean algorithm that computes the gcd, yields Bézout’s identity, and supplies Euclid’s lemma to re-prove uniqueness by the standard route. It closes with the gcd properties, the least common multiple, and a proof that uniqueness fails outside Z. Scope: from divisibility through the failure in Z[sqrt(-5)]. It follows the natural-numbers unit and precedes modular arithmetic.
Topic notes in reading order
Divisibility
The relation $a \mid b$ (there is $k$ with $b = ak$), its edge cases, reflexivity/transitivity/antisymmetry, the divisor size bound, and linearity, the workhorse of the unit.
The Division Algorithm
The atom: dividing $a$ by positive $b$ gives a unique quotient and a remainder strictly below $b$.
Fundamental Theorem of Arithmetic
Every integer above $1$ is a product of primes (existence), and that product is forced up to order (uniqueness by the Lindemann–Zermelo route, avoiding Euclid’s lemma on purpose).
Canonical Form and Divisor Structure
The single pinned form $n = p_1^{a_1} \cdots p_k^{a_k}$, the exponent function $v_p(n)$, which integers divide $n$, and the divisor count $\tau(n) = \prod (a_i + 1)$.
The Euclidean Algorithm and the GCD
The remainder-swap lemma $\gcd(a,b) = \gcd(b,r)$, the algorithm whose last nonzero remainder is the gcd, and its termination.
Bézout’s Identity
Writing $\gcd(a,b) = ax + by$ by back-substitution, and the fact that the values of $ax + by$ are exactly the multiples of the gcd.
GCD Properties and Coprimality
The universal characterization (every common divisor divides the gcd), the coprimality test $ax + by = 1 \iff \gcd = 1$, the coprime-divisibility rule that generalizes Euclid’s lemma, scaling and reduction, and $v_p(\gcd) = \min$.
Euclid’s Lemma and Unique Factorization Revisited
A prime dividing a product divides a factor, and the short second proof of FTA uniqueness that discharges the deferred debt.
Least Common Multiple
The smallest common multiple, its universal property, and the identity $\gcd(a,b)\cdot\mathrm{lcm}(a,b) = ab$ proved two ways.
Failure of Unique Factorization in Z(sqrt-5)
A ring where $6$ has two genuinely different irreducible factorizations, diagnosed as irreducible-not-prime for want of a division algorithm.
Dependency map
graph TD
DIVI["Divisibility"]
WO["Well-ordering (prior unit)"]
DIVI --> DA["The Division Algorithm"]
WO --> DA
DIVI --> FTA["Fundamental Theorem of Arithmetic"]
WO --> FTA
FTA --> CF["Canonical Form and Divisor Structure"]
DA --> EUC["The Euclidean Algorithm and the GCD"]
DIVI --> EUC
EUC --> BEZ["Bézout's Identity"]
BEZ --> GCDP["GCD Properties and Coprimality"]
CF --> GCDP
BEZ --> EL["Euclid's Lemma and Unique Factorization Revisited"]
EL -. "second proof of" .-> FTA
GCDP --> LCM["Least Common Multiple"]
DA --> LCM
CF --> LCM
FTA --> ZS["Failure of Unique Factorization in Z[sqrt(-5)]"]
EL --> ZS
CF --> MOD["Modular arithmetic (next unit)"]
EL --> MOD