Skip to content
Gioi Toan
Start learning
Stacked counting blocks, the top one smiling

What is Greatest common divisor?

Short answer

The greatest common divisor of two or more numbers is the largest number among the common divisors of those numbers.

Type
Definition
First learned
Grade 6
Symbol
ƯCLN(a,b)\text{ƯCLN}(a, b)
Also called
UCLN, ước số chung lớn nhất, USCLN
In English
greatest common divisor, greatest common factor, highest common factor, GCD

Explanation

The greatest common divisor (abbreviated GCD) of two or more numbers is the largest number in the set of common divisors of those numbers. A common divisor is a number that all the given numbers are divisible by.

To find the GCD of numbers greater than 1, do the prime factorization of each number, choose the common prime factors, take each factor with the smallest exponent, then multiply them back together. If the numbers have no common prime factor, their GCD is 1.

The GCD is used to simplify the fraction to simplest form and to solve problems about dividing evenly into as many parts as possible. Two numbers whose GCD is 1 are called coprime.

Examples

Example 1

Find GCD(8, 12).

See the solution to example 1

Divisors of 8: {1; 2; 4; 8}, divisors of 12: {1; 2; 3; 4; 6; 12}. The common divisors are 1; 2; 4, so GCD(8, 12) = 4.

Example 2

Find GCD(24, 36) by prime factorization.

See the solution to example 2

24=23⋅324 = 2^3 \cdot 3, 36=22⋅3236 = 2^2 \cdot 3^2. The common factors are 2 and 3, take the smallest exponents: 22⋅3=122^2 \cdot 3 = 12. So GCD(24, 36) = 12.

Common mix-ups

  • You do not get the GCD just by multiplying the given numbers; you must choose the common prime factors with the smallest exponents.
  • The GCD is always a divisor of each number, so it cannot be greater than the smallest of the given numbers.
  • Do not confuse the GCD with the LCM: the GCD is the largest of the common divisors, while the LCM is the smallest of the common multiples.

Where the name comes from

The name "greatest common divisor" is built from "divisor" (a number that the given number is divisible by), "common" (shared by the numbers) and "greatest" (about size).

Learn it in these lessons