Unique Prime Factorization
Every integer greater than 1 can be broken down into primes, and there is only one way to do it. This fact, the Fundamental Theorem of Arithmetic, is why you can speak of the prime factorization of 360. You will use it constantly in number theory: to count divisors, to decide whether a number is a perfect square, and to justify divisibility arguments in proofs.
Primes as building blocks
A prime number is an integer p>1 whose only positive divisors are 1 and p. An integer n>1 that is not prime is composite, which means it can be written as n=ab with 1<a≤b<n. The first few primes are 2, 3, 5, 7, 11 and 13, and 2 is the only even prime.
The number 1 is neither prime nor composite. This is a deliberate choice: if 1 counted as a prime, then 6=2⋅3=1⋅2⋅3=1⋅1⋅2⋅3, and no integer would have just one factorization.
To factor n, divide by the smallest prime that goes in, repeat on the quotient, and stop when the quotient reaches 1. For 360 this gives 360→180→90→45→15→5→1, dividing by 2, 2, 2, 3, 3 and 5 in turn.
The Fundamental Theorem of Arithmetic
The theorem says that every integer n>1 is a product of primes, and that this product is unique apart from the order of the factors. Grouping equal primes and listing them in increasing order gives the canonical form of n:
For example, 360=23⋅32⋅5. The theorem makes two separate claims, and they are proved differently.
- Existence. If n is prime, it is its own factorization. Otherwise n=ab with 1<a,b<n; by strong induction, a and b are products of primes, so n is as well.
- Uniqueness. This rests on Euclid's lemma: if a prime p divides ab, then p divides a or p divides b. Given two factorizations of n, a prime from the first divides the product of the second, so it equals one of the primes there. Cancel it from both sides and repeat until nothing is left.
Uniqueness concerns the final list of primes, not the route to it. Different first splits produce different factor trees, but the leaves always form the same multiset of primes.
Reading properties from the canonical form
Every divisor of n is built from the same primes with smaller or equal exponents: d divides n=p1a1⋯pkak exactly when d=p1b1⋯pkbk with 0≤bi≤ai for each i. Each exponent bi has ai+1 choices, independently, so the number of positive divisors, written τ(n), is
The table compares the questions you will most often answer this way.
Question about n | What to check | For 360=23⋅32⋅5 |
|---|---|---|
How many positive divisors? | Multiply the values ai+1 | 4⋅3⋅2=24 |
Is n a perfect square? | Every exponent is even | No, the exponents 3 and 1 are odd |
Is n a perfect cube? | Every exponent is a multiple of 3 | No, the exponents 2 and 1 are not |
Does d divide n? | No exponent in d exceeds the one in n | 180=22⋅32⋅5 does; 16=24 does not |
What to remember
- A prime is an integer greater than 1 with no positive divisors except 1 and itself; 1 is not prime.
- Every integer n>1 has exactly one prime factorization, up to order, written canonically as p1a1⋯pkak.
- Uniqueness depends on Euclid's lemma, which holds for primes and fails for composites.
- Divisor counts, divisibility, and square and cube tests all reduce to comparing exponents in the canonical form.
Example: Factoring 7560 and reading off its properties
A counting problem needs several facts about N=7560. Find its prime factorization first, then use the exponents to answer the remaining parts.
a) Write N in canonical form.
Divide by the smallest prime repeatedly. Dividing by 2 three times gives 3780, then 1890, then ________, which is odd, so the power of 2 is 23.
Dividing 945 by 3 gives 315, then 105, then ________, which is not divisible by 3, so the power of 3 is 33. The remaining quotient is 35=5⋅7, a product of two primes.
Check: 8⋅27=216 and 216⋅35=7560.
b) How many positive divisors does N have?
Every divisor has the form 2b3c5d7e with 0≤b≤3, 0≤c≤3, 0≤d≤1 and 0≤e≤1. That gives ________ choices for each of b and c, and ________ choices for each of d and e.
N has 64 positive divisors.
c) Find the smallest positive integer k for which 7560k is a perfect square.
An integer is a perfect square exactly when every exponent in its canonical form is even. In 23⋅33⋅51⋅71 all four exponents are odd, so k must contain each of 2, 3, 5 and 7 an odd number of times. The smallest such k uses each prime once:
Then 7560⋅210=24⋅34⋅52⋅72=1587600, which is the square of ________. By unique factorization, any k that works is a multiple of 210, so k=210 is the smallest.
d) Find the smallest positive integer m for which 7560m is a perfect cube.
A perfect cube needs every exponent to be a multiple of 3. The exponents of 2 and 3 are already 3, so the smallest m includes no factor of 2 or 3. The exponents of 5 and 7 must rise from 1 to ________, so m needs two more factors of each:
Then 7560⋅1225=23⋅33⋅53⋅73=9261000, which is the cube of ________. The smallest multiplier is m=1225.
Consider the following statements about primes and the prime factorizations of positive integers. Select every statement that is true.