{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $\\alpha$ be a real number, and let $p$ and $q$ be positive integers such that\n$$\\left| \\alpha - \\frac{p}{q} \\right| \u003c \\frac{1}{2 q^2}.$$\nThen $p / q$ is a [[convergent|0SRWNR42BQ]] of the [[continued fraction expansion|0SJ7Z6VKWK]] of $\\alpha$.\n\n## Remarks\n\nSo the very good rational approximations of $\\alpha$ are all convergents.\nThe constant $\\frac{1}{2}$ cannot be replaced by $1$: not every fraction with $\\left| \\alpha - \\frac{p}{q} \\right| \u003c \\frac{1}{q^2}$ is a convergent.\nA use: it shows that the solutions of [[Pell's equation|0AF3DANJ76]] come from the convergents of $\\sqrt{d}$.\n\n## History\n\nAdrien-Marie Legendre proved the theorem in his Essai sur la théorie des nombres of 1798.\n\n## Explanations\n\n### L1 human\n\nIf a fraction is extremely close to $\\alpha$, then the continued fraction algorithm finds it.\nSo to look for the best approximations of a number, you only need to compute its convergents.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "kind": "statement",
    "msc": [
      "11J70"
    ],
    "name": "Legendre's theorem on continued fractions",
    "role": "theorem",
    "sources": [
      {
        "locator": "Legendre's theorem on continued fractions",
        "url": "https://en.wikipedia.org/wiki/Simple_continued_fraction"
      }
    ],
    "tag": "0JXTQ392ZM",
    "uses": [
      "0SRWNR42BQ",
      "0SJ7Z6VKWK"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0JXTQ392ZM/",
  "links": [
    {
      "field": "uses",
      "target": "0SRWNR42BQ"
    },
    {
      "field": "uses",
      "target": "0SJ7Z6VKWK"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0JXTQ392ZM.md",
  "msc": [
    "11J70"
  ],
  "name": "Legendre's theorem on continued fractions",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0JX/0JXTQ392ZM.md",
  "status": null,
  "tag": "0JXTQ392ZM",
  "uri": "m2://0JXTQ392ZM",
  "url": "https://math2.tamnd.com/wiki/legendres-theorem-on-continued-fractions/",
  "writing": {
    "tag": "0JXTQ392ZM",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
