Grade by GradeEssential student suppliesSign in
C. Content · Foundations of Mathematics and Pre-calculus 10: Powers, Polynomials, Linear Functions, Trigonometry and Pay

Prime Factorization, GCF and LCM

BC FMPC 10: prime factorizationAbout 60 minutes
Learning goals
  • I can write the prime factorization of a whole number using powers.
  • I can use a prime factorization to list all the factors of a number.
  • I can find the greatest common factor (GCF) and least common multiple (LCM) of two or three numbers.
  • I can use prime factorization to find square roots and cube roots of perfect squares and perfect cubes.

Words to know

prime number
A whole number greater than 1 whose only factors are 1 and itself, such as 2, 3, 5, 7, 11 and 13.
composite number
A whole number greater than 1 that has more than two factors, such as 12 or 45.
prime factorization
A number written as a product of prime numbers, usually with powers: 360 = 2^3 × 3^2 × 5.
greatest common factor (GCF)
The largest number that divides evenly into each of two or more numbers.
least common multiple (LCM)
The smallest positive number that is a multiple of each of two or more numbers.

Breaking numbers into building blocks

Every whole number greater than 1 is either prime or can be built by multiplying primes together. Writing a number as a product of primes is its prime factorization. A remarkable fact (called the Fundamental Theorem of Arithmetic) says each number has exactly one prime factorization, apart from the order of the factors.

This makes the prime factorization a kind of fingerprint for a number. From it you can list every factor, find the GCF and LCM, and spot perfect squares and cubes. In this course, prime factorization is also the warm-up for factoring polynomials, which uses the same ideas with algebra.

Two common strategies are factor trees and factor pairs. Note that 1 is not prime: it has only one factor.

360361066252323360 = 2^3 × 3^2 × 5
A factor tree for 360. Keep splitting until every branch ends in a prime (circled). Collect the primes and write repeated ones as powers.

Using powers

Group equal primes as powers, in order from smallest prime to largest:

  • 360 = 2 × 2 × 2 × 3 × 3 × 5 = 2^3 × 3^2 × 5
  • 84 = 2 × 2 × 3 × 7 = 2^2 × 3 × 7

A different first split (for example 360 = 18 × 20) gives a different tree, but the same primes at the ends. Try it!

Listing all the factors with factor pairs

Factors come in pairs that multiply to the number. Start at 1 and work up. You can stop once the pairs start to repeat, which happens when you pass the square root.

Factor pairProduct
1 × 8484
2 × 4284
3 × 2884
4 × 2184
6 × 1484
7 × 1284
Factor pairs of 84. Since 9^2 = 81 and 10^2 = 100, you only need to test 1 to 9 (5, 8 and 9 do not divide 84). The 12 factors of 84 are 1, 2, 3, 4, 6, 7, 12, 14, 21, 28, 42 and 84.

GCF and LCM from prime factorizations

Line up the factorizations prime by prime.

  • GCF: take each prime that appears in all the numbers, using the lowest power.
  • LCM: take every prime that appears in any of the numbers, using the highest power.

For two numbers there is a handy check: GCF × LCM = the product of the two numbers.

Prime72 = 2^3 × 3^2120 = 2^3 × 3 × 5GCF (lowest power)LCM (highest power)
22^32^32^32^3
33^23^13^13^2
5not there5^1not in both5^1
Result2^3 × 3 = 242^3 × 3^2 × 5 = 360
Finding the GCF and LCM of 72 and 120. Check: 24 × 360 = 8640 and 72 × 120 = 8640.
Worked example

Example 1: GCF and LCM of three numbers

Find the GCF and LCM of 12, 18 and 30.

  1. Factor each number: 12 = 2^2 × 3, 18 = 2 × 3^2, 30 = 2 × 3 × 5.
  2. GCF: 2 and 3 appear in all three. Lowest powers: 2^1 and 3^1. GCF = 2 × 3 = 6.
  3. LCM: primes 2, 3 and 5. Highest powers: 2^2, 3^2 and 5^1. LCM = 4 × 9 × 5 = 180.
  4. Check: 180 ÷ 12 = 15, 180 ÷ 18 = 10 and 180 ÷ 30 = 6, all whole numbers.

GCF = 6 and LCM = 180

Worked example

Example 2: Square roots and cube roots

Use prime factorization to find √1764 and the cube root of 2744.

  1. 1764 = 2^2 × 3^2 × 7^2. Every exponent is even, so 1764 is a perfect square.
  2. Halve each exponent: √1764 = 2 × 3 × 7 = 42. Check: 42 × 42 = 1764.
  3. 2744 = 2^3 × 7^3. Every exponent is a multiple of 3, so 2744 is a perfect cube.
  4. Divide each exponent by 3: cube root = 2 × 7 = 14. Check: 14 × 14 × 14 = 196 × 14 = 2744.

√1764 = 42 and the cube root of 2744 is 14.

Worked example

Example 3: GCF and LCM in context

A carpenter has cedar strips 48 cm and 72 cm long. She wants to cut both into equal pieces, as long as possible, with nothing left over. Separately, two lighthouse beams flash every 12 s and every 18 s. They flash together now. When will they next flash together?

  1. Equal pieces that fit both strips: a common factor. As long as possible: the greatest common factor.
  2. 48 = 2^4 × 3 and 72 = 2^3 × 3^2. GCF = 2^3 × 3 = 24 cm.
  3. Flashing together again: a common multiple of 12 and 18. The next time: the least common multiple.
  4. 12 = 2^2 × 3 and 18 = 2 × 3^2. LCM = 2^2 × 3^2 = 36 s.

Pieces of 24 cm (2 from the short strip, 3 from the long one); the beams flash together again after 36 s.

GCF or LCM?

Ask yourself: am I splitting something into equal groups (GCF, the answer is smaller than the numbers) or waiting for things to line up again (LCM, the answer is larger)? A quick size check catches many mix-ups.

Hands-on activity

Prime fingerprints

Pick three numbers that matter to you: a house number, a postal code's digits read as a number, a year. Write the prime factorization of each with a factor tree, then with a different first split, and check you reach the same primes. Which of your numbers has the most factors? Use the exponents to predict how many factors it has, then list them to check. (Hint: for 2^3 × 3^2 × 5, add 1 to each exponent and multiply: 4 × 3 × 2 = 24 factors.)

Just for fun

Some cicadas in eastern North America spend 13 or 17 years underground before coming out all at once. Both are primes, so the two groups line up only every LCM(13, 17) = 221 years. One idea scientists have explored is that prime cycles make it harder for predators with shorter cycles to line up with them.

Your turn

1

Write the prime factorization of 84 using powers.

2

Write the prime factorization of 990 using powers.

3

List all the factors of 36.

4

Find the GCF of 48 and 180.

5

Find the LCM of 48 and 180.

6

Use prime factorization to find √576.

More practice

1

Is 1000 a perfect square, a perfect cube, both or neither? Use its prime factorization.

2

Find √2025 using prime factorization.

3

Find the GCF and LCM of 16, 24 and 40.

4

Two SkyTrain-style trains leave a station together. One returns every 8 min and the other every 14 min. After how many minutes are both back at the station together?

5

A rectangular floor 270 cm by 360 cm will be covered with identical square tiles, with no cutting. What is the largest tile side length possible?

Check your understanding

Quiz

1.

What is the prime factorization of 180?

2.

What is the GCF of 60 and 84?

3.

What is the LCM of 10 and 25?

4.

A number has prime factorization 2^4 × 3^2 × 7^2. What is its square root?

5.

Which statement about 1 is true?

For parents and teachers

How to help: Ask your teen to explain why the GCF uses the lowest powers and the LCM the highest (the GCF must fit inside every number; the LCM must contain every number). Real situations help: equal-sized bundles (GCF) versus schedules lining up again (LCM).

Common mistakes:

  • Stopping a factor tree at a composite number, such as leaving 9 or 15 at the end of a branch.
  • Calling 1 a prime.
  • Swapping GCF and LCM. A quick size check helps: the GCF is no larger than the smallest number; the LCM is no smaller than the largest.
  • Missing factor pairs. Testing every whole number up to the square root, in order, prevents this.