How to lcm and hcf
Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.
Last updated: April 4, 2026
Key Facts
- The HCF of two prime numbers is always 1.
- The LCM of any number and 1 is the number itself.
- For two positive integers a and b, LCM(a, b) * HCF(a, b) = a * b.
- Prime factorization is a common method for finding both LCM and HCF.
- The HCF can never be greater than the smallest of the numbers involved.
Understanding LCM and HCF
In mathematics, the concepts of the Least Common Multiple (LCM) and the Highest Common Factor (HCF) are fundamental, particularly when dealing with fractions, number theory, and various problem-solving scenarios. While they might seem abstract, they have practical applications in daily life, such as in scheduling events or dividing items equally. Understanding how to calculate them is a key mathematical skill.
What is the Highest Common Factor (HCF)?
The Highest Common Factor (HCF), also widely known as the Greatest Common Divisor (GCD), refers to the largest positive integer that can divide two or more integers without leaving any remainder. For instance, if we consider the numbers 12 and 18, their factors are:
- Factors of 12: 1, 2, 3, 4, 6, 12
- Factors of 18: 1, 2, 3, 6, 9, 18
The common factors are 1, 2, 3, and 6. The highest among these common factors is 6. Therefore, the HCF of 12 and 18 is 6.
Methods to Find HCF:
1. Listing Factors: As demonstrated above, list all the factors of each number and identify the largest common factor. This method is practical for smaller numbers but can become tedious for larger ones.
2. Prime Factorization: This is a more systematic approach, especially for larger numbers.
- Find the prime factorization of each number.
- Identify the common prime factors.
- Multiply these common prime factors together.
Example: Find the HCF of 48 and 60.
- Prime factorization of 48: 2 x 2 x 2 x 2 x 3 (2⁴ x 3)
- Prime factorization of 60: 2 x 2 x 3 x 5 (2² x 3 x 5)
The common prime factors are 2 (appearing twice) and 3. So, HCF(48, 60) = 2 x 2 x 3 = 12.
3. Euclidean Algorithm: This is an efficient method, especially for very large numbers. It involves repeatedly applying the division algorithm until a remainder of zero is obtained. The last non-zero remainder is the HCF.
- Divide the larger number by the smaller number.
- Replace the larger number with the smaller number and the smaller number with the remainder.
- Repeat until the remainder is 0.
Example: Find the HCF of 135 and 24.
- 24) 135 (5)
120
---
15 - 15) 24 (1)
15
---
9 - 9) 15 (1)
9
---
6 - 6) 9 (1)
6
---
3 - 3) 6 (2)
6
---
0
The last non-zero remainder is 3. So, HCF(135, 24) = 3.
What is the Least Common Multiple (LCM)?
The Least Common Multiple (LCM) is the smallest positive integer that is a multiple of two or more given integers. A multiple of a number is the product of that number and any integer. For example, multiples of 4 are 4, 8, 12, 16, 20, 24, ... and multiples of 6 are 6, 12, 18, 24, 30, ...
The common multiples of 4 and 6 are 12, 24, 36, etc. The smallest of these common multiples is 12. Therefore, the LCM of 4 and 6 is 12.
Methods to Find LCM:
1. Listing Multiples: List out the multiples of each number until you find the smallest one that appears in both lists. This is straightforward for small numbers.
2. Prime Factorization: This is a very effective method.
- Find the prime factorization of each number.
- For each prime factor, take the highest power that appears in any of the factorizations.
- Multiply these highest powers together.
Example: Find the LCM of 18 and 24.
- Prime factorization of 18: 2 x 3 x 3 (2 x 3²)
- Prime factorization of 24: 2 x 2 x 2 x 3 (2³ x 3)
The prime factors involved are 2 and 3. The highest power of 2 is 2³ (from 24), and the highest power of 3 is 3² (from 18). So, LCM(18, 24) = 2³ x 3² = 8 x 9 = 72.
3. Using the Relationship between LCM and HCF: There's a useful formula that connects LCM and HCF for two positive integers, 'a' and 'b':
LCM(a, b) = (a * b) / HCF(a, b)
Example: Find the LCM of 12 and 18 using this formula.
- First, find the HCF of 12 and 18. From our earlier example, HCF(12, 18) = 6.
- Now, apply the formula: LCM(12, 18) = (12 * 18) / 6 = 216 / 6 = 36.
This formula is particularly helpful when the HCF is already known or easily calculable.
Practical Applications
Understanding LCM and HCF can help in various situations:
- Scheduling: If two events occur at different intervals (e.g., one every 3 days, another every 5 days), the LCM will tell you when they will next occur on the same day.
- Resource Allocation: When dividing items into equal groups, HCF helps find the largest possible group size.
- Fractions: LCM is crucial for adding or subtracting fractions with different denominators, as it provides the least common denominator.
Mastering these concepts provides a solid foundation for more advanced mathematical topics and practical problem-solving.
More How To in Daily Life
Also in Daily Life
More "How To" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- Greatest common divisor - WikipediaCC-BY-SA-4.0
- Least common multiple - WikipediaCC-BY-SA-4.0
- Greatest Common Divisor (GCD) / LCM | Khan Academyfair-use
Missing an answer?
Suggest a question and we'll generate an answer for it.