HELP! URGENT! Need simple formula for "greatest common divisor" for only 2 numbers (integers)
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 !
@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.
i wrote up euclids algorithm once
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
if R = 0, then the gcd is the previous R
Now look : |dw:1062636136311:dw|
@amistre64 could you please be more specific? I feel quite confused, however, your method seems to be more suitable for my condition
@SerikMB : It s an interesting way !
Now we have 84/32 Answer to it!
2.625
what's next?
im hammering out some javascripting at the moment ... debugging
@E.ali actually i think the GCD for 84 and 32 is 4
OK ! Thank you ! But we want just it :|dw:1062637723502:dw|
Understand ?!
sorry, but i still can't get in ur method with boxes
OK friend ! It s is that 84/32 we have :|dw:1062637919084:dw|
Join our real-time social learning platform and learn together with your friends!