See How Things Work

Prime factorization is unique

Unit
Factors, Multiples & Primes
Part
2. Prime Numbers
Lesson
2.5

Every whole number greater than 1 is a product of primes in only one way, apart from the order of the factors. This lesson proves it, the fundamental theorem of arithmetic, from Euclid’s lemma: a prime that divides a product divides one of its factors. It then uses uniqueness to find every divisor of a number from its prime factorization.

What uniqueness says

The lesson “Prime factorization” proved the first half of a theorem: every whole number n > 1 is a prime or a product of primes. The second half says that this representation is unique, apart from the order in which the factors occur.⁠[1] This lesson proves the second half.

“Apart from the order” means that two products which differ only in the order of their factors count as the same factorization: 2 × 3 × 2 and 2 × 2 × 3 are one factorization of 12, not two.⁠[2] So the claim is that any two prime factorizations of the same number contain the same primes, each the same number of times. Written from least to greatest, they are then identical, and that is the form in which Rosen states the theorem.⁠[3]

Example (The same factorization or not?).

Compare (a) 2 × 7 × 3 × 2 with 3 × 2 × 2 × 7, and (b) 2 × 2 × 3 × 7 with 2 × 3 × 3 × 7.

  1. (a) From least to greatest, both are 2 × 2 × 3 × 7: two 2s, one 3 and one 7. The same factorization, of 84.
  2. (b) The first has two 2s and one 3; the second has one 2 and two 3s. Different lists of primes.
  3. Check: 2 × 2 × 3 × 7 = 84 and 2 × 3 × 3 × 7 = 126. Different lists give different numbers, as the Theorem will guarantee.

Answer: (a) the same factorization of 84, in two orders; (b) factorizations of two different numbers, 84 and 126.

Uniqueness may look obvious, but it is a real theorem, and it depends on a special property of the primes. The next example shows a system of numbers that looks much like the whole numbers, in which factorization into “primes” is not unique.

Example (A world where factorization is not unique).

Use only the even numbers 2, 4, 6, 8, …. Call an even number E-prime (a name used only in this example) if it is not a product of two even numbers. Find the E-primes up to 30, and show that 60 is a product of E-primes in two different ways.

  1. A product of two even numbers is (j × 2) × (k × 2) = (j × k) × 4, a multiple of 4. Conversely, a multiple of 4, m × 4 with m ≥ 1, is 2 × (m × 2), a product of two even numbers. So the E-primes are the even numbers that are not multiples of 4.
  2. Up to 30 they are 2, 6, 10, 14, 18, 22, 26 and 30.
  3. 60 = 2 × 30 and 60 = 6 × 10. All four factors 2, 30, 6 and 10 are E-primes.

Answer: 60 has two different factorizations into E-primes, with no factor in common. Among the even numbers, “factorization into E-primes” is not unique. The proof below must therefore use something that the E-primes lack: here 6 divides 2 × 30, as 60 = 6 × 10, but 6 divides neither 2 nor 30 among the even numbers (30 = 6 × 5, and 5 is not even).

Convention.

Uniqueness is also a reason given for not counting 1 as a prime: some say that 1 is left out of the primes to preserve the uniqueness of factorization⁠[4] (lesson “Why 1 is not prime”).

Euclid’s lemma

A divisor of a product need not divide any of its factors: 4 divides 2 × 6 = 12, but 4 divides neither 2 nor 6 (an exercise of the lesson “Divisibility”). For a prime divisor this cannot happen.

Theorem (Euclid’s lemma).

Let p be a prime and a, b whole numbers. If p | a × b, then p | a or p | b.

This is the standard statement for primes,⁠[5] and it is Proposition 30 of Book VII of Euclid’s Elements: “If two numbers, multiplied by one another make some number, and any prime number measures the product, then it also measures one of the original numbers.”⁠[6] It is called Euclid’s lemma.⁠[7] Some books, such as Burton’s, give that name to a more general statement, about two numbers whose only common divisor is 1.⁠[8]

Proof.

