HCF: Formulas, Methods, Tricks and Examples
HCF, or Highest Common Factor, is the greatest positive integer that divides two or more numbers without leaving a remainder. This page covers HCF formulas, prime factorisation, the division method, useful shortcuts, properties and solved examples for quantitative aptitude questions.
What is HCF?
For example, the factors common to 18 and 24 are 1, 2, 3 and 6, so HCF(18, 24) = 6. The HCF of a set of numbers cannot be greater than the smallest number in that set.
HCF Formula & Tricks
Important Formulas
Write each number as a product of primes, select only the primes common to all numbers, and use the least exponent of each selected prime.
Repeatedly divide the larger number by the smaller number. The last non-zero remainder is the HCF.
If the HCF and one number are known, the LCM can be found by dividing the product of the two numbers by their HCF, and vice versa.
This formula applies when the fractions are first written in their lowest terms.
Quick Tricks
Replace the larger number with the remainder obtained after division. Continue until the remainder becomes zero. The preceding non-zero remainder is the HCF.
If one number divides another exactly, the smaller number is the HCF. If the numbers have no common prime factor, their HCF is 1.
The HCF of two numbers is also the HCF of the smaller number and their difference: HCF(a, b) = HCF(b, a − b), when a > b.
HCF Concepts
HCF by prime factorisation
Factorise every number into primes. A prime factor is included only if it occurs in all the numbers. For each common prime, choose the minimum exponent.
HCF by the division method
For two positive integers a and b, divide a by b and write a = bq + r. Then replace the pair (a, b) with (b, r). When r becomes zero, the last non-zero divisor is the HCF.
HCF of three or more numbers
The operation is associative, so HCF(a, b, c) = HCF(HCF(a, b), c). The final result must divide every number in the set.
HCF and LCM relationship
If HCF(a, b) = h and LCM(a, b) = l, then h × l = a × b. This relation is valid for two numbers; it cannot be directly extended as a product formula for three or more numbers.
HCF in remainder-based questions
If a number N leaves remainder r when divided by a and b, then a and b divide N − r. Hence, the greatest possible common divisor of a and b can be found using HCF(a, b), or by applying the relation to the relevant differences.
HCF Video Lessons
Watch short topic-wise lessons for quick revision.
HCF Using Prime Factorisation and Euclidean Algorithm
Learn to calculate the Highest Common Factor using prime factorisation and the Euclidean algorithm, with a clear understanding of how both methods work.
Practice HCF Questions
Practise published questions related to this topic.
HCF Quick Quiz
Attempt 5 questions and check your score instantly.
Keep practising
Practice more HCF questions in the PrepShots app and continue from your current topic.
Practice More Questions - Start ₹1 Trial →Quick Revision Notes
HCF Quick Revision
Remember these definitions, formulas and calculation rules for HCF questions.
- HCF is the greatest positive integer that divides every given number exactly.
- By prime factorisation, use common prime factors with their smallest exponents.
- In the Euclidean method, the last non-zero remainder is the HCF.
- For two positive integers, HCF × LCM = product of the numbers.
- If one number divides another, the smaller number is the HCF.
- If two numbers have no common prime factor, their HCF is 1.
- For three or more numbers, calculate the HCF successively.
- The HCF cannot exceed the smallest number in the given set.
HCF FAQs
What is the HCF of 48 and 180?
48 = 2⁴ × 3 and 180 = 2² × 3² × 5. Therefore, HCF = 2² × 3 = 12.
How is HCF calculated using the Euclidean algorithm?
Divide the larger number by the smaller number and replace the pair with the divisor and remainder. Repeat until the remainder is zero; the last non-zero remainder is the HCF.
What is the HCF of two co-prime numbers?
The HCF of two co-prime numbers is 1. For example, HCF(17, 28) = 1.
What is the HCF of 0 and a non-zero number?
HCF(0, a) = |a| for a non-zero integer a. Therefore, HCF(0, 15) = 15.
If the HCF of 20 and 30 is 10, what is their LCM?
LCM = (20 × 30) ÷ 10 = 60.
What is the HCF of 3/4 and 9/10?
HCF of numerators = HCF(3, 9) = 3, and LCM of denominators = LCM(4, 10) = 20. Therefore, the HCF is 3/20.
