Greatest common divisor

Description:

  • Let with not both 0.
  • The greatest common divisor of and , denoted by , is the largest integer such that and .

Euclid & GCD algorithm

Extended Euclidean algorithm

  • Known as extended GCD