answersLogoWhite

0


Best Answer

Example: 30 and 42

Factor them.

2 x 3 x 5 = 30

2 x 3 x 7 = 42

Combine the factors, eliminating duplicates.

2 x 3 x 5 x 7 = 210, the LCM

User Avatar

Wiki User

βˆ™ 11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you calculate the lcm of two numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Program in 'c' to find the LCM of any given five numbers?

Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.


How do you calculate the LCM of 56?

You need at least two numbers to find an LCM.


What is the LCM of 812?

The LCM of one number is itself. LCM involves two or more numbers.


How do you calculate LCM of three numbers by pesudo code?

For this you will need a couple of helper algorithms. The first is the GCD (greatest common divisor) which is expressed as follows:procedure GCD (a, b) isinput: natural numbers a and bwhile ab doif a>blet a be a-belselet b be b-aend ifend whilereturn aThe second algorithm is the LCM (least common multiple) of two numbers:procedure LCM (a, b) isinput: natural numbers a and b return (a*b) / GCD (a, b)Now that you can calculate the GCD and LCM of any two natural numbers, you can calculate the LCM of any three natural numbers as follows:procedure LCM3 (a, b, c) isinput: natural numbers a, b and c return LCM (LCM (a, b), c)Note that the LCM of three numbers first calculates the LCM of two of those numbers (a and b) and then calculates the LCM of that result along with the third number (c). That is, if the three numbers were 8, 9 and 21, the LCM of 8 and 9 is 72 and the LCM of 72 and 21 is 504. Thus the LCM of 8, 9 and 21 is 504.


What is the LCM of two numbers is t (always sometimesnever) he product of the two numbers?

The LCM of two numbers is sometimes the product of the two numbers.


What is the LCM of 28 and16?

The LCM of 28 and 16 is 112 The LCM of 2, 8 and 16 is 16


Can the HCF of two numbers be a factor of their LCM?

The HCF is always a factor of the LCM of two numbers. The HCF is a factor of both the numbers which are factors of their LCM. Thus the HCF is also a factor of the LCM of the two numbers.


How do you calculate the LCM of negative numbers?

The LCM is defined as being a positive integer. Ignore the negative signs. Calculate as if everything's positive.


Can the GCF of two different numbers is the LCM of the numbers?

No, the only way the GCF and LCM of two numbers can be the same is if the numbers are the same.


What is the LCM of 64and 72?

To calculate the LCM, you first have to split the numbers up into their prime factors: 64 = 2x2x2x2x2x2 72 = 2x2x2x3x3 The next step is to calculate the HCF. In this case it will be 2x2x2 = 8. Finally, you multiply the two numbers and divide by the HCF: 64x72/8 = 576 And therefore the LCM of 64 and 72 is 576.


Can you give me an example when the LCM of two numbers is the product of the two numbers?

The LCM of 7 and 9 is 63.


Is The LCM of two different prime numbers their product?

Yes,LCM of two numbers is their product.