Suppose p | a × b and p ∤ a. We show that p | b. Call a whole number m ≥ 1 a good multiplier if p | m × b. Two good multipliers are known. The prime p is one, since p × b is a multiple of p. The number a is one, since p | a × b; and a ≥ 1, because a = 0 would give p | a (every number divides 0). Let s be the smallest good multiplier. It can be found by trying 1, 2, 3, … in turn, and s ≤ p, because p is good.

Step 1: s divides every good multiplier m. By the division algorithm, m = q × s + r with whole numbers q and r and 0 ≤ r < s. By the distributive and associative properties, m × b = q × (s × b) + r × b. Now p | s × b, so p | q × (s × b) by the rule on multiples; and p | m × b. By the Corollary of the lesson “Divisibility”, p | r × b. If r were 1 or more, r would be a good multiplier smaller than s, which is impossible. So r = 0, and m = q × s: s | m.

Step 2. By Step 1, s | p and s | a. The prime p has only the factors 1 and p, so s = 1 or s = p. If s = p, then p | a, which is false. So s = 1, and 1 is a good multiplier: p | 1 × b = b.

Reason.

The proof uses that p is prime in Step 2 only. Burton and Rosen prove the lemma, in its general form, differently, by writing 1 = a × x + b × y with integers x and y,⁠[9][10] which needs negative numbers; the proof above uses only whole numbers and the division algorithm.

Example (Using the lemma).

Does 7 divide 12 × 25?

  1. 7 is prime. 12 = 1 × 7 + 5, so 7 ∤ 12. 25 = 3 × 7 + 4, so 7 ∤ 25.
  2. If 7 divided 12 × 25, Euclid’s lemma would give 7 | 12 or 7 | 25. Neither holds.

Answer: 7 does not divide 12 × 25 = 300. Check: 300 = 42 × 7 + 6, remainder 6.

Example (A common mistake: using the lemma with a composite divisor).

6 divides 4 × 9 = 36. Must 6 divide 4 or 9? Where does the proof break down?

  1. 36 = 6 × 6, so 6 | 4 × 9. But 4 = 0 × 6 + 4 and 9 = 1 × 6 + 3: 6 divides neither factor.
  2. Run the proof with 6 in place of p, a = 4 and b = 9. The good multipliers are the m with 6 | m × 9: 1 × 9 = 9 and 3 × 9 = 27 are not multiples of 6, while 2 × 9 = 18 = 3 × 6 is. The smallest good multiplier is s = 2.
  3. Step 1 still works: 2 divides the good multipliers 6 and 4. Step 2 fails: 2 is a factor of 6 that is neither 1 nor 6.

Answer: no. The lemma is about prime divisors, and for the composite divisor 6 it fails: 6 = 2 × 3 has the factor 2, which is shared with 4, and the factor 3, shared with 9.

Corollary (many factors).

If a prime p divides a product a₁ × a₂ × … × aₖ of whole numbers, then p divides at least one of the factors.

Proof.

Group the product as a₁ × (a₂ × … × aₖ). By Euclid’s lemma, p | a₁ or p | a₂ × … × aₖ. In the second case, apply the lemma again, to a₂ × (a₃ × … × aₖ). Each application leaves one factor fewer, so after at most k − 1 applications p divides one of the factors.

Rosen states this generalization and uses it to prove uniqueness.⁠[11]

Corollary (a prime dividing a product of primes).

If a prime p divides a product q₁ × q₂ × … × qₖ of primes, then p is one of them: p = qⱼ for some j.

Proof.

By the previous Corollary, p | qⱼ for some j. The only factors of the prime qⱼ are 1 and qⱼ (lesson “Prime and composite numbers”), and p ≠ 1; so p = qⱼ.

In particular, no prime divides a different prime.⁠[12]

Example (No product of 2s ends in 0).

Show that no product 2 × 2 × … × 2 (with any number of factors 2) ends in the digit 0.

  1. A number ends in 0 exactly when 10 divides it (lesson “Divisibility rules and why they work”). If 10 divided the product, then 5 would divide it too, by the rule on chains, since 5 | 10.
  2. 5 is prime, so by the second Corollary 5 would be one of the factors 2. It is not.

Answer: 5 never divides a product of 2s, so such a product never ends in 0 (nor in 5). Check on examples: 2 × 2 × 2 × 2 = 16, 2 × 2 × 2 × 2 × 2 = 32, and ten factors 2 give 1,024.

