Assumptions:
TeX:
\gcd\!\left(a, b\right) = d = a u + b v\; \text{ where } \left(d, u, v\right) = \operatorname{xgcd}\!\left(a, b\right)
a \in \mathbb{Z} \,\mathbin{\operatorname{and}}\, b \in \mathbb{Z}Definitions:
| Fungrim symbol | Notation | Short description |
|---|---|---|
| GCD | Greatest common divisor | |
| XGCD | Extended greatest common divisor | |
| ZZ | Integers |
Source code for this entry:
Entry(ID("be5fcd"),
Formula(Where(Equal(GCD(a, b), d, Add(Mul(a, u), Mul(b, v))), Equal(Tuple(d, u, v), XGCD(a, b)))),
Variables(a, b),
Assumptions(And(Element(a, ZZ), Element(b, ZZ))))