Extended GCD and divisibility over ℤ #
Main definitions #
- Given
x y : ℕ,xgcd x ycomputes the pair of integers(a, b)such thatgcd x y = x * a + y * b.gcdA x yandgcdB x yare defined to beaandb, respectively.
Main statements #
gcd_eq_gcd_ab: Bézout's lemma, givenx y : ℕ,gcd x y = x * gcdA x y + y * gcdB x y.
Tags #
Bézout's lemma, Bezout's lemma
Extended Euclidean algorithm #
Divisibility over ℤ #
@[deprecated Int.dvd_coe_gcd (since := "2025-04-27")]
Alias of Int.dvd_coe_gcd.
lcm #
@[deprecated Int.coe_lcm_dvd (since := "2025-04-27")]
Alias of Int.coe_lcm_dvd.