How to use Euclids algorithim to find LCM?

  • Thread starter Thread starter 0-RWHP
  • Start date Start date
Click For Summary
To find the Least Common Multiple (LCM) using Euclid's algorithm, first calculate the Greatest Common Divisor (GCD) of the two numbers. The relationship between LCM and GCD is expressed as LCM(a, b) * GCD(a, b) = a * b, which can be rearranged to LCM = (a * b) / GCD. For example, with the numbers 8 and 19, the GCD is 1, so LCM is calculated as (8 * 19) / 1, resulting in 152. This method effectively utilizes Euclid's algorithm for both GCD and LCM calculations. Understanding this relationship enhances the application of Euclid's algorithm in number theory.
0-RWHP
Messages
2
Reaction score
0
I know it's a really basic problem. I can find GCD with it but I can't find how to use the euclidean algorithm to find the LCM of two numbers? Sorry for the noob question :)
 
Physics news on Phys.org
Once you have the GCD, use the well known equation

LCM(a,b)*GCD(a,b) = a*b

or LCM = (a*b)/GCD

Just divide the product by the GCD and you have the LCM.
 
Oh ok, so with 8, 19 for example you would just do 8x19 then divide that by GCD of 8, 19. The GCD of 8, 19 is 1 so the answer is just 152 right? This is great, I loved when I discovered Euclids algorithm for GCD and was really excited when I found it could do LCM as well. Thanks so much for your help, I appreciate it.
 
0-RWHP said:
Oh ok, so with 8, 19 for example you would just do 8x19 then divide that by GCD of 8, 19. The GCD of 8, 19 is 1 so the answer is just 152 right? This is great, I loved when I discovered Euclids algorithm for GCD and was really excited when I found it could do LCM as well. Thanks so much for your help, I appreciate it.

No worries. :smile:
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
Replies
7
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
1
Views
1K
  • · Replies 13 ·
Replies
13
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K