Bezout Identity Calculator

Find integers x and y satisfying Bezout's identity: ax + by = gcd(a, b).

Enter Numbers

Bezout's Identity Theorem

For any integers a and b (not both zero), there exist integers x and y such that:

ax + by = gcd(a, b)

The coefficients x and y are called Bezout coefficients.

Properties

  • Bezout coefficients are not unique
  • If (x₀, y₀) is a solution, all solutions are:
  • x = x₀ + (b/d)k
  • y = y₀ - (a/d)k
  • where d = gcd(a, b) and k is any integer

Bezout Identity

35(1) + 15(-2) = 5

GCD
5
x
1
y
-2

General Solution

x = 1 + 3k

y = -2 - 7k

where k is any integer

Sample Coefficient Pairs

kxyax+by
-5-14335
-4-11265
-3-8195
-2-5125
-1-255
01-25
14-95
27-165
310-235
413-305
516-375

Verification

35 × (1) + 15 × (-2) = 5

Identity verified