{
  "aliases": [
    "euclid-formula"
  ],
  "backlinks": null,
  "body": "\n## Statement\n\nLet $m$ and $n$ be [[coprime|0GFKP8F8AG]] positive integers with $m \u003e n$ and $m - n$ odd.\nThen $(m^2 - n^2, \\, 2mn, \\, m^2 + n^2)$ is a primitive [[Pythagorean triple|01G1WY1GVX]].\nConversely, each primitive Pythagorean triple $(a, b, c)$ with $b$ even arises in this way from exactly one such pair $(m, n)$.\nEach Pythagorean triple is $(ka, kb, kc)$ for a positive integer $k$ and a primitive triple $(a, b, c)$, up to the order of the first two entries.\n\n## Remarks\n\nThe formula is called Euclid's formula.\nFor example, $(m, n) = (2, 1)$ gives $(3, 4, 5)$, and $(m, n) = (3, 2)$ gives $(5, 12, 13)$.\nOne proof writes $b^2 = (c - a)(c + a)$ and uses unique factorization. Another uses the rational points on the unit circle.\n\n## Explanations\n\n### L1 human\n\nEuclid's formula produces every right triangle with whole-number sides, from two numbers $m$ and $n$.\nThe identity $(m^2 - n^2)^2 + (2mn)^2 = (m^2 + n^2)^2$ shows that the formula always works.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "aliases": [
      "euclid-formula"
    ],
    "kind": "statement",
    "msc": [
      "11D09"
    ],
    "name": "Classification of Pythagorean triples",
    "role": "theorem",
    "sources": [
      {
        "locator": "Generating a triple",
        "url": "https://en.wikipedia.org/wiki/Pythagorean_triple"
      }
    ],
    "tag": "0KF3J2KAER",
    "uses": [
      "01G1WY1GVX",
      "0GFKP8F8AG"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0KF3J2KAER/",
  "links": [
    {
      "field": "uses",
      "target": "01G1WY1GVX"
    },
    {
      "field": "uses",
      "target": "0GFKP8F8AG"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0KF3J2KAER.md",
  "msc": [
    "11D09"
  ],
  "name": "Classification of Pythagorean triples",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0KF/0KF3J2KAER.md",
  "status": null,
  "tag": "0KF3J2KAER",
  "uri": "m2://0KF3J2KAER",
  "url": "https://math2.tamnd.com/wiki/classification-of-pythagorean-triples/",
  "writing": {
    "tag": "0KF3J2KAER",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
