Applications and Reality Checks

Modular Lock Lab

When the Key Exists, Extended Euclid Finds It

Verified Verified

gcd(a, m)

1

Inverse

21

Locked?

no

13 * (-13) + 34 * (5) = 1

Claim Status

Rigour stays visible

Verified Verified
  • Extended Euclid produces coefficients x and y with a*x + b*y = gcd(a, b).
  • If gcd(a, b) = 1, the x coefficient from extended Euclid gives the inverse of a modulo b.