The uniqueness theorem

Theorem .

Let p₁ × p₂ × … × pᵣ = q₁ × q₂ × … × qₛ, where every pᵢ and every qⱼ is a prime. Then r = s, and the primes of the right side can be matched one to one with equal primes of the left side. So the two products contain the same primes, each the same number of times, and differ at most in order.

Proof.

Call the common value of the two products m; it is at least 2. Take the first prime p₁ on the left. It divides m, which is the product on the right; by the second Corollary, p₁ equals some prime qⱼ on the right. Match p₁ with this qⱼ. By the commutative and associative properties,⁠[13][14] both sides can be written with the matched prime in front: p₁ × (p₂ × … × pᵣ) = p₁ × (the other primes of the right side).

Now cancel p₁. Both bracketed products are the whole number q with q × p₁ = m, and since p₁ ≠ 0 there is only one such number (lesson “Division as the inverse of multiplication”). So the two bracketed products are equal: the left side has lost one prime, the right side has lost one equal prime, and their common value is now m ÷ p₁, less than m.

Repeat with the remaining primes. A side whose primes have all been cancelled stands for 1 (for example, when m = p₁ the number q with q × p₁ = p₁ is 1), and a product of one or more primes is at least 2. So while the common value is at least 2, both sides still contain a prime and the step can be repeated; and once the common value is 1, neither side has a prime left. The common value decreases at every step, so it reaches 1. At that moment every prime on each side has been matched with an equal prime on the other side, one to one, and r = s.

This is Burton’s proof: a prime common to both sides is found and cancelled, and the process is repeated.⁠[15] Rosen removes all the common primes at once and shows that nothing can remain.⁠[16] The matching at the end is a one-to-one correspondence in the sense of the lesson “What counting is”, between the two lists of primes, in which each prime is matched with an equal prime.

from the tree 360 = 10 × 362×5×2×3×2×3= 3603×2×2×5×2×3= 360from the tree 360 = 12 × 30
Figure. Two products of primes equal to 360, read from two different factor trees. Each prime of the first product is joined to an equal prime of the second, and every prime is used exactly once: the two products contain the same primes the same number of times (three 2s, two 3s, one 5) and differ only in order. The Theorem of this lesson says that such a one-to-one matching exists for any two prime factorizations of the same number.
Example (Matching two factorizations of 360).

Two factor trees of 360 give 2 × 5 × 2 × 3 × 2 × 3 and 3 × 2 × 2 × 5 × 2 × 3. Follow the proof to match them.

  1. The first prime on the left is 2. A 2 occurs on the right (the second factor): match them and cancel. Left: 5 × 2 × 3 × 2 × 3. Right: 3 × 2 × 5 × 2 × 3. Both equal 180.
  2. 5 occurs on the right: cancel. Left: 2 × 3 × 2 × 3. Right: 3 × 2 × 2 × 3. Both equal 36.
  3. 2: cancel. Left 3 × 2 × 3, right 3 × 2 × 3, both 18. Then 3, 2 and 3 cancel in turn: 6, 3, and finally 1 on both sides.

Answer: six matches, using all six primes on each side: three 2s, two 3s and one 5. Both products are 360 = 2 × 2 × 2 × 3 × 3 × 5.

The two halves together form the main theorem of this part of the unit.

Theorem (the fundamental theorem of arithmetic).

Every whole number n > 1 is a prime or a product of primes, and this representation is unique apart from the order of the factors. Written from least to greatest, the prime factorization of n is unique.

The name fundamental theorem of arithmetic is standard;⁠[17][1][3] the theorem is also called the unique factorization theorem.⁠[18] From now on “the prime factorization of n” is justified: whichever method finds a factorization, the ladder or any factor tree, finds the same one.

Example (A common mistake: comparing factorizations that are not prime).

“60 = 6 × 10 and 60 = 4 × 15, and these share no factor, so factorization is not unique.” Find the error.

  1. 6, 10, 4 and 15 are not primes, so neither product is a prime factorization.
  2. Split them into primes: 6 × 10 = (2 × 3) × (2 × 5) and 4 × 15 = (2 × 2) × (3 × 5).
  3. From least to greatest both are 2 × 2 × 3 × 5.

