Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Saturday, 6 April 2019

LCM and HCF of Numbers

LCM and HCF of Numbers

Factors and Multiples
If the number x divided another number y exactly,we say that x is a factor of y. In this case, y is called a multiple of x.

Least Common Multiple(L.C.M.)
The least number which is exactly divisible by each one of the given numbers is called their L.C.M. There are two methods of finding the L.C.M. of a given set of numbers:

1) Factorization Method:
Resolve each one of the given numbers into a product of prime factors.
Then, L.C.M. is the product of the highest powers of all the factors.

2) Division Method(short-cut):
Arrange the given numbers in a row in any order. Divide by a number which divided exactly at least two of the given numbers and carries forward the numbers which are not divisible.
Repeat the above process till no two of the numbers are divisible by the same number except 1.
The product of the divisors and the undivided numbers is the required L.C.M. of the given numbers.
The product of two numbers = Product of their H.C.F. and L.C.M.

Co-primes:
Two numbers are said to be co-primes if their H.C.F. is 1.

L.C.M. of Fractions:
L.C.M. = L.C.M. of Numerators/ H.C.F. of Denominators

H.C.F. and L.C.M. of Decimal Fractions:
In a given number, make the same number of decimal places by annexing zeros in some numbers, if necessary.
Considering these numbers without the decimal point, find H.C.F. or L.C.M. as the case may be. Now, in the result, mark off
as many decimal places as are there in each of the given numbers.

Comparison of Fractions:
Find the L.C.M. of the denominators of the given fractions. Convert each of the
fractions into an equivalent fraction with L.C.M as the denominator, by multiplying
both the numerator and denominator by the same number.
The resultant fraction with the greatest numerator is the greatest.












Highest Common Factor (H.C.F.) 
or Greatest Common Measure (G C M.) 
or Greatest Common Divisor (G.C.D.)

The H.C.F. of two or more than two numbers is the greatest number that divides each of them exactly. There are
two methods of finding the H.C.F. of a given set of numbers:

Factorization Method:
Express each one of the given
numbers as the product of prime factors.
The product of the least powers of common prime factors gives H.C.F.

Division Method:
Suppose we have to find the H.C.F. of two given numbers, divide the larger by the smaller one. Now, divide the divisor by
the remainder.
Repeat the process of dividing the preceding number by the remainder, until zero is obtained as remainder. The last
the divisor is required H.C.F.

Finding the H.C.F. of more than two numbers:
Suppose we have to find the H.C.F. of three numbers, then, H.C.F. of [(H.C.F. of any two) and (the third number)] gives the
H.C.F. of three given number.
Similarly, the H.C.F. of more than three numbers may be obtained.

H.C.F. Fractions:
H.C.F. = H.C.F. of Numerators / L.C.M. of Denominators


Example sum
Find the H.C.F of 108, 288 and 360?









     =36

Basic Formulas
H.C.F. of given fractions = H.C.F. of numerator/ L.C.M. of the denominator

Example sum
Find the H.C.F of (9/10), (12/ 25), (18/ 25) and(21 / 40)?
Required H.C.F.= H.C.F of 9, 12, 18, 21 / L.C.M of 10, 25, 35, 40
= 3/ 2800

Basic Formulas
L.C.M. of given fractions = L.C.M. of numerator / H.C.F. of the denominator

Example sum
Find the L.C.M. of (1 / 3), (5/6), (2/9),(4/ 27 ) ?
Required L.C.M. = L.C.M of 1, 5, 2, 4 / H.C.F 3, 6, 9, 27
=20/3

0 comments:

Post a Comment