1.02b - Prime factorisation

1.02b - Prime factorisation

Prime numbers are the indivisible building blocks of whole-number multiplication. You will recognise primes beyond twenty, split composite numbers into prime factors, and use powers to record the unique collection of prime factors in a positive integer greater than one.

Recognising prime numbers

If two people start a factor tree for 8484 in different ways, can they finish with different prime factors? First we need to know which factors are genuinely prime.

A prime is a positive integer greater than one with exactly two positive factors. The primes below twenty are 2,3,5,7,11,13,17,192,3,5,7,11,13,17,19. One is not prime, and two is the only even prime.

To test a larger positive integer, look for a divisor other than one and itself. You need only test prime divisors: if a composite number divides it, at least one of that divisor's prime factors also divides it. You can also stop at the square root, including the root itself when it is an integer. Why? In a factor pair, if both factors were greater than the square root, their product would be greater than the number. Any composite number therefore has a factor no larger than its square root.

Problem-solving

Test prime divisors up to and including the square root. One exact divisor proves that the number is composite; to conclude prime, rule out all the prime divisors in that range.

Use nearby squares to find the range; you do not need a decimal square root.

Worked example 1: recognising a larger prime

Question. Decide whether 4747 is prime. Give a reason.

Plan. Locate its square root and test every prime below it.

62<47<72root lies between six and seven47=2×23+1not divisible by two47=3×15+2not divisible by three47=5×9+2not divisible by five\begin{aligned} 6^2&<47<7^2 &&\text{root lies between six and seven}\\ 47&=2\times23+1 &&\text{not divisible by two}\\ 47&=3\times15+2 &&\text{not divisible by three}\\ 47&=5\times9+2 &&\text{not divisible by five} \end{aligned}

There are no other primes below seven.

Answer. 4747 is prime: it has no prime divisor at most its square root.

Check. Any factor pair would have a smaller member at most six. The composite possibilities four and six would require a factor of two or three, already ruled out.

Change only the number to forty-nine. Its square root is an integer, so the endpoint must be tested.

Worked example 2: the square-root boundary

Question. Decide whether 4949 is prime. Give a reason.

Plan. Test primes up to and including seven.

49=7include this endpoint49=7×7an exact factor pair\begin{aligned} \sqrt{49}&=7 &&\text{include this endpoint}\\ 49&=7\times7 &&\text{an exact factor pair} \end{aligned}

Two, three and five do not divide forty-nine, but the factor seven is enough to settle the question.

Answer. 4949 is composite, not prime.

Check. Its positive factors are 1,7,491,7,49: three factors rather than two.

The repeated factor in a square is still an extra factor even though the two members of the pair are equal.

Watch out

Stopping strictly before the square root would wrongly declare 4949 prime. Include 77 because 7×7=497\times7=49.

Rule out the full required range for the next candidate.

Splitting into prime factors

A factor tree repeatedly replaces a composite number by two factors whose product equals it.

For 8484, you could begin with 12×712\times7 or 6×146\times14. Keep splitting every composite branch. Stop a branch only when it reaches a prime; the final prime leaves multiply to the original number.

[DIAGRAM: asset_name: Two factor trees for eighty-four; asset_slug: two-factor-trees-84; caption: Different first splits give the same prime leaves: two, two, three and seven.; description: Two labelled factor trees for eighty-four. The left tree splits eighty-four into twelve and seven, twelve into three and four, and four into two and two. The right tree splits eighty-four into six and fourteen, six into two and three, and fourteen into two and seven. Prime leaves have pale green circles, composite intermediate nodes have pale blue circles. Each tree has the final product two squared times three times seven below it.]
Different first splits give the same prime leaves: two, two, three and seven.

Prime factorisation

A prime factorisation writes an integer greater than one as a product containing only prime factors. Repeated primes can be written using powers: 2×2×3×7=22×3×72\times2\times3\times7=2^2\times3\times7.

Each split preserves the total product. Replacing twelve by 3×43\times4 changes how the factors are grouped, not their product.

Worked example 3: starting with twelve and seven

Question. Express 8484 as a product of prime factors, starting with 12×712\times7. Use power notation.

Plan. Split the composite factors until every factor is prime.

84=12×7first split=3×4×7split twelve=3×2×2×7split four=22×3×7collect equal primes\begin{aligned} 84&=12\times7 &&\text{first split}\\ &=3\times4\times7 &&\text{split twelve}\\ &=3\times2\times2\times7 &&\text{split four}\\ &=2^2\times3\times7 &&\text{collect equal primes} \end{aligned}

