{
  "aliases": [
    "bezout-lemma",
    "bezouts-lemma"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "0M67FWZWPQ"
    },
    {
      "field": "uses",
      "target": "0R8YXRC9AJ"
    }
  ],
  "body": "\n## Statement\n\nLet $a$ and $b$ be integers, and let $d = \\gcd(a, b)$ be their [[greatest common divisor|02WF878BH1]].\nThen there are integers $x$ and $y$ such that $a x + b y = d$.\n\n## Remarks\n\nThe integers $x$ and $y$ are not unique. If $(x, y)$ is a solution, then $(x + k b / d, \\; y - k a / d)$ is also a solution for each integer $k$, when $d \\neq 0$.\nThe set of all integers $a x + b y$ is the set of the multiples of $d$.\nThe [[extended Euclidean algorithm|0964YQFSA8]] computes one pair $(x, y)$.\nFor example, $\\gcd(12, 42) = 6$ and $12 \\cdot (-3) + 42 \\cdot 1 = 6$.\n\n## Explanations\n\n### L1 human\n\nWith coins of value $a$ and $b$, and if you can give and take back coins, you can pay exactly the amount $\\gcd(a, b)$.\nFor example, with coins of $4$ and $6$, you pay $2 = 2 \\cdot 4 - 1 \\cdot 6$.\nYou cannot pay $1$ this way, because each sum $4 x + 6 y$ is even.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "bezout-lemma",
      "bezouts-lemma"
    ],
    "kind": "statement",
    "msc": [
      "11A05"
    ],
    "name": "Bézout's identity",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q513028",
      "wikipedia": "Bézout's identity"
    },
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/B%C3%A9zout%27s_identity"
      }
    ],
    "tag": "0DQVHMYAGA",
    "uses": [
      "02WF878BH1"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0DQVHMYAGA/",
  "links": [
    {
      "field": "uses",
      "target": "02WF878BH1"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0DQVHMYAGA.md",
  "msc": [
    "11A05"
  ],
  "name": "Bézout's identity",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0DQ/0DQVHMYAGA.md",
  "status": null,
  "tag": "0DQVHMYAGA",
  "uri": "m2://0DQVHMYAGA",
  "url": "https://math2.tamnd.com/wiki/bezouts-identity/",
  "writing": {
    "tag": "0DQVHMYAGA",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
