{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nThe ring of [[Gaussian integers|0K5W69AC0J]] $\\mathbb{Z}[i]$ is a [[Euclidean domain|0GJ2HRG95T]], with the [[norm|03AN1V4ZFJ]] $N(a + b i) = a^2 + b^2$ as Euclidean function.\nThat is, for all $z, w \\in \\mathbb{Z}[i]$ with $w \\neq 0$, there are $q, r \\in \\mathbb{Z}[i]$ with $z = q w + r$ and $N(r) \u003c N(w)$.\n\n## Remarks\n\nThe proof: write $z / w = x + y i$ in $\\mathbb{C}$. Let $q = m + n i$, where $m$ and $n$ are integers nearest to $x$ and $y$.\nThen $|z/w - q|^2 \\le \\tfrac{1}{4} + \\tfrac{1}{4} = \\tfrac{1}{2}$, so $r = z - q w$ has $N(r) \\le \\tfrac{1}{2} N(w) \u003c N(w)$.\nA consequence is that $\\mathbb{Z}[i]$ is a principal ideal domain and a unique factorization domain.\n\n## Explanations\n\n### L1 human\n\nTo divide $z$ by $w$, compute the complex quotient and round both coordinates to the nearest integer.\nThe rounding error is small, so the remainder is smaller than $w$ in norm.\nThis makes the Euclidean algorithm work for Gaussian integers.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "11R11"
    ],
    "name": "The Gaussian integers are a Euclidean domain",
    "role": "theorem",
    "sources": [
      {
        "locator": "Euclidean division",
        "url": "https://en.wikipedia.org/wiki/Gaussian_integer"
      }
    ],
    "tag": "0PN13BB7BT",
    "uses": [
      "0K5W69AC0J",
      "03AN1V4ZFJ",
      "0GJ2HRG95T"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0PN13BB7BT/",
  "links": [
    {
      "field": "uses",
      "target": "0K5W69AC0J"
    },
    {
      "field": "uses",
      "target": "03AN1V4ZFJ"
    },
    {
      "field": "uses",
      "target": "0GJ2HRG95T"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0PN13BB7BT.md",
  "msc": [
    "11R11"
  ],
  "name": "The Gaussian integers are a Euclidean domain",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0PN/0PN13BB7BT.md",
  "status": null,
  "tag": "0PN13BB7BT",
  "uri": "m2://0PN13BB7BT",
  "url": "https://math2.tamnd.com/wiki/the-gaussian-integers-are-a-euclidean-domain/",
  "writing": {
    "tag": "0PN13BB7BT",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
