What is Euclid's Method and How is it Used to Find the GCD and LCM?

  • Thread starter Thread starter courtrigrad
  • Start date Start date
  • Tags Tags
    Method
AI Thread Summary
Euclid's Method, or the Euclidean algorithm, is a systematic approach to finding the greatest common divisor (GCD) of two integers using the division algorithm. The process involves dividing the larger number by the smaller one, obtaining a remainder, and repeating the division with the smaller number and the remainder until a zero remainder is reached. The last non-zero remainder is the GCD. For example, to find the GCD of 30 and 500, the algorithm shows that the GCD is 10 after a series of divisions. Additionally, this method can express the GCD as a linear combination of the two original numbers.
courtrigrad
Messages
1,236
Reaction score
2
Can someone please explain to me what Euclid's Method is? Any good examples are also appreciated.

Thanks
 
Mathematics news on Phys.org
I assume you mean the Euclidean algorithm for finding the greatest common divisor of two integers?

The basic idea is based on the division algorithm, if a and b are natural numbers, then you can find s and r where a=b*s+r, where 0<=r<b, r is the remainder. From this equation you can see if a number divides any two of a,b,r, then it must also divide the third, so we must have gcd(a,b)=gcd(b,r). You can repeat this process, dividing b by r, to get b=r*s2+r1, where 0<=r1<r. Now divide r by r1 and so on. Eventually this process will terminate with a zero remainder, and the remainder from the previous step will be the gcd of a and b.

Example: find gcd(30, 500):

divide 500 by 30:
500=30*16+20 (eq1)

The remainder here is 20. Divide 30 by 20:
30=20*1+10 (eq2)

The remainder here is 10. Since 10 divides 20, we can stop here and say 10 is the greatest common divisor of 30 and 500.

You can also reverse this process to write gcd(a,b) as a linear combination of a and b. (eq1) above gives 20=500+30*(-16). Substituting this expression for 20 into (eq2) gies 30=(500+30*(-16))*1+10. Rearrange a little to get 10=(17)*30+(1)*500.
 
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top