extended_gcd
Compute the extended GCD of two integers to get Bézout coefficients and an optional modular inverse for solving Diophantine equations and modular arithmetic problems.
Instructions
Compute the extended GCD of two integers, returning Bezout coefficients and optionally the modular inverse.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First integer | |
| b | Yes | Second integer |