What Is the Greatest Common Factor (GCF)?
The Greatest Common Factor (GCF) of two or more integers is the largest positive integer that divides each of the given numbers without leaving a remainder. It is also known as the Greatest Common Divisor (GCD), Highest Common Factor (HCF), or Greatest Common Measure (GCM). For example, the factors of 12 are {1, 2, 3, 4, 6, 12} and the factors of 18 are {1, 2, 3, 6, 9, 18}. The largest factor they share is 6, so GCF(12, 18) = 6.
Three Methods to Find the GCF
Method 1: Prime Factorization
Express each number as a product of prime factors. The GCF is the product of all shared primes raised to the lowest power they appear in any of the numbers.
- 48 = 2⁴ × 3
- 60 = 2² × 3 × 5
- Shared primes: 2 (min power 2) and 3 (min power 1)
- GCF = 2² × 3 = 12
Method 2: Listing Factors
List all factors of each number and identify the largest one that appears in both lists:
- Factors of 48: 1, 2, 3, 4, 6, 8, 12, 16, 24, 48
- Factors of 60: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60
- Common: 1, 2, 3, 4, 6, 12
- GCF = 12 (the largest common factor)
Method 3: Euclidean Algorithm
Repeatedly divide and take remainders until the remainder is 0. The last non-zero remainder is the GCF:
- 60 = 1 × 48 + 12
- 48 = 4 × 12 + 0
- GCF = 12
The Euclidean Algorithm, described by Euclid in Elements (~300 BCE), is one of the oldest algorithms in mathematics and runs in O(log n) time — extremely efficient even for large numbers in the billions.
Understanding Your Results
The GCF tells you the largest “unit” that evenly divides all your numbers. Practical interpretation:
- GCF = 1: The numbers are coprime (relatively prime) — they share no common factors.
- GCF = one of the numbers: That number divides all the others evenly.
- GCF > 1: All numbers can be divided by the GCF to produce simpler values.
Real-World Applications
- Simplifying fractions: Divide numerator and denominator by their GCF. For 48/60: GCF(48,60) = 12, so 48/60 = 4/5.
- Dividing objects into equal groups: You have 48 apples and 60 oranges. The largest number of identical gift baskets = GCF(48, 60) = 12 baskets, each with 4 apples and 5 oranges.
- Tiling problems: You want to tile a 48×60 inch floor with square tiles. The largest square tile = GCF(48, 60) = 12 inches.
- Cryptography: The RSA algorithm uses GCD computations to generate key pairs. The Euclidean Algorithm is central to computing modular inverses.
GCF × LCM Identity
For any two positive integers a and b:
GCF(a, b) × LCM(a, b) = a × b
This means: LCM(a, b) = (a × b) / GCF(a, b). Example: GCF(12, 18) = 6, so LCM(12, 18) = (12 × 18) / 6 = 36. This identity is frequently used in number theory and competitive mathematics.
Sources and References
- Euclid (c. 300 BCE). Elements, Book VII, Propositions 1–2. Description of the Euclidean Algorithm.
- Knuth, D.E. (1997). The Art of Computer Programming, Volume 2: Seminumerical Algorithms (3rd ed.). Addison-Wesley. Analysis of GCD algorithms.
- Common Core State Standards Initiative. CCSS.Math.Content.4.NF.A.1 — Fraction equivalence and simplification using factors.
- Hardy, G.H. & Wright, E.M. (2008). An Introduction to the Theory of Numbers (6th ed.). Oxford University Press.