Euclidean algorithm (GCD)

Layer 0 — Mathematicsin the number-theory subtree

gcd(a,b) computed by repeated division: gcd(a,b) = gcd(b, a mod b), terminating at gcd(x,0) = x. Basis of Bezout's identity and of modular inverse computation.

Related concepts

Explore Euclidean algorithm (GCD) on the interactive knowledge graph →