Math 2.0

Number theory Proof

Proof of the fundamental theorem of arithmetic

Builds on Prime factorizationExistence of prime factorizationEuclid's lemmaPrime numberStrong induction

Proof

Existence is a known result; we prove uniqueness by strong induction on nn, using Euclid's lemma.

  1. Let nn be a positive integer. By the existence of prime factorization, nn has a prime factorization n=p1⋯pkn = p_1 \cdots p_k with p1≤⋯≤pkp_1 \le \dots \le p_k.
  2. First a claim. Let pp be a prime, and let q1,…,qlq_1, \dots, q_l be primes with l≥1l \ge 1 and p∣q1⋯qlp \mid q_1 \cdots q_l. Then p=qjp = q_j for some jj.
  3. We prove the claim by induction on ll. If p∣qjp \mid q_j for a prime qjq_j, then pp is a positive divisor of qjq_j other than 11, so p=qjp = q_j.
  4. For l=1l = 1, step 3 applies directly. For l≥2l \ge 2, we have p∣q1⋅(q2⋯ql)p \mid q_1 \cdot (q_2 \cdots q_l).
  5. By Euclid's lemma, p∣q1p \mid q_1 or p∣q2⋯qlp \mid q_2 \cdots q_l. In the first case, step 3 gives p=q1p = q_1. In the second case, the induction hypothesis gives p=qjp = q_j with j≥2j \ge 2.
  6. Now let U(n)U(n) say: any two prime factorizations of nn are equal. Assume that U(m)U(m) holds for all positive m<nm < n.
  7. Let n=p1⋯pk=q1⋯qln = p_1 \cdots p_k = q_1 \cdots q_l with primes p1≤⋯≤pkp_1 \le \dots \le p_k and q1≤⋯≤qlq_1 \le \dots \le q_l.
  8. If n=1n = 1, then k=l=0k = l = 0, because a product of at least one prime is at least 22. So the two factorizations are equal.
  9. Let n≥2n \ge 2. Then k≥1k \ge 1 and l≥1l \ge 1.
  10. Since p1∣n=q1⋯qlp_1 \mid n = q_1 \cdots q_l, the claim gives p1=qjp_1 = q_j for some jj. So p1≥q1p_1 \ge q_1.
  11. In the same way, q1∣p1⋯pkq_1 \mid p_1 \cdots p_k gives q1=piq_1 = p_i for some ii. So q1≥p1q_1 \ge p_1. Hence p1=q1p_1 = q_1.
  12. Put m=n/p1m = n / p_1. Cancelling p1=q1p_1 = q_1 gives m=p2⋯pk=q2⋯qlm = p_2 \cdots p_k = q_2 \cdots q_l. Here 1≤m<n1 \le m < n, because p1≥2p_1 \ge 2.
  13. These are two prime factorizations of mm. By U(m)U(m), k−1=l−1k - 1 = l - 1 and pi=qip_i = q_i for 2≤i≤k2 \le i \le k.
  14. With step 11, k=lk = l and pi=qip_i = q_i for each ii. So U(n)U(n) holds.
  15. By strong induction, U(n)U(n) holds for every positive integer nn. Together with step 1, each positive integer has exactly one prime factorization.

Idea

The smallest prime of one factorization divides the other product, so by Euclid's lemma it appears in the other factorization. Comparing the smallest primes on both sides shows that they are equal. Cancelling them gives a smaller number, where induction finishes the job.

Reading path

To understand this page from the ground up, read these 33 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof of Euclid's lemma, Proof of strong induction from ordinary induction, Proof of the existence of prime factorization, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof of the existence of a prime divisor.

Show the path as a graph
Definition by recursion, concept, no evidence levelDefinition by recursi…conceptDivisibility, definition, no evidence levelDivisibilitydefinitionMathematical induction, concept, no evidence levelMathematical inductionconceptNatural numbers, object, no evidence levelNatural numbersobjectPeano axioms, concept, no evidence levelPeano axiomsconceptGreatest common divisor, definition, no evidence levelGreatest common divis…definitionPrime number, definition, no evidence levelPrime numberdefinitionSuccessor function, definition, no evidence levelSuccessor functiondefinitionCoprime integers, definition, no evidence levelCoprime integersdefinitionPrime factorization, definition, no evidence levelPrime factorizationdefinitionAddition of natural numbers, definition, no evidence levelAddition of natural n…definitionThe successor function is injective, statement, no evidence levelThe successor functio…statementZero is not a successor, statement, no evidence levelZero is not a success…statementProof of the commutativity of addition by induction, proof, no evidence levelProof of the commutat…proofOrder on the natural numbers, definition, no evidence levelOrder on the natural …definitionCommutativity of addition, statement, no evidence levelCommutativity of addi…statementProof of strong induction from ordinary induction, proof, no evidence levelProof of strong induc…proofStrong induction, statement, no evidence levelStrong inductionstatementProof of the well-ordering principle from strong induction, proof, no evidence levelProof of the well-ord…proofWell-ordering principle, statement, no evidence levelWell-ordering princip…statementProof of the division algorithm, proof, no evidence levelProof of the division…proofProof of the existence of a prime divisor, proof, no evidence levelProof of the existenc…proofDivision algorithm, statement, no evidence levelDivision algorithmstatementExistence of a prime divisor, statement, no evidence levelExistence of a prime …statementProof of Bézout's identity, proof, no evidence levelProof of Bézout's ide…proofProof of the existence of prime factorization, proof, no evidence levelProof of the existenc…proofBézout's identity, statement, no evidence levelBézout's identitystatementExistence of prime factorization, statement, no evidence levelExistence of prime fa…statementProof of the generalized Euclid's lemma, proof, no evidence levelProof of the generali…proofGeneralized Euclid's lemma, statement, no evidence levelGeneralized Euclid's …statementProof of Euclid's lemma, proof, no evidence levelProof of Euclid's lem…proofEuclid's lemma, statement, no evidence levelEuclid's lemmastatementProof of the fundamental theorem of arithmetic, proof, no evidence levelProof of the fundamen…proof
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Definition by recursion concept
  2. Divisibility definition
  3. Mathematical induction concept
  4. Natural numbers object
  5. Peano axioms concept
  6. Greatest common divisor definition
  7. Prime number definition
  8. Successor function definition
  9. Coprime integers definition
  10. Prime factorization definition
  11. Addition of natural numbers definition
  12. The successor function is injective statement
  13. Zero is not a successor statement
  14. Proof of the commutativity of addition by induction proof
  15. Order on the natural numbers definition
  16. Commutativity of addition statement
  17. Proof of strong induction from ordinary induction proof
  18. Strong induction statement
  19. Proof of the well-ordering principle from strong induction proof
  20. Well-ordering principle statement
  21. Proof of the division algorithm proof
  22. Proof of the existence of a prime divisor proof
  23. Division algorithm statement
  24. Existence of a prime divisor statement
  25. Proof of Bézout's identity proof
  26. Proof of the existence of prime factorization proof
  27. Bézout's identity statement
  28. Existence of prime factorization statement
  29. Proof of the generalized Euclid's lemma proof
  30. Generalized Euclid's lemma statement
  31. Proof of Euclid's lemma proof
  32. Euclid's lemma statement
  33. Proof of the fundamental theorem of arithmetic proof

Where this leads

81 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Fundamental_theorem_of_arithmetic, Proof
About this page
TagCTSV0ZESYF
URIm2://CTSV0ZESYF
Kindproof
WritingW0 stub
MSC11A51
ProvesFundamental theorem of arithmetic
UsesPrime factorization, Existence of prime factorization, Euclid's lemma, Prime number, Strong induction
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.