Answer: there is no contradiction. The theorem is about products of primes; products of composite numbers can differ freely. Check: 2 × 2 × 3 × 5 = 60.

Example (Different factorizations, different numbers).

Without multiplying, show that 2 × 2 × 3 × 3 × 7 and 2 × 3 × 3 × 3 × 5 are different numbers.

  1. Both are products of primes written from least to greatest.
  2. The first contains two 2s, the second only one. So they are different prime factorizations.
  3. If the two numbers were equal, that number would have two different prime factorizations, which the Theorem rules out.

Answer: they are different. Check: 2 × 2 × 3 × 3 × 7 = 252 and 2 × 3 × 3 × 3 × 5 = 270.

Every divisor from the factorization

The lesson “Prime factorization” showed that every product of some of the prime factors of n divides n. With uniqueness, the converse holds as well.

Theorem .

Let n > 1. A whole number d ≥ 1 divides n exactly when every prime occurs in the prime factorization of d at most as many times as it occurs in the prime factorization of n. (For d = 1, which has no prime factors, this holds automatically.)

Proof.

If the primes of d occur in n at least as often, group the factorization of n into two parts, the primes of d and the rest: n = d × e, where e is the product of the rest (1 if nothing is left). So d | n.

Conversely, let d | n, so n = d × e for a whole number e ≥ 1. If d = 1 there is nothing to show; if e = 1, then d = n. Otherwise d and e are both greater than 1. Write each as a product of primes and put the two products side by side: the result is a product of primes equal to d × e = n. By uniqueness it contains every prime exactly as many times as the prime factorization of n. It contains the primes of d, so each of them occurs in n at least as often as in d.

The proof follows Burton’s, who writes both d and its partner as products of primes to find all the divisors of n from its prime factorization.⁠[19]

Corollary .

A prime p divides n > 1 exactly when p is one of the primes in the prime factorization of n.

Proof.

The prime factorization of p is p itself. By the Theorem, p | n exactly when p occurs at least once in the factorization of n.

divisors of 72 = 2 × 2 × 2 × 3 × 3× 1× 3× 3 × 31139226182 × 2412362 × 2 × 282472
Figure. Every divisor of 72 = 2 × 2 × 2 × 3 × 3 is a product of some of its primes: no 2, one, two or three 2s (rows), times no 3, one or two 3s (columns). The table lists all 4 × 3 = 12 divisors: 1, 2, 3, 4, 6, 8, 9, 12, 18, 24, 36 and 72. No other number divides 72, by the Theorem on divisors.
Example (Two divisor questions about 1,260).

1,260 = 2 × 2 × 3 × 3 × 5 × 7. Does 24 divide 1,260? Does 45?

  1. 24 = 2 × 2 × 2 × 3 has three 2s; 1,260 has only two. By the Theorem, 24 ∤ 1,260.
  2. 45 = 3 × 3 × 5: two 3s and one 5, and 1,260 has two 3s and one 5. So 45 | 1,260.
  3. Grouping: 1,260 = (3 × 3 × 5) × (2 × 2 × 7) = 45 × 28.

Answer: 24 does not divide 1,260 and 45 does. Check: 1,260 = 52 × 24 + 12 (remainder 12), and 45 × 28 = 1,260.

Example (Edge case: a prime that is not in the list).

Does 11 divide 2 × 3 × 5 × 7 × 13 = 2,730?

  1. 11 is prime and is not among 2, 3, 5, 7, 13.
  2. By the Corollary, 11 ∤ 2,730. No division is needed.

Answer: no. Check: 2,730 = 248 × 11 + 2, remainder 2.

Game

Is it a divisor?

Round
1
Score
0
Streak
0

1,470 = 2 × 3 × 5 × 7 × 7. Does 70 divide 1,470? Tap primes of 1,470 to try to build 70, then answer.

Nothing selected yet. Tap primes of 1,470 to build 70.

Looking ahead.

Collecting equal primes, a prime factorization is often written with exponents, in what Burton calls a canonical form.⁠[20] Exponents are taught in the unit Powers & Square Roots; this unit writes every factor out. The Theorem on divisors is the basis of the lesson “Finding the GCD from prime factorizations”, in part 3 of this unit.

