Ask your own question, for FREE!
Mathematics 20 Online
OpenStudy (anonymous):

HELP! URGENT! Need simple formula for "greatest common divisor" for only 2 numbers (integers)

OpenStudy (anonymous):

Ok ! For example 32 & 84 First write : 84=X^y 32=X^y Means it : 32 = 2^5 84=2^4 . 3 Now get the smallest : It s 2^4 Then greatest common divisor = 2^4 = 16 Understand ?!:) :D It has another way too !

OpenStudy (anonymous):

@E.ali, thank you) could you please show me other ways? I'm currently working on programming, so it would be great if there were a particular formula.

OpenStudy (amistre64):

i wrote up euclids algorithm once

OpenStudy (amistre64):

L/S = Q.xxxx -Q ------- 0.xxxx times S -------- R L = S, S=R, repeat have to recall how i determined a break in the loop tho

OpenStudy (amistre64):

if R = 0, then the gcd is the previous R

OpenStudy (anonymous):

Now look : |dw:1062636136311:dw|

OpenStudy (anonymous):

@amistre64 could you please be more specific? I feel quite confused, however, your method seems to be more suitable for my condition

OpenStudy (anonymous):

@SerikMB : It s an interesting way !

OpenStudy (anonymous):

Now we have 84/32 Answer to it!

OpenStudy (anonymous):

2.625

OpenStudy (anonymous):

what's next?

OpenStudy (amistre64):

im hammering out some javascripting at the moment ... debugging

OpenStudy (anonymous):

@E.ali actually i think the GCD for 84 and 32 is 4

OpenStudy (anonymous):

OK ! Thank you ! But we want just it :|dw:1062637723502:dw|

OpenStudy (anonymous):

Understand ?!

OpenStudy (anonymous):

sorry, but i still can't get in ur method with boxes

OpenStudy (anonymous):

OK friend ! It s is that 84/32 we have :|dw:1062637919084:dw|

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!