Where we are headed

Every whole num­ber big­ger than 11 is either prime or can be bro­ken down into primes. You prob­a­bly did this with fac­tor trees in your junior classes. Here we ask how far that idea really goes, and we meet the one word that does the heavy lift­ing: uniquely.

By the end you should be able to write any com­pos­ite num­ber as a prod­uct of prime pow­ers, and explain why nobody else's fac­tori­sa­tion of that num­ber can ever dis­agree with yours.

Build­ing num­bers out of primes

Start from the primes and mul­ti­ply. Take 22, 33, 55 and 1313, use each as often as you like:

3×13=39,22×5=20,2×32×13=2343 \times 13 = 39, \qquad 2^2 \times 5 = 20, \qquad 2 \times 3^2 \times 13 = 234

Every prod­uct you form this way is a pos­i­tive inte­ger. The more inter­est­ing ques­tion runs the other way: if you start from a num­ber, can you always get back to primes?

Try it with 23402340. Keep pulling out the small­est prime that divides what is left:

2340=2×1170=2×2×585=22×3×195=22×3×3×65=22×32×5×132340 = 2 \times 1170 = 2 \times 2 \times 585 = 2^2 \times 3 \times 195 = 2^2 \times 3 \times 3 \times 65 = 2^2 \times 3^2 \times 5 \times 13

Factor tree for 2340: split off 2, 2, 3, 3 and 5 in turn, leaving 13. The circled primes give 2340 = 2 squared times 3 squared times 5 times 13.
Fac­tor tree for 2340

Could this go on for ever? No. Each step makes the num­ber strictly smaller, and a whole num­ber can­not keep shrink­ing for ever while stay­ing above 11, so the process must stop.

The the­o­rem

Fun­da­men­tal The­o­rem of Arith­metic. Every com­pos­ite num­ber can be writ­ten as a prod­uct of primes, and that fac­tori­sa­tion is unique apart from the order in which the fac­tors are writ­ten.

Read that sen­tence again, slowly. Two sep­a­rate claims are packed into it, and most stu­dents only notice the first.

Exis­tence: a fac­tori­sa­tion into primes can always be found. That is what the 23402340 cal­cu­la­tion above shows.

Unique­ness: there is only one such fac­tori­sa­tion. Writ­ing 2340=22×32×5×132340 = 2^2 \times 3^2 \times 5 \times 13 is not a cor­rect answer; it is the answer. Reorder­ing the fac­tors as 13×5×32×2213 \times 5 \times 3^2 \times 2^2 changes noth­ing, because order is not part of what is being claimed.

Unique­ness is what makes the the­o­rem so use­ful. Think of the prime fac­tori­sa­tion as a num­ber's fin­ger­print, or its Aad­haar num­ber: two num­bers with the same prime fac­tori­sa­tion are the same num­ber, and a prime that appears in one fac­tori­sa­tion of nn appears in every fac­tori­sa­tion of nn.

Writ­ing the stan­dard form

To write it neatly, col­lect equal primes into pow­ers and list them in increas­ing order:

n=p1a1 p2a2 ⋯ pkak,p1<p2<⋯<pkn = p_1^{a_1} \, p_2^{a_2} \, \cdots \, p_k^{a_k}, \qquad p_1 < p_2 < \cdots < p_k

Worked exam­ple. Fac­torise 88208820.

8820=2×4410=22×2205=22×3×735=22×32×245=22×32×5×498820 = 2 \times 4410 = 2^2 \times 2205 = 2^2 \times 3 \times 735 = 2^2 \times 3^2 \times 245 = 2^2 \times 3^2 \times 5 \times 49

and 49=7249 = 7^2, so

8820=22×32×5×728820 = 2^2 \times 3^2 \times 5 \times 7^2

Factor tree for 8820: split off 2, 2, 3, 3, 5 and 7, leaving 7. The circled primes give 8820 = 2 squared times 3 squared times 5 times 7 squared.
Fac­tor tree for 8820

Now check by mul­ti­ply­ing back: 4×9=364 \times 9 = 36, 36×5=18036 \times 5 = 180, 180×49=8820180 \times 49 = 8820. Please make this a habit. A fac­tori­sa­tion that mul­ti­plies back to the wrong num­ber is the one slip that costs you every mark that fol­lows it.

Two things the the­o­rem lets you decide at a glance

Whether one num­ber divides another. Take 756=22×33×7756 = 2^2 \times 3^3 \times 7 and 126=2×32×7126 = 2 \times 3^2 \times 7. Every prime in 126126 appears in 756756 with at least as large an expo­nent, so 126126 divides 756756, no long divi­sion needed. Had 126126 car­ried a 343^4, no amount of arith­metic could have made it divide.

Whether a num­ber can end in 00. A num­ber ends in zero exactly when it is divis­i­ble by 10=2×510 = 2 \times 5, so its fac­tori­sa­tion must con­tain both a 22 and a 55. 3n×73^n \times 7 never ends in 00, for any nn, because no 22 and no 55 can appear.

A cau­tion about 11

11 is not prime, and the the­o­rem is stated for com­pos­ite num­bers. Stu­dents some­times ask why it is left out. Here's why: if 11 counted as a prime, unique­ness would col­lapse at once, since 12=22×3=1×22×3=12×22×312 = 2^2 \times 3 = 1 \times 2^2 \times 3 = 1^2 \times 2^2 \times 3, and every num­ber would have infi­nitely many "dif­fer­ent" fac­tori­sa­tions. So leav­ing out 11 isn't fussi­ness; it is exactly what keeps the the­o­rem true.

Prac­tice

  1. Write as a prod­uct of prime pow­ers: (a) 31503150, (b) 10241024, (c) 42354235.
  2. Does 180180 divide 54005400? Answer using prime fac­tori­sa­tions only, not divi­sion.
  3. Can 2a×3b2^a \times 3^b ever end in the digit 55? Give a rea­son.
  4. n=23×52×11n = 2^3 \times 5^2 \times 11. How many of the num­bers 44, 2222, 5050, 88, 121121 divide nn?
  5. A num­ber has exactly three prime fac­tors, all dif­fer­ent, and equals 255255. Find them.

Answers

Show answers
  1. (a) 3150=2×32×52×73150 = 2 \times 3^2 \times 5^2 \times 7. (b) 1024=2101024 = 2^{10}. (c) 4235=5×7×1124235 = 5 \times 7 \times 11^2.
  2. 180=22×32×5180 = 2^2 \times 3^2 \times 5 and 5400=23×33×525400 = 2^3 \times 3^3 \times 5^2. Each prime of 180180 appears in 54005400 with a larger or equal expo­nent, so yes, 180180 divides 54005400.
  3. No. A num­ber end­ing in 55 is divis­i­ble by 55, so 55 would have to appear in its prime fac­tori­sa­tion. Only 22 and 33 appear in 2a×3b2^a \times 3^b, and by unique­ness no other prime can be hid­ing there.
  4. Four of them: 4=224 = 2^2, 22=2×1122 = 2 \times 11, 50=2×5250 = 2 \times 5^2 and 8=238 = 2^3 all divide nn. 121=112121 = 11^2 does not, because nn car­ries only one fac­tor of 1111.
  5. 255=3×5×17255 = 3 \times 5 \times 17.