History

The nearest Euclid came to the theorem is Proposition 14 of Book IX: “If a number is the least that is measured by prime numbers, then it is not measured by any other prime number except those originally measuring it.”⁠[21][22] Burton’s number theory book says that this proposition embodies the result later known as the fundamental theorem;⁠[17] his history of mathematics adds that the theorem, though sometimes attributed to Euclid, apparently was not stated explicitly before 1801, when Gauss featured it in his Disquisitiones Arithmeticae.⁠[22] Caldwell and Xiong also date Gauss’s statement and proof of the theorem to 1801.⁠[23] Earlier partial results, by Euclid and al-Farisi, are described in the lesson “Prime factorization”.

Historical note.

In the nineteenth century, attempts to prove Fermat’s Last Theorem worked with larger systems of numbers than the whole numbers, and they broke down because unique factorization does not extend to all of these systems.⁠[24] Lamé believed at one stage that he had solved the problem, but he had overlooked the lack of unique factorization in certain of them:⁠[25] his proof tacitly assumed that the usual rules of factorization of integers apply there too.⁠[26] Kummer had shown that unique factorization fails in such a system,⁠[27][24] and he set out to restore it by introducing “ideal” numbers.⁠[24]

Exercises

Exercise .

Are 7 × 2 × 3 × 2 and 2 × 3 × 7 × 2 the same prime factorization? Of which number?

▸ Show solution

Both are 2 × 2 × 3 × 7 from least to greatest: the same primes the same number of times. So they are the same factorization, of 2 × 2 × 3 × 7 = 84.

Exercise .

Without multiplying out, decide whether 11 divides 13 × 17 × 19.

▸ Show solution

11 is prime. If 11 divided 13 × 17 × 19, by the second Corollary it would equal one of the primes 13, 17, 19. It does not, so 11 ∤ 13 × 17 × 19. Check: 13 × 17 = 221, 221 × 19 = 4,199 = 381 × 11 + 8.

Exercise .

Does 12 divide 2 × 3 × 5 × 7 × 11 = 2,310? Does 42?

▸ Show solution

2,310 = 2 × 3 × 5 × 7 × 11 has one 2, while 12 = 2 × 2 × 3 has two. By the Theorem on divisors, 12 ∤ 2,310. Check: 2,310 = 192 × 12 + 6. On the other hand 2 × 3 × 7 = 42 divides it: 2,310 = 42 × 55.

Exercise .

Use the prime factorization of 100 to list all its divisors.

▸ Show solution

A divisor of 100 = 2 × 2 × 5 × 5 is a product of no, one or two 2s and no, one or two 5s: 3 × 3 = 9 choices.

Without a 5: 1, 2, 4. With one 5: 5, 10, 20. With two 5s: 25, 50, 100. So the divisors are 1, 2, 4, 5, 10, 20, 25, 50, 100.

Exercise .

Prove that a product 3 × 3 × … × 3 is never even and never ends in 0 or 5.

▸ Show solution

A number ends in 0 or 5 exactly when 5 divides it (lesson “Divisibility rules and why they work”). If 5 divided a product of 3s, then by the second Corollary 5 would equal one of the factors 3, which is false. So no product 3 × 3 × … × 3 ends in 0 or 5. Similarly, 2 does not divide it, so it is odd. Check: 3 × 3 × 3 × 3 = 81 and 3 × 3 × 3 × 3 × 3 = 243.

Exercise .

Let p be a prime and a a whole number with p | a × a. Prove that p × p divides a × a.

▸ Show solution

By Euclid’s lemma applied to a × a, p | a. Write a = k × p. Then a × a = (k × p) × (k × p) = (k × k) × (p × p), by the commutative and associative properties. So p × p | a × a.

Example: 3 | 6 × 6 = 36, and indeed 9 | 36 (36 = 4 × 9).

Exercise .

In the world of even numbers of Section 1, write 180 as a product of two E-primes in three different ways. What is the prime factorization of 180 in the whole numbers?

▸ Show solution

The E-primes are the even numbers that are not multiples of 4. 180 = 2 × 90 = 6 × 30 = 10 × 18. Each factor is even and not a multiple of 4: 2, 90 = 22 × 4 + 2, 6, 30 = 7 × 4 + 2, 10 and 18 = 4 × 4 + 2. So these are three different factorizations into E-primes.

