Real NumbersThe Fundamental Theorem of Arithmetic
If primes are atoms, we should be able to build other numbers from them just by multiplying. Pick any primes you like — repeats allowed — and multiply:
There are
Tap primes to multiply them together until you hit each target exactly.
One Number, Many Trees
Going the other way — from a number back to its primes — is called factorising. A
Below is the tree for 32760 that peels off the smallest prime at each step. But you are free to split in any order you like!
Grow at least three different trees — for 32760 or the other numbers — and compare the leaves.
The branches changed every time, but the leaves
What you have just seen is a
Theorem 1.1 (Fundamental Theorem of Arithmetic): Every composite number can be expressed (factorised) as a product of primes, and this factorisation is unique, apart from the order in which the prime factors occur.
The theorem makes two promises:
- Existence — every composite number can be written as a product of primes. The prime factory can build anything.
- Uniqueness — there is only
way to do it. We don't count a change of order: and are the same factorisation.
A 2,000-year-old idea
A version of this theorem appears in
A Number's Prime Fingerprint
Uniqueness means that a prime factorisation works like a fingerprint: every number has exactly one, and no two numbers share the same one. So that fingerprints are easy to compare, we always write the primes in
Drag the number
Challenge: find the smallest number whose fingerprint uses three different primes.
Can a Power of 4 End in Zero?
A fingerprint does more than identify a number — it can also tell you about the number's digits. Take some numbers that end in the digit 0 and look at their fingerprints:
Every one of them contains
Now turn the idea around. The powers of 4 — 4, 16, 64, 256, … — grow very fast. Will one of them ever end in 0? Let's experiment. Drag n =
However far you go, the last digit is only ever 4 or 6. But an experiment is not a proof — maybe a zero appears at n = 1000? The Fundamental Theorem settles the question for every n at once.
Example 1: Consider the numbers , where n is a natural number. Check whether there is any value of n for which ends with the digit zero.
Solution: A number that ends in 0 is a multiple of , so its prime factorisation would have to contain the prime
Now use the same idea yourself. To end in 0, a number's fingerprint needs both a 2 and a 5.
Drag each power into the right bucket.
Counting zeros
Every zero at the end of a number comes from one 2 × 5 pair in its fingerprint. For example, has only two such pairs (there are three 2s but only two 5s), so it ends in exactly