Arithmetic Home Contents
Part II. ON THE DIVISIBILITY OF NUMBERS•Chapter IV. Greatest Common Divisor of Several Numbers

§ 98. First Method: By Prime Factorization

Let it be required to find the greatest common divisor of two numbers, 180 and 126. For this purpose, we first decompose these numbers into prime factors:

180 = 2 · 2 · 3 · 3 · 5, 126 = 2 · 3 · 3 · 7.

Comparing the factors of these numbers, we observe that there are common factors among them, namely: 2, 3, 3. Each of these common factors will also be a common divisor of 180 and 126. To obtain composite common divisors, we must multiply the common factors by two and by three. The greatest common divisor, evidently, will be obtained if we multiply all the common factors together.

2 · 3 · 3 = 18.

Let it also be required to find the greatest common divisor of three numbers: 210, 1260, and 245. Let us decompose these numbers into prime factors:

2102
1053
355
77
1
12602
6302
3153
1053
355
77
1
2455
497
77
1

Now we see that the greatest common divisor of these numbers is equal to the product of the common factors 5 and 7, that is, equal to 35.

In a similar manner, one can find the greatest common divisor of four, five, or more given numbers.

Rule
To find the greatest common divisor of several numbers, it is sufficient to decompose them into prime factors and multiply together those factors which are common to all the numbers.
Note
In doing so, one must remember that if a certain prime factor appears in the prime factorization of all the numbers several times, it must appear in the greatest common divisor the same number of times.

Using the notation for powers introduced in § 92, we can write the prime factorization of the numbers in the first example considered as follows:

180 = 22 · 32 · 5, 126 = 2 · 32 · 7; in the greatest common divisor of the given numbers, the factors 5 and 7 will not appear at all, since 5 does not appear in the second number, and 7 does not appear in the first number. The factor 2 will enter 1 time, since it enters the decomposition of the second number only 1 time. The factor 3, however, will appear in the greatest common divisor 2 times (that is, to the second power), since it appears in both given numbers to the second power; thus, the greatest common divisor of the given numbers is 2 · 32 = 18.

Thus, the rule stated above can be expressed as follows: to find the greatest common divisor of several numbers, decompose these numbers into prime factors and take the product of the powers of the distinct prime factors that appear in the prime factorization of all the given numbers, where each factor is taken with the smallest exponent with which it occurs in the composition of the given numbers.

Example: the greatest common divisor of the numbers 9000 = 23 · 32 · 53 and 1350 = 2 · 33 · 52 is equal to 2 · 32 · 52 = 450.

Chloe and Ruby — story illustration for § 98 “First Method: By Prime Factorization”
👨‍👩‍👧 In Plain Words (Kids & Parents)
Ask your child: Ask your child to demonstrate with numbers 18 and 16 on the right stage why the main rule of “First Method: By Prime Factorization” holds true.
Quick reference without leaving:

Study Guide for Parents, Teachers & Family Co-Learning — Lesson 98. First Method: By Prime Factorization

Core Idea in Plain Language

To find the greatest common divisor, break each number down into its prime building blocks, then multiply only the blocks that appear in every number, using the smallest power found in any of them.

To find the greatest common divisor of several numbers, it is sufficient to decompose them into prime factors and multiply together those factors which are common to all the numbers.
Multiply common factors with lowest exponents.

Key Mathematical Terms:

Greatest common divisorPrime factorsCommon factorsPrime factorizationExponent

Common Student Mistake & Socratic Fix

Typical pitfall: Billy tried to find the GCD of 12 and 18 by multiplying ALL prime factors from both numbers together (2 · 2 · 3 · 3 · 3), thinking that 'common' means 'all factors involved'. He got 108, which is larger than the numbers themselves.

How to guide correction: Billy, remember the rule: we only multiply the factors that are common to BOTH numbers. 12 = 2² · 3 and 18 = 2 · 3². The common factors are one 2 and one 3. So, GCD(12, 18) = 2 · 3 = 6, not the product of everything.

Complete 4-Step Reasoning Walkthrough

  1. 1. Factor 180 and 126 into primes180 = 2²·3²·5; 126 = 2·3²·7

    Chloe and Ruby factor 180 and 126 into primes to see their composition and find common parts for the GCD.

  2. 2. Find common factors and exponentsGCD = 2¹ · 3²

    Ruby explains that factor 2 is taken once, as it appears once in the second number, while factor 3 is taken twice, as it is squared in both.

  3. 3. Calculate the greatest common divisor2 · 3 · 3 = 18

    Chloe multiplies all common factors 2, 3, and 3 to get 18, which is the greatest common divisor of 180 and 126.

  4. 4. Rule for multiple numbersGCD(210, 1260, 245) = 35

    Ruby shows the rule works for three numbers: factoring 210, 1260, and 245, they find common factors 5 and 7, whose product is 35.

Graded Practice Problems & Worked Solutions

  1. Problem 1 (§ 98). Find the greatest common divisor GCD(18, 12) by prime factorization.

    Hint: Decompose both 18 and 12 into their prime factors. Identify the prime factors common to both numbers and multiply them together, using the lowest exponent for each.

    Worked solution: Prime factorization: 18 = 2 · 3² and 12 = 2² · 3. Common prime factors are 2 and 3. Taking the lowest powers: 2¹ · 3¹ = 6.
  2. Problem 2 (§ 98). What is the greatest common divisor of two coprime numbers (for example, 8 and 15)?

    Hint: Recall that coprime numbers share no prime factors other than 1. Check the prime factorizations of 8 and 15 to see if they have any common prime factors.

    Worked solution: Prime factorization: 8 = 2³ and 15 = 3 · 5. There are no common prime factors between 8 and 15, so the product of common factors is 1.
  3. Problem 3 (§ 98). Find the greatest common divisor GCD(24, 16) by prime factorization.

    Hint: Decompose 24 and 16 into prime factors. Identify the common prime factors and multiply the lowest powers.

    Worked solution: Prime factorization: 24 = 2³ · 3 and 16 = 2⁴. The only common prime factor is 2. The lowest power is 2³ (from 24). GCD(24, 16) = 2³ = 8.

How This Lesson Connects Across the Curriculum