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>1p > 1 whose only positive divisors are 11 and pp. An integer n>1n > 1 that is not prime is composite, which means it can be written as n=abn = ab with 1<a≤b<n1 < a \le 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⋅36 = 2 \cdot 3 = 1 \cdot 2 \cdot 3 = 1 \cdot 1 \cdot 2 \cdot 3, and no integer would have just one factorization.


To factor nn, 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→1360 \to 180 \to 90 \to 45 \to 15 \to 5 \to 1, dividing by 2, 2, 2, 3, 3 and 5 in turn.



The Fundamental Theorem of Arithmetic

The theorem says that every integer n>1n > 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 nn:


n=p1a1p2a2⋯pkak,p1<p2<⋯<pk prime,ai≥1n = p_1^{a_1} p_2^{a_2} \cdots p_k^{a_k}, \qquad p_1 < p_2 < \cdots < p_k \text{ prime}, \quad a_i \ge 1


For example, 360=23⋅32⋅5360 = 2^3 \cdot 3^2 \cdot 5. The theorem makes two separate claims, and they are proved differently.

  • Existence. If nn is prime, it is its own factorization. Otherwise n=abn = ab with 1<a,b<n1 < a, b < n; by strong induction, aa and bb are products of primes, so nn is as well.
  • Uniqueness. This rests on Euclid's lemma: if a prime pp divides abab, then pp divides aa or pp divides bb. Given two factorizations of nn, 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.


Two factor trees for 360, one starting with 12 and 30 and the other with 10 and 36, each ending in prime leaves 2, 2, 2, 3, 3 and 5.



Reading properties from the canonical form

Every divisor of nn is built from the same primes with smaller or equal exponents: dd divides n=p1a1⋯pkakn = p_1^{a_1} \cdots p_k^{a_k} exactly when d=p1b1⋯pkbkd = p_1^{b_1} \cdots p_k^{b_k} with 0≤bi≤ai0 \le b_i \le a_i for each ii. Each exponent bib_i has ai+1a_i + 1 choices, independently, so the number of positive divisors, written τ(n)\tau(n), is


τ(n)=(a1+1)(a2+1)⋯(ak+1)\tau(n) = (a_1 + 1)(a_2 + 1) \cdots (a_k + 1)


The table compares the questions you will most often answer this way.


Question about nn

What to check

For 360=23⋅32⋅5360 = 2^3 \cdot 3^2 \cdot 5

How many positive divisors?

Multiply the values ai+1a_i + 1

4⋅3⋅2=244 \cdot 3 \cdot 2 = 24

Is nn a perfect square?

Every exponent is even

No, the exponents 3 and 1 are odd

Is nn a perfect cube?

Every exponent is a multiple of 3

No, the exponents 2 and 1 are not

Does dd divide nn?

No exponent in dd exceeds the one in nn

180=22⋅32⋅5180 = 2^2 \cdot 3^2 \cdot 5 does; 16=2416 = 2^4 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>1n > 1 has exactly one prime factorization, up to order, written canonically as p1a1⋯pkakp_1^{a_1} \cdots p_k^{a_k}.
  • 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=7560N = 7560. Find its prime factorization first, then use the exponents to answer the remaining parts.


a) Write NN 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 232^3.


Dividing 945 by 3 gives 315, then 105, then ________, which is not divisible by 3, so the power of 3 is 333^3. The remaining quotient is 35=5⋅735 = 5 \cdot 7, a product of two primes.


7560=23⋅33⋅5⋅77560 = 2^3 \cdot 3^3 \cdot 5 \cdot 7


Check: 8⋅27=2168 \cdot 27 = 216 and 216⋅35=7560216 \cdot 35 = 7560.


b) How many positive divisors does NN have?


Every divisor has the form 2b3c5d7e2^b 3^c 5^d 7^e with 0≤b≤30 \le b \le 3, 0≤c≤30 \le c \le 3, 0≤d≤10 \le d \le 1 and 0≤e≤10 \le e \le 1. That gives ________ choices for each of bb and cc, and ________ choices for each of dd and ee.


τ(7560)=(3+1)(3+1)(1+1)(1+1)=64\tau(7560) = (3 + 1)(3 + 1)(1 + 1)(1 + 1) = 64


NN has 64 positive divisors.


c) Find the smallest positive integer kk for which 7560k7560k is a perfect square.


An integer is a perfect square exactly when every exponent in its canonical form is even. In 23⋅33⋅51⋅712^3 \cdot 3^3 \cdot 5^1 \cdot 7^1 all four exponents are odd, so kk must contain each of 2, 3, 5 and 7 an odd number of times. The smallest such kk uses each prime once:


k=2⋅3⋅5⋅7=210k = 2 \cdot 3 \cdot 5 \cdot 7 = 210


Then 7560⋅210=24⋅34⋅52⋅72=1 587 6007560 \cdot 210 = 2^4 \cdot 3^4 \cdot 5^2 \cdot 7^2 = 1\,587\,600, which is the square of ________. By unique factorization, any kk that works is a multiple of 210, so k=210k = 210 is the smallest.


d) Find the smallest positive integer mm for which 7560m7560m 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 mm includes no factor of 2 or 3. The exponents of 5 and 7 must rise from 1 to ________, so mm needs two more factors of each:


m=52⋅72=25⋅49=1225m = 5^2 \cdot 7^2 = 25 \cdot 49 = 1225


Then 7560⋅1225=23⋅33⋅53⋅73=9 261 0007560 \cdot 1225 = 2^3 \cdot 3^3 \cdot 5^3 \cdot 7^3 = 9\,261\,000, which is the cube of ________. The smallest multiplier is m=1225m = 1225.

A student factors 1500 completely into primes and writes the result in canonical form, listing the primes in increasing order. In that factorization the exponent of 2 is , the exponent of 3 is , and the exponent of 5 is .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Match each term from the study of prime numbers with its precise description. Each description fits exactly one term, so read the conditions on the integers carefully before you match.

Match each term
A.

An integer greater than 1 with at least one positive divisor strictly between 1 and the integer itself

B.

Every integer n>1n > 1 is a product of primes, and that product is unique apart from the order of the factors

C.

If a prime pp divides a product abab, then pp divides aa or pp divides bb

D.

An integer greater than 1 whose only positive divisors are 1 and the integer itself

E.

The only positive integer with exactly one positive divisor, so it belongs to neither of the other two classes

F.

The form n=p1a1p2a2⋯pkakn = p_1^{a_1} p_2^{a_2} \cdots p_k^{a_k} with primes p1<p2<⋯<pkp_1 < p_2 < \cdots < p_k and every exponent ai≥1a_i \ge 1

Unit (the number 1)

Fundamental Theorem of Arithmetic

Canonical factorization

Prime number

Euclid's lemma

Composite number

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Consider the following statements about primes and the prime factorizations of positive integers. Select every statement that is true.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice