{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0J1TT091TN"
    }
  ],
  "body": "\n## Definition\n\nLet $d$ be a positive integer that is not a perfect square.\nThe fundamental solution of [[Pell's equation|0AF3DANJ76]] $x^2 - d y^2 = 1$ is the solution $(x_1, y_1)$ with $x_1 \u003e 1$ and $y_1 \u003e 0$ such that $x_1$ is as small as possible.\n\n## Remarks\n\nThe fundamental solution exists by the [[existence of nontrivial solutions|0EM6C9SZN5]].\nAmong the solutions with $x \u003e 1$ and $y \u003e 0$, it also has the smallest $y$ and the smallest value of $x + y \\sqrt{d}$.\nFor example, the fundamental solution for $d = 2$ is $(3, 2)$, and for $d = 7$ it is $(8, 3)$.\nIt appears among the convergents of the continued fraction of $\\sqrt{d}$.\n\n## Explanations\n\n### L1 human\n\nThe fundamental solution is the smallest solution with positive entries.\nAll other solutions come from it by taking [[powers|0J1TT091TN]] of $x_1 + y_1 \\sqrt{d}$.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "defines": "0QG0Q3NDT9",
    "kind": "definition",
    "msc": [
      "11D09"
    ],
    "name": "Fundamental solution of Pell's equation",
    "sources": [
      {
        "locator": "Fundamental solution via continued fractions",
        "url": "https://en.wikipedia.org/wiki/Pell%27s_equation"
      }
    ],
    "tag": "0KCYJSB9FW",
    "uses": [
      "0AF3DANJ76",
      "0EM6C9SZN5"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0KCYJSB9FW/",
  "links": [
    {
      "field": "defines",
      "target": "0QG0Q3NDT9"
    },
    {
      "field": "uses",
      "target": "0AF3DANJ76"
    },
    {
      "field": "uses",
      "target": "0EM6C9SZN5"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0KCYJSB9FW.md",
  "msc": [
    "11D09"
  ],
  "name": "Fundamental solution of Pell's equation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0KC/0KCYJSB9FW.md",
  "status": null,
  "tag": "0KCYJSB9FW",
  "uri": "m2://0KCYJSB9FW",
  "url": "https://math2.tamnd.com/wiki/fundamental-solution-of-pells-equation-definition/",
  "writing": {
    "tag": "0KCYJSB9FW",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
