{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe use Bézout's identity.\n\n1. Let $n$, $a$ and $b$ be integers with $n \\mid ab$, and let $n$ and $a$ be [[coprime|0GFKP8F8AG]], so $\\gcd(n, a) = 1$.\n2. By [[Bézout's identity|0DQVHMYAGA]], there are integers $x$ and $y$ with $n x + a y = 1$.\n3. Multiplying by $b$ gives $b = n b x + a b y$.\n4. Since $n$ [[divides|096PW7Q014]] $ab$, there is an integer $k$ with $ab = n k$. Then $a b y = n k y$.\n5. So $b = n b x + n k y = n (b x + k y)$, and $b x + k y$ is an integer.\n6. Hence $n \\mid b$.\n\n## Idea\n\nCoprimality gives $nx + ay = 1$. Multiplying by $b$ writes $b$ as a sum of two multiples of $n$: one is visibly a multiple, and the other is a multiple of $ab$.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "11A05"
    ],
    "name": "Proof of the generalized Euclid's lemma",
    "proves": "03BAREW1Z5",
    "sources": [
      {
        "locator": "Proofs",
        "url": "https://en.wikipedia.org/wiki/Euclid%27s_lemma"
      }
    ],
    "tag": "3JF4PFZFYZ",
    "uses": [
      "0GFKP8F8AG",
      "0DQVHMYAGA",
      "096PW7Q014"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/3JF4PFZFYZ/",
  "links": [
    {
      "field": "proves",
      "target": "03BAREW1Z5"
    },
    {
      "field": "uses",
      "target": "0GFKP8F8AG"
    },
    {
      "field": "uses",
      "target": "0DQVHMYAGA"
    },
    {
      "field": "uses",
      "target": "096PW7Q014"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/3JF4PFZFYZ.md",
  "msc": [
    "11A05"
  ],
  "name": "Proof of the generalized Euclid's lemma",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/3JF/3JF4PFZFYZ.md",
  "status": null,
  "tag": "3JF4PFZFYZ",
  "uri": "m2://3JF4PFZFYZ",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-generalized-euclids-lemma/",
  "writing": {
    "tag": "3JF4PFZFYZ",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
