HCF , Highest Common Factor
The HCF (or GCD , Greatest Common Divisor) of two numbers is the largest number that divides both of them with no remainder.
Idea
Example: HCF of and . The common factors are . Largest is . So .
Method 1: Listing factors. Write all factors of each number; find the greatest common one. Works for small numbers.
Method 2: Prime factorisation. Write each number as product of primes. For each prime, take the lower power. Multiply these.
Example: and . Common primes: and . Lower powers: and . HCF .
Method 3: Euclidean algorithm. A fast way for large numbers.
To find with :
- Divide by . Let be the remainder.
- If , then is the HCF.
- Otherwise, replace by and by . Repeat.
Example: . R . Now . R . Now . R . So HCF .
The Euclidean method is fast because each step reduces the numbers; it stops in just a few steps even for very large inputs.
Using HCF. To simplify a fraction , divide both by . So becomes after dividing by .
Worked examples
Example 1. Find by listing.
Factors of : . Factors of : . Common: . Largest: .
Example 2. Find by prime factorisation.
and . Lower powers: and . HCF .
Example 3. Find by Euclidean algorithm.
R . R . HCF .
Example 4. Simplify using HCF.
. So .
Try it yourself
- .
- by prime factorisation.
- by Euclidean method.
- Simplify .
- . (Hint: coprime?)
- , any method.
- Two numbers have HCF , what is that called?
- Find . (Convention: HCF involving equals the other number.)
Activity
Pick two of your favourite numbers. Find HCF using all three methods. Verify they give the same answer.