Answer. 84=22×3×784=2^2\times3\times7.

Check. Every displayed factor is prime, and 4×3×7=12×7=844\times3\times7=12\times7=84.

Keep the number eighty-four and change only the first split. We can now test the opening question.

Worked example 4: starting with six and fourteen

Question. Express 8484 as a product of prime factors, starting with 6×146\times14. Use power notation.

Plan. Split both composite branches and collect the prime leaves.

84=6×14different first split=(2×3)×(2×7)split both composites=2×2×3×7reorder the prime leaves=22×3×7write repeated factors as a power\begin{aligned} 84&=6\times14 &&\text{different first split}\\ &=(2\times3)\times(2\times7) &&\text{split both composites}\\ &=2\times2\times3\times7 &&\text{reorder the prime leaves}\\ &=2^2\times3\times7 &&\text{write repeated factors as a power} \end{aligned}

Answer. 84=22×3×784=2^2\times3\times7, exactly as before.

Check. (2×3)(2×7)=6×14=84(2\times3)(2\times7)=6\times14=84. The final primes match the other tree, including both copies of two.

You may also divide repeatedly by prime factors instead of drawing a tree. For example, divide by two until that no longer works, then try three, five and so on. Record every division, including repeats.

Watch out

84=4×3×784=4\times3\times7 is a correct factorisation but not a prime factorisation: four is composite. Also, 2×2=222\times2=2^2, not 2×2=22\times2=2.

Use a new number and retain every repeated prime.

One prime factorisation

The two trees for eighty-four reached the same prime factors, although their branches looked different.

This is a general property of the positive integers: every integer greater than one has a prime factorisation, and that collection of primes is unique apart from their order. The number of copies matters. 2×2×3×72\times2\times3\times7 and 7×3×2×27\times3\times2\times2 are the same collection; removing one of the twos changes the number.

One has no prime factors and is not included in this “greater than one” statement. It is not prime. If one were counted as prime, inserting any number of factors of one would spoil the uniqueness of the list. Zero is also outside the statement: no finite product of positive primes is zero.

Key idea

Different valid splitting routes give the same prime factors with the same repetitions. Standard power notation records that unique collection compactly; the order of the prime factors may vary.

Reading a prime product backwards recovers the integer and checks that the index counts repeated factors correctly.

Worked example 5: reconstructing a number

Question. A number has prime factorisation 23×32×52^3\times3^2\times5. Find the number.

Plan. Evaluate each power, then multiply the resulting factors.

23×32×5=8×9×5evaluate the powers=72×5combine the first two factors=360multiply by five\begin{aligned} 2^3\times3^2\times5&=8\times9\times5 &&\text{evaluate the powers}\\ &=72\times5 &&\text{combine the first two factors}\\ &=360 &&\text{multiply by five} \end{aligned}

Answer. 360360.

Check. Dividing 360360 successively by 2,2,2,3,3,52,2,2,3,3,5 gives 180,90,45,15,5,1180,90,45,15,5,1. Every prime factor has been used exactly once.

Change only the final prime from five to seven. The new prime collection must describe a different integer.

Worked example 6: changing one prime factor

Question. A number has prime factorisation 23×32×72^3\times3^2\times7. Find the number.

Plan. Keep the first two power values and replace the final factor.

23×32×7=8×9×7evaluate the powers=72×7same shared product=504multiply by seven\begin{aligned} 2^3\times3^2\times7&=8\times9\times7 &&\text{evaluate the powers}\\ &=72\times7 &&\text{same shared product}\\ &=504 &&\text{multiply by seven} \end{aligned}

Answer. 504504.

Check. 360÷5=72360\div5=72, then 72×7=50472\times7=504: replacing the final prime gives the same result by a second route.

The opening question is answered. The first split in a tree is a choice, but the final collection of prime factors is fixed. That is why prime products are useful for comparing divisibility and finding common factors later.

Watch out

23×32×52^3\times3^2\times5 and 22×33×52^2\times3^3\times5 are different prime collections: their powers count different repetitions. Their values are 360360 and 540540, not the same number.

Recover a new integer from its collection of prime factors.

Quick Recap

  • To test primality, check prime divisors up to and including the square root.
  • Keep splitting composite factors; stop only at prime leaves.
  • Power notation records the number of copies of each prime.
  • Every integer greater than one has one prime factorisation, apart from the order of its factors. One and zero are outside that statement.

Different factor trees for 8484 both finish at 22×3×72^2\times3\times7.