How does the Euclidean Algorithm work?
The Wikipedia article contains an explanation, but it’s not easy to find it immediately (also, procedure + proof don’t always answer the question “why it works”). Basically it comes down to the fact that for two integers a, b (assuming a >= b), it is always possible to write a = bq + r where … Read more