The Highest Common Factor: The Biggest Piece That Fits Everywhere
Quick answer The HCF of two numbers is the largest number that divides both of them exactly, and prime factorisation finds it without listing every factor.
Suppose a room measures 18 feet by 24 feet, and you want to cover the floor with the largest possible square tiles whose side is a whole number of feet, with no tile cut or overlapping. The tile's side must divide 18 exactly and must also divide 24 exactly — it has to be a common factor of both numbers. The factors of 18 are 1, 2, 3, 6, 9, 18. The factors of 24 are 1, 2, 3, 4, 6, 8, 12, 24. The common factors are 1, 2, 3, 6 — and the largest of these, 6, is called the Highest Common Factor (HCF) of 18 and 24. So the biggest tile you can use has a 6 ft side, and you'd need (18 ÷ 6) × (24 ÷ 6) = 3 × 4 = 12 tiles.
Listing every factor works, but it gets slow and error-prone for bigger numbers. Prime factorisation gives a faster, more reliable route. Write each number as a product of primes: 18 = 2 × 3 × 3 and 24 = 2 × 2 × 2 × 3. To build the HCF, pick out only the primes that appear in both factorisations, using the smallest number of times either number has that prime. Both have at least one 2 (18 has one 2, 24 has three — take the minimum, one 2). Both have at least one 3 (18 has two 3s, 24 has one — take the minimum, one 3). So HCF = 2 × 3 = 6, exactly matching the tiling answer.
This minimum-power rule is the whole method: factorise every number, then for each prime that shows up in all of them, multiply in the smallest number of copies seen anywhere. If two numbers share no prime factor at all — for example 17 and 19, which are both prime and different — their only common factor is 1, and their HCF is 1. Such number pairs are called co-prime.
- HCF(a, b) is the largest number that divides both a and b exactly.
- By prime factorisation, HCF = product of the common primes, each raised to the smallest power it has in either number.
- Two numbers with HCF = 1, like 17 and 19, are called co-prime.
