Prime Factorization and the Least Common Multiple
Find the prime factorization of a composite number
In the previous section, we found the factors of a number. Prime numbers have only two factors, the number and the prime number itself. Composite numbers have more than two factors, and every composite number can be written as a unique product of primes. This is called the prime factorization of a number. When we write the prime factorization of a number, we are rewriting the number as a product of primes. Finding the prime factorization of a composite number will help you later in this course.
You may want to refer to the following list of prime numbers less than as you work through this section:
Prime factorization using the factor tree method
One way to find the prime factorization of a number is to make a factor tree. We start by writing the number, and then writing it as the product of two factors. We write the factors below the number and connect them to the number with a small line segment — a “branch” of the factor tree.
If a factor is prime, we circle it (like a bud on a tree), and do not factor that “branch” any further. If a factor is not prime, we repeat this process, writing it as the product of two factors and adding new branches to the tree.
We continue until all the branches end with a prime. When the factor tree is complete, the circled primes give us the prime factorization.
For example, let’s find the prime factorization of . We can start with any factor pair, such as and . We write and below with branches connecting them.
The factor is prime, so we circle it. The factor is composite, so we need to find its factors. Let’s use and . We write these factors on the tree under the .
The factor is prime, so we circle it. The factor is composite, and it factors into . We write these factors under the . Since is prime, we circle both .
The prime factorization is the product of the circled primes. We generally write the prime factorization in order from least to greatest:
In cases like this, where some of the prime factors are repeated, we can write the prime factorization in exponential form:
Note that we could have started our factor tree with any factor pair of . We chose and , but the result would have been the same if we had started with and , and , or and .
Find the prime factorization of a composite number using the tree method.
- Find any factor pair of the given number, and use these numbers to create two branches.
- If a factor is prime, that branch is complete. Circle the prime.
- If a factor is not prime, write it as the product of a factor pair, and continue the process.
- Write the composite number as the product of all the circled primes.
Example. Find the prime factorization of using the factor tree method.
We can start our tree using any factor pair of . Let’s use and . We circle the because it is prime, and so that branch is complete.
Now we will factor . Let’s use and .
Neither factor is prime, so we do not circle either. We factor the , using and . We factor the , using and . We circle the and the since they are prime. Now all of the branches end in a prime.
We write the product of the circled numbers, then write it in exponential form:
Check this on your own by multiplying all the factors together. The result should be .
Find the prime factorization of 80 using the factor tree method. Enter the answer in exponential form, e.g. .
Start with a factor pair like and , then keep factoring any composite branch until every branch ends in a prime.Find the prime factorization of 60 using the factor tree method. Enter the answer in exponential form, e.g. .
Try the factor pair and , then keep factoring any composite branch until every branch ends in a prime.Example. Find the prime factorization of using the factor tree method.
We start with the factor pair and . Neither factor is prime, so we factor them further.
Now the factors are all prime, so we circle them: the factors into and , and the factors into and .
Then we write as the product of all circled primes:
Find the prime factorization of 126 using the factor tree method. Enter the answer in exponential form, e.g. .
Try the factor pair and , then keep factoring the composite branch () until every branch ends in a prime.Find the prime factorization of 294 using the factor tree method. Enter the answer in exponential form, e.g. .
294 is even, so start by dividing off a factor of . The remaining factor is .Prime factorization using the ladder method
The ladder method is another way to find the prime factors of a composite number. It leads to the same result as the factor tree method. Some people prefer the ladder method to the factor tree method, and vice versa.
To begin building the “ladder,” divide the given number by its smallest prime factor. For example, to start the ladder for , we divide by , the smallest prime factor of .
To add a “step” to the ladder, we continue dividing by the same prime until it no longer divides evenly.
Then we divide by the next prime; so we divide by .
We continue dividing up the ladder in this way until the quotient is prime. Since the quotient, , is prime, we stop here. Do you see why the ladder method is sometimes called stacked division?
The prime factorization is the product of all the primes on the sides and top of the ladder:
Notice that the result is the same as we obtained with the factor tree method.
Find the prime factorization of a composite number using the ladder method.
- Divide the number by the smallest prime.
- Continue dividing by that prime until it no longer divides evenly.
- Divide by the next prime until it no longer divides evenly.
- Continue until the quotient is a prime.
- Write the composite number as the product of all the primes on the sides and top of the ladder.
Example. Find the prime factorization of using the ladder method.
Divide the number by the smallest prime, which is :
Continue dividing by until it no longer divides evenly:
Divide by the next prime, :
The quotient, , is prime, so the ladder is complete. Write the prime factorization of :
Check this yourself by multiplying the factors. The result should be .
Find the prime factorization of 80 using the ladder method. Enter the answer in exponential form, e.g. .
Divide 80 by repeatedly until it no longer divides evenly, then check whether the quotient is prime.Find the prime factorization of 60 using the ladder method. Enter the answer in exponential form, e.g. .
Divide by until it no longer divides evenly, then move to the next prime.Example. Find the prime factorization of using the ladder method.
Divide the number by the smallest prime, :
Continue dividing by until it no longer divides evenly:
The quotient, , is prime, so the ladder is complete. Write the prime factorization of :
This matches the factor tree result from the earlier example — the method you use doesn’t change the answer.
Find the prime factorization of 126 using the ladder method. Enter the answer in exponential form, e.g. .
Divide by once, then by until it no longer divides evenly, then check whether the quotient is prime.Find the prime factorization of 294 using the ladder method. Enter the answer in exponential form, e.g. .
Divide by once, then by once, then check whether the remaining quotient is prime.Find the least common multiple (LCM) of two numbers
One of the reasons we look at multiples and primes is to use these techniques to find the least common multiple of two numbers. This will be useful when we add and subtract fractions with different denominators.
Listing multiples method
A common multiple of two numbers is a number that is a multiple of both numbers. Suppose we want to find common multiples of and . We can list the first several multiples of each number. Then we look for multiples that are common to both lists — these are the common multiples.
We see that and appear in both lists. They are common multiples of and . We would find more common multiples if we continued the list of multiples for each.
The smallest number that is a multiple of two numbers is called the least common multiple (LCM). So the least common multiple of and is .
Find the least common multiple (LCM) of two numbers by listing multiples.
- List the first several multiples of each number.
- Look for multiples common to both lists. If there are no common multiples in the lists, write out additional multiples for each number.
- Look for the smallest number that is common to both lists.
- This number is the LCM.
Example. Find the LCM of and by listing multiples.
List the first several multiples of and of , and identify the first common multiple:
The smallest number to appear on both lists is , so is the least common multiple of and :
Notice that is on both lists, too. It is a common multiple, but it is not the least common multiple.
Find the LCM of 9 and 12 by listing multiples.
List multiples of 9 and of 12 until a number appears in both lists.Find the LCM of 18 and 24 by listing multiples.
List multiples of 18 and of 24 until the smallest common one appears.Prime factors method
Another way to find the least common multiple of two numbers is to use their prime factors. We’ll use this method to find the LCM of and .
We start by finding the prime factorization of each number:
Then we write each number as a product of primes, matching primes vertically when possible — one column per prime, with a gap where a number is missing that prime. Now we bring down the primes in each column. The LCM is the product of these factors.
Notice that the prime factors of and the prime factors of are included in the LCM. By matching up the common primes, each common prime factor is used only once. This ensures that is the least common multiple.
Find the LCM using the prime factors method.
- Find the prime factorization of each number.
- Write each number as a product of primes, matching primes vertically when possible.
- Bring down the primes in each column.
- Multiply the factors to get the LCM.
Example. Find the LCM of and using the prime factors method.
Write each number as a product of primes, matching primes vertically when possible, then bring down the primes in each column:
Multiply the factors to get the LCM:
The LCM of and is .
Find the LCM of 15 and 20 using the prime factors method.
and . Match the common in one column, then bring down every column.Find the LCM of 15 and 35 using the prime factors method.
and . Match the common in one column, then bring down every column.Example. Find the LCM of and using the prime factors method.
Write the prime factorization of each number, matching primes vertically when possible, then bring down the primes in each column:
Multiply the factors to get the LCM:
The LCM of and is .
Find the LCM of 55 and 88 using the prime factors method.
and . Match the common in one column, then bring down every column.Find the LCM of 60 and 72 using the prime factors method.
and . Match the common primes column by column, then bring every column down.Key terms
prime factorization — the product of prime numbers that equals a given number. factor tree — a diagram that finds a prime factorization by repeatedly factoring composite branches until every branch ends in a prime. ladder method — a way to find a prime factorization by repeatedly dividing by the smallest prime that fits (also called stacked division). least common multiple (LCM) — the smallest number that is a multiple of two given numbers.
This section is adapted from Prealgebra 2e, Section 2.5: Prime Factorization and the Least Common Multiple by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated the factor-tree diagrams as accessible inline graphics, the ladder (stacked division) diagrams as typeset math, and the prime-factor column alignments as tables; omitted the Be Prepared quiz, Manipulative Mathematics callout, media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.