{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nAn infinite [[simple continued fraction|06XF7BCFFJ]] $[a_0; a_1, a_2, \\dots]$ is periodic if there are integers $N \\ge 0$ and $k \\ge 1$ with $a_{n+k} = a_n$ for all $n \\ge N$.\nIt is purely periodic if this holds with $N = 0$.\n\n## Remarks\n\nOne writes the repeating block with a bar, for example $\\sqrt{2} = [1; \\overline{2}]$ and $\\sqrt{3} = [1; \\overline{1, 2}]$.\nBy theorems of Euler and Lagrange, a real number has a periodic continued fraction if and only if it is a quadratic irrational. That is, it is an irrational root of a quadratic equation with integer coefficients.\nThe period of $\\sqrt{d}$ gives the [[fundamental solution of Pell's equation|0KCYJSB9FW]].\n\n## Explanations\n\n### L1 human\n\nA periodic continued fraction repeats the same block of terms forever.\nThe golden ratio $[1; 1, 1, 1, \\dots]$ is the simplest example.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "defines": "01GBHQ5ABF",
    "kind": "definition",
    "msc": [
      "11A55"
    ],
    "name": "Periodic continued fraction",
    "sources": [
      {
        "locator": "Purely periodic and periodic fractions",
        "url": "https://en.wikipedia.org/wiki/Periodic_continued_fraction"
      }
    ],
    "tag": "0XKJPFS2W0",
    "uses": [
      "06XF7BCFFJ"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0XKJPFS2W0/",
  "links": [
    {
      "field": "defines",
      "target": "01GBHQ5ABF"
    },
    {
      "field": "uses",
      "target": "06XF7BCFFJ"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0XKJPFS2W0.md",
  "msc": [
    "11A55"
  ],
  "name": "Periodic continued fraction",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0XK/0XKJPFS2W0.md",
  "status": null,
  "tag": "0XKJPFS2W0",
  "uri": "m2://0XKJPFS2W0",
  "url": "https://math2.tamnd.com/wiki/periodic-continued-fraction-definition/",
  "writing": {
    "tag": "0XKJPFS2W0",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