In the whole numbers, all three refine to the one prime factorization 2 × 2 × 3 × 3 × 5: for example 6 × 30 = (2 × 3) × (2 × 3 × 5).

Summary

  1. Two prime factorizations are the same when they contain the same primes the same number of times; order does not matter.
  2. Euclid’s lemma: if a prime p divides a × b, then p divides a or b. It fails for composite divisors (6 | 4 × 9). It extends to products of many factors.
  3. Uniqueness: if two products of primes are equal, a prime of one side equals a prime of the other; cancelling it and repeating matches the primes one to one.
  4. The fundamental theorem of arithmetic: every n > 1 is a prime or a product of primes, uniquely apart from order.
  5. d divides n exactly when every prime occurs in d at most as often as in n; a prime divides n exactly when it is one of n’s primes.

Sources

  1. 1.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 3, “Primes and Their Distribution”, section 3.1, “The Fundamental Theorem of Arithmetic”, Theorem 3.2, p. 41 (the whole topic: pp. 39–42).
    “Theorem 3.2 Fundamental Theorem of Arithmetic. Every positive integer n > 1 is either a prime or a product of primes; this representation is unique, apart from the order in which the factors occur.”
    Used for: the name fundamental theorem of arithmetic; every number greater than 1 is a prime or a product of primes, and the representation is unique apart from the order of the factors.
  2. 2.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 3, “Primes and Their Distribution”, section 3.1, “The Fundamental Theorem of Arithmetic”, p. 40 (the whole topic: pp. 39–42).
    “the linguistic ambiguity essentially means that 2 · 3 · 2 is not considered as being a different factorization of 12 from 2 · 2 · 3”
    Used for: products that differ only in the order of their factors count as the same factorization: 2 × 3 × 2 and 2 × 2 × 3 are one factorization of 12.
  3. 3.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.2, “Primes”), Theorem 1, p. 272 (the whole topic: pp. 271–272).
    “Every integer greater than 1 can be written uniquely as a prime or as the product of two or more primes, where the prime factors are written in order of nondecreasing size.”
    Used for: Rosen’s form of the theorem: the prime factorization written from least to greatest is unique.
  4. 4.
    Chris K. Caldwell and Yeng Xiong, “What is the smallest prime?”, Journal of Integer Sequences 15 (2012), Article 12.9.7.
    “For example, some say unity is omitted from the primes to preserve the uniqueness of factorization.”
    Used for: some say that 1 is left out of the primes to preserve the uniqueness of factorization.
  5. 5.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 3, “Primes and Their Distribution”, section 3.1, “The Fundamental Theorem of Arithmetic”, Theorem 3.1, p. 40 (the whole topic: pp. 39–42).
    “This is typical of the general situation, the precise result being Theorem 3.1. Theorem 3.1. If p is a prime and p | ab, then p | a or p | b.”
    Used for: the standard statement for primes: if p | a × b, then p | a or p | b; it is Burton’s Theorem 3.1.
  6. 6.
    Euclid, trans. T. L. Heath, ed. D. E. Joyce, “Euclid’s Elements, Book VII”, Clark University.
    “If two numbers, multiplied by one another make some number, and any prime number measures the product, then it also measures one of the original numbers.”
    Used for: Euclid, Elements VII.30: a prime that divides a product of two numbers divides one of them.
  7. 7.
    Adrian W. Dudek, “On the Success of Mishandling Euclid’s Lemma”, The American Mathematical Monthly 123(9) (2016), 924–927.
    “We examine Euclid's lemma that if p is a prime number such that p | ab, then p divides at least one of a or b.”
    Used for: the name Euclid’s lemma for the prime case: if a prime p divides a × b, then p divides a or b.
  8. 8.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 2, “Divisibility Theory in the Integers”, section 2.3, “The Greatest Common Divisor”, Theorem 2.5, p. 24 (the whole topic: pp. 23–24).
    “Our next result seems mild enough, but is of fundamental importance. Theorem 2.5 Euclid’s lemma. If a | bc, with gcd(a, b) = 1, then a | c.”
    Used for: Burton gives the name Euclid’s lemma to the general statement about two numbers whose only common divisor is 1.
  9. 9.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 2, “Divisibility Theory in the Integers”, section 2.3, “The Greatest Common Divisor”, proof of Theorem 2.5, p. 24 (the whole topic: pp. 21–24).
    “We start again from Theorem 2.3, writing 1 = ax + by, where x and y are integers.”
    Used for: Burton proves Euclid’s lemma by writing 1 = a × x + b × y with integers x and y.
  10. 10.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.8, “gcds as Linear Combinations”), proof of Lemma 2, p. 287 (the whole topic: pp. 285–288).
    “there are integers s and t such that sa + tb = 1. Multiplying both sides of this equation by c, we obtain sac + tbc = c.”
    Used for: Rosen proves the general form of the lemma by writing 1 as s × a + t × b with integers s and t.
  11. 11.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.8, “gcds as Linear Combinations”), Lemma 3, p. 287 (the whole topic: pp. 287–288).
    “We will use the following generalization of Lemma 2 in the proof of uniqueness of prime factorizations.”
    Used for: Rosen states the generalization to many factors (his Lemma 3: a prime dividing a product divides one of the factors) and uses it to prove uniqueness.
  12. 12.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.8, “gcds as Linear Combinations”), proof of uniqueness, p. 288 (the whole topic: pp. 287–288).
    “Because no prime divides another prime, this is impossible.”
    Used for: no prime divides a different prime.
  13. 13.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 1, “Whole Numbers”, section 1.4, “Multiply Whole Numbers” (“Multiply Whole Numbers”), “Commutative Property of Multiplication”, p. 55 (the whole topic: pp. 54–55).
    “When the order of the factors is reversed, the product does not change. This is called the Commutative Property of Multiplication.”
    Used for: the order of the factors of a product can be changed (the commutative property).
  14. 14.
    Lynn Marecek, MaryAnne Anthony-Smith and Andrea Honeycutt Mathis, Prealgebra (2nd ed., OpenStax, Rice University, 2020).
    Chapter 7, “The Properties of Real Numbers”, section 7.2, “Commutative and Associative Properties” (“Use the Commutative and Associative Properties”), p. 548 (the whole topic: pp. 546–549).
    “When multiplying three numbers, changing the grouping of the numbers does not change the result. This is known as the Associative Property of Multiplication.”
    Used for: the factors of a product can be regrouped (the associative property).
  15. 15.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 3, “Primes and Their Distribution”, section 3.1, “The Fundamental Theorem of Arithmetic”, proof of Theorem 3.2, p. 41 (the whole topic: pp. 39–42).
    “We may cancel this common factor and obtain”
    Used for: Burton’s proof of uniqueness finds a prime common to both sides, cancels it, and repeats.
  16. 16.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.8, “gcds as Linear Combinations”), proof of uniqueness, p. 288 (the whole topic: pp. 287–288).
    “When we remove all common primes from the two factorizations, we have”
    Used for: Rosen’s proof of uniqueness removes all the common primes from the two factorizations.
  17. 17.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 3, “Primes and Their Distribution”, section 3.1, “The Fundamental Theorem of Arithmetic”, p. 39 (the whole topic: pp. 39–42).
    “Proposition 14 of Book IX of Euclid’s Elements embodies the result that later became known as the Fundamental Theorem of Arithmetic, namely, that every integer greater than 1 can, except for the order of the factors, be represented as a product of primes in one and only one way.”
    Used for: the name fundamental theorem of arithmetic; Burton’s number theory book says that Euclid IX.14 embodies the result.
  18. 18.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 4, “The Alexandrian School: Euclid”, section 4.3, “Euclid’s Number Theory” (“The Fundamental Theorem of Arithmetic”), p. 177 (the whole topic: pp. 177–178).
    “The fundamental theorem of arithmetic, otherwise known as the “unique factorization theorem,” asserts that any integer greater than 1 can be represented as a product of primes, and that the product is unique apart from the order in which the factors appear.”
    Used for: the theorem is also called the unique factorization theorem.
  19. 19.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 6, “Number-Theoretic Functions”, section 6.1, “The Sum and Number of Divisors”, proof of Theorem 6.1, p. 104 (the whole topic: pp. 104–105).
    “Suppose that d divides n nontrivially; say, n = dd′, where d > 1, d′ > 1. Express both d and d′ as products of (not necessarily distinct) primes”
    Used for: the divisors of n are found from its prime factorization; the proof writes d and its partner as products of primes, as in the lesson’s proof.
  20. 20.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 3, “Primes and Their Distribution”, section 3.1, “The Fundamental Theorem of Arithmetic”, p. 42 (the whole topic: pp. 39–42).
    “By collecting like primes and replacing them by a single factor, we can rephrase Theorem 3.2 as a corollary. Corollary. Any positive integer n > 1 can be written uniquely in a canonical form”
    Used for: collecting equal primes gives the canonical form of a prime factorization (with exponents).
  21. 21.
    Euclid, trans. T. L. Heath, ed. D. E. Joyce, “Euclid’s Elements, Book IX”, Clark University.
    “If a number is the least that is measured by prime numbers, then it is not measured by any other prime number except those originally measuring it.”
    Used for: the text of Euclid, Elements IX.14.
  22. 22.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 4, “The Alexandrian School: Euclid”, section 4.3, “Euclid’s Number Theory” (“The Fundamental Theorem of Arithmetic”), p. 177 (the whole topic: pp. 177–178).
    “Although this theorem is sometimes attributed to Euclid, it apparently was not expressly stated before 1801, when Gauss featured it in his Disquisitiones Arithmeticae. The nearest that Euclid himself came to this result was Proposition 14 of Book IX”
    Used for: Euclid IX.14 is the nearest Euclid came to the theorem; the theorem apparently was not stated explicitly before 1801, when Gauss featured it in the Disquisitiones Arithmeticae.
  23. 23.
    Chris K. Caldwell and Yeng Xiong, “What is the smallest prime?”, Journal of Integer Sequences 15 (2012), Article 12.9.7.
    “When Gauss first states and proves the fundamental theorem of arithmetic (FTA) in 1801”
    Used for: Caldwell and Xiong date Gauss’s statement and proof of the fundamental theorem of arithmetic to 1801 (a second source for the date).
  24. 24.
    J. J. O’Connor and E. F. Robertson, “Ernst Eduard Kummer”, MacTutor History of Mathematics Archive, University of St Andrews.
    “In 1843 Kummer, realising that attempts to prove Fermat's Last Theorem broke down because the unique factorisation of integers did not extend to other rings of complex numbers, attempted to restore the uniqueness of factorisation by introducing 'ideal' numbers.”
    Used for: attempts to prove Fermat’s Last Theorem broke down because unique factorization does not extend to larger systems of numbers; Kummer set out to restore it by introducing ideal numbers.
  25. 25.
    J. J. O’Connor and E. F. Robertson, “Gabriel Lamé”, MacTutor History of Mathematics Archive, University of St Andrews.
    “In fact he believed that he had solved the whole problem at one stage but he had overlooked the lack of unique factorisation in certain subrings of the complex numbers.”
    Used for: Lamé believed at one stage that he had solved Fermat’s Last Theorem but had overlooked the lack of unique factorization in certain systems of numbers.
  26. 26.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 10, “The Revival of Number Theory: Fermat, Euler, and Gauss”, section 10.2, “From Fermat to Euler” (“The Famous Last Theorem of Fermat”), p. 518 (the whole topic: pp. 516–519).
    “He pointed out several gaps in Lamé’s proposed proof, the most serious of which was the tacit assumption that the usual rules of factorization of integers also would apply to “cyclotomic integers,””
    Used for: Lamé’s proof tacitly assumed that the usual rules of factorization of integers apply in a larger system of numbers (a second source).
  27. 27.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 10, “The Revival of Number Theory: Fermat, Euler, and Gauss”, section 10.2, “From Fermat to Euler” (“The Famous Last Theorem of Fermat”), p. 518 (the whole topic: pp. 516–519).
    “Kummer enclosed a copy of the paper in which, three years earlier (1844), he had demonstrated the failure of unique factorization of cyclotomic integers”
    Used for: Kummer had shown that unique factorization fails in such a system (a second source).