§ 93. Uniqueness of the Prime Factorization of a Composite Number
A composite number can be factored into prime factors in only one way. It is easy to prove that, by the method described in § 91, any composite number can be decomposed into prime factors. However, when applying this method, we are not strictly bound to the order specified; that is, we may begin the decomposition not with the smallest prime number by which the composite number is divisible, but proceed in some other sequence (and, as we have seen, we may even first decompose the composite number into composite factors and then decompose those factors into primes). Therefore, the question arises: can two (or more) different sequences of prime factors ever be obtained for the same composite number, differing either in the factors themselves or in the number of times identical factors are repeated? For example, the number 14000 has the factorization 24 · 53 · 7; is it possible for it to have another factorization containing some prime factor other than 2, 5, and 7, or in which these factors are repeated a different number of times than in the factorization 24 · 53 · 7? It has been proven that this is impossible, i.e., that a composite number, however we decompose it, yields only one sequence of prime factors (which, of course, may be rearranged).
Proof of the possibility and uniqueness of the decomposition of numbers into prime factors. To rigorously prove that every number (except 1) can be decomposed, and in only one way, into prime factors, we shall first prove the following two theorems.
Uniqueness of Prime FactorizationClick a step →
Example Number
14000
Composite number
Factorization
2⁴ · 5³ · 7
Set of prime factors
Conclusion
One set
Unique factorization
14000 = 2⁴ · 5³ · 7However we factor the number, the set of prime factors is always the same.
Theorem 1
Every number, except 1, has at least one prime divisor.
Proof
Let a ≠ 1; if a is a prime number, then it is itself its own prime divisor, and the theorem is proved; if, however, a is a composite number, then it has divisors other than a and one; let b be the smallest of these divisors; then b cannot be a composite number, for if it were divisible by a number c, different from 1 and from itself, then the number a would also be divisible by this number c, and consequently b would not be the smallest divisor of the number a. Therefore b is a prime number, and since it is a divisor of the number a, the theorem is proved.
Theorem 2
The product of several factors a₁ a₂ a₃... aₙ can be divisible by a prime number p only when at least one of the factors is divisible by p.
Proof
Considering the given product as the product of only two factors: a₁ and (a₂a₃…aₙ), we can reason as follows: if a₁ is not divisible by the prime number p, this means that a₁ has no common divisors with p other than 1; in such a case, by the theorem proved in § 88, the number a₂a₃…aₙ must be divisible by p. Similarly, we shall see that if a₂ is not divisible by p, then the number (a₃a₄…aₙ) must be divisible by p. Continuing this reasoning further, we find that if none of the numbers: a₁, a₂, a₃, …, aₙ₋₁ is divisible by p, then aₙ is divisible by p. Thus, one of the numbers: a₁ a₂ a₃... aₙ is divisible by p.
To prove now the possibility of decomposing any number, except 1, into prime factors, we proceed as follows. Let a ≠ 1; if a is a prime number, the assertion is proved; if, however, it is a composite number, then by Theorem 1 it has a prime divisor p; let a = p₁a₁; if a₁ is a prime number, the theorem is proved; if it is composite, then by Theorem 1 it has a prime divisor p; let a₁ = p₂a₂, so that if a₂ is a prime number, the theorem is proved; if it is composite, we continue reasoning in the indicated manner. Since a > a₁, a₁ > a₂, and so on, our decomposition must sooner or later come to an end; but it can end only when some aₙ turns out to be a prime number (if it is composite, we can continue the decomposition); therefore the decomposition a = p₁p₂…pₙ₋₁aₙ is a decomposition of the number a into prime factors, the possibility of which is thus proved. To prove the uniqueness of the decomposition, we reason as follows: let for some number we have two decompositions into (equal or different) prime factors: abc… and a₁b₁c₁…, then abc… = a₁b₁c₁…. The left-hand side of the last equality is divisible by a; consequently, the right-hand side must also be divisible by a. But a is a prime number, therefore the product a₁b₁c₁… will be divisible by a only when one of its factors is divisible by a (Theorem 2); but a prime number can be divisible by another prime number, different from 1, only when these prime numbers are equal. Thus, one of the numbers: a₁, b₁, c₁, … is equal to a. Let a₁ = a. Dividing both sides of the equality by a, we obtain bc… = b₁c₁…. Similarly to the previous step, we shall see that one of the factors b₁, c₁, … is equal to b. Let b₁ = b, then cd… = c₁d₁…. Continuing this reasoning further, we shall see that all factors of the first row are also present in the second row. Dividing both sides of the equality by a₁, we shall see that in the first row there is a factor a₁. Thus, similarly to the previous step, we find that all factors of the second row are also present in the first row. It follows from this that these two rows can differ only in the order of the factors, and not in the factors themselves, in other words, that these two rows represent the same row. In other words, every number (except 1) can be decomposed into prime factors and moreover in only one way.
👨👩👧 In Plain Words (Kids & Parents)
💡
Ask your child:Ask your child to demonstrate with numbers 18 and 4 on the right stage why the main rule of “Uniqueness of the Prime Factorization of a Composite Number” holds true.
Quick reference without leaving:
Study Guide for Parents, Teachers & Family Co-Learning — Lesson 93. Uniqueness of the Prime Factorization of a Composite Number
Core Idea in Plain Language
Every number bigger than 1 is built from prime numbers like unique building blocks. No matter how you break it down, you will always get the exact same set of primes.
every number (except 1) can be decomposed into prime factors and moreover in only one way
However we factor the number, the set of prime factors is always the same.
Key Mathematical Terms:
Composite numberPrime numberDivisorUnique
Common Student Mistake & Socratic Fix
Typical pitfall: Billy thinks that because 12 can be written as 2 × 6 or 3 × 4, the prime factorization is not unique. He argues that since the intermediate factors (6 and 4) are different, the final set of primes must also be different.
How to guide correction: Billy must continue breaking down the composite factors until only primes remain. For 2 × 6, he breaks 6 into 2 × 3, resulting in 2 × 2 × 3. For 3 × 4, he breaks 4 into 2 × 2, resulting in 3 × 2 × 2. Rearranging the second set gives 2 × 2 × 3. Both paths yield the same unique set of prime factors: two 2s and one 3.
Complete 4-Step Reasoning Walkthrough
1. The question of uniqueness arises14000 = 2⁴ · 5³ · 7
Aurora asks: could 14000 have a different factorization with other prime factors or different counts? We will show this is impossible.
2. Theorem 1: Existence of a prime factorb | a ⇒ b is prime
Cosmo explains: if a number is composite, its smallest factor b cannot be composite, or it would have a factor smaller than b. Thus, b is prime.
3. Theorem 2: Dividing a product by a primep | (a₁...aₙ) ⇒ p|aᵢ
Aurora proves: if a prime p divides a product, it divides at least one factor. If a₁ is not divisible by p, then p divides the remaining product.
4. Possibility and uniqueness of factorizationa = p₁ · p₂ · ... · pₖ
Cosmo concludes: factoring a number into primes by any method always yields the same set of factors, possibly in a different order.
Graded Practice Problems & Worked Solutions
Problem 1 (§ 93). What is the smallest prime number (and the only even prime number)?
Hint: Recall that a prime number has exactly two distinct divisors: 1 and itself. Check the even numbers starting from 2 to see which one fits this definition.
Worked solution: The number 2 is divisible only by 1 and 2. Any other even number is divisible by 2, so it has more than two divisors and is composite. Therefore, 2 is the smallest and only even prime number.
Problem 2 (§ 93). How many prime factors (counting repetitions: 2 × 3 × 3) are in the prime factorization of the number 18?
Hint: Break down 18 into its prime components step by step. Count each prime number in the final product, including duplicates.
Worked solution: Divide 18 by the smallest prime, 2: 18 ÷ 2 = 9. Divide 9 by the next smallest prime, 3: 9 ÷ 3 = 3. Divide 3 by 3: 3 ÷ 3 = 1. The prime factorization is 2 × 3 × 3, which contains 3 prime factors.
Problem 3 (§ 93). What prime number comes immediately after 7 in the list of prime numbers?
Hint: List the integers greater than 7 in order. Test each integer for divisibility by primes smaller than its square root.
Worked solution: Check 8: divisible by 2, so it is composite. Check 9: divisible by 3, so it is composite. Check 10: divisible by 2, so it is composite. Check 11: not divisible by 2 or 3, so it is prime.