MHB Finding the Greatest Common Divisor of Two Integers

matqkks
Messages
280
Reaction score
5
How do computers evaluate the gcd of two integers?
 
Mathematics news on Phys.org
matqkks said:
How do computers evaluate the gcd of two integers?

Hi,

They use Euclid's algorithm, described here. (Look in particular at section 2, Description).
 
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Back
Top