{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $d$ be a positive integer that is not a perfect square, and let $(x_1, y_1)$ be the [[fundamental solution|0KCYJSB9FW]] of $x^2 - d y^2 = 1$.\nLet $x$ and $y$ be integers with $x \\ge 1$, $y \\ge 0$ and $x^2 - d y^2 = 1$.\nThen there is a unique natural number $n$ with $x + y \\sqrt{d} = (x_1 + y_1 \\sqrt{d})^n$.\n\n## Remarks\n\nConversely, each power $(x_1 + y_1 \\sqrt{d})^n = x_n + y_n \\sqrt{d}$ gives a solution $(x_n, y_n)$.\nThe integer solutions are exactly the pairs with $x + y \\sqrt{d} = \\pm (x_1 + y_1 \\sqrt{d})^n$ for $n \\in \\mathbb{Z}$.\nFor $d = 2$: $(3 + 2\\sqrt{2})^2 = 17 + 12 \\sqrt{2}$, so $(17, 12)$ is the next solution after $(3, 2)$.\nIn algebraic terms, the units of norm $1$ in $\\mathbb{Z}[\\sqrt{d}]$ form the group $\\{\\pm 1\\} \\times \\mathbb{Z}$.\n\n## Explanations\n\n### L1 human\n\nOnce you know the smallest solution, you get all the others by taking powers.\nExpand $(x_1 + y_1 \\sqrt{d})^n$ and read the integer part and the coefficient of $\\sqrt{d}$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "11D09"
    ],
    "name": "Solutions of Pell's equation are powers of the fundamental solution",
    "role": "theorem",
    "sources": [
      {
        "locator": "Additional solutions from the fundamental solution",
        "url": "https://en.wikipedia.org/wiki/Pell%27s_equation"
      }
    ],
    "tag": "0J1TT091TN",
    "uses": [
      "0AF3DANJ76",
      "0KCYJSB9FW"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0J1TT091TN/",
  "links": [
    {
      "field": "uses",
      "target": "0AF3DANJ76"
    },
    {
      "field": "uses",
      "target": "0KCYJSB9FW"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0J1TT091TN.md",
  "msc": [
    "11D09"
  ],
  "name": "Solutions of Pell's equation are powers of the fundamental solution",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0J1/0J1TT091TN.md",
  "status": null,
  "tag": "0J1TT091TN",
  "uri": "m2://0J1TT091TN",
  "url": "https://math2.tamnd.com/wiki/solutions-of-pells-equation-are-powers-of-the-fundamental-solution/",
  "writing": {
    "tag": "0J1TT091TN",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
