{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nThe [[ring of integers|0JHM6JK7FD]] $\\mathbb{Z}$ is a [[Euclidean domain|0GJ2HRG95T]], with the absolute value $\\delta(n) = |n|$ as Euclidean function.\nThat is, for all $a, b \\in \\mathbb{Z}$ with $b \\neq 0$, there are $q, r \\in \\mathbb{Z}$ with $a = b q + r$ and $0 \\le r \u003c |b|$.\n\n## Remarks\n\nThe proof: let $r$ be the least element of $\\{a - b q : q \\in \\mathbb{Z}\\} \\cap \\mathbb{N}$. Then $r \u003c |b|$, because otherwise $r - |b|$ would be a smaller element of this set.\nThe pair $(q, r)$ with $0 \\le r \u003c |b|$ is unique.\nConsequences: $\\mathbb{Z}$ is a [[principal ideal domain|0RZYDVZ475]], and integers factor uniquely into primes.\n\n## Explanations\n\n### L1 human\n\nThis is division with remainder from school, made precise.\nDividing $17$ by $5$ gives $17 = 3 \\cdot 5 + 2$, and the remainder $2$ is smaller than $5$.\nIt works for negative numbers too: $-17 = (-4) \\cdot 5 + 3$.\n",
  "commit": "15acc1e7dab72d7006dda8aea79ffe6808556165",
  "front": {
    "kind": "statement",
    "msc": [
      "11A05"
    ],
    "name": "The integers are a Euclidean domain",
    "role": "theorem",
    "sources": [
      {
        "locator": "Examples",
        "url": "https://en.wikipedia.org/wiki/Euclidean_domain"
      }
    ],
    "tag": "000JFQGDXG",
    "uses": [
      "0GJ2HRG95T",
      "0JHM6JK7FD"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/000JFQGDXG/",
  "links": [
    {
      "field": "uses",
      "target": "0GJ2HRG95T"
    },
    {
      "field": "uses",
      "target": "0JHM6JK7FD"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/000JFQGDXG.md",
  "msc": [
    "11A05"
  ],
  "name": "The integers are a Euclidean domain",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/000/000JFQGDXG.md",
  "status": null,
  "tag": "000JFQGDXG",
  "uri": "m2://000JFQGDXG",
  "url": "https://math2.tamnd.com/wiki/the-integers-are-a-euclidean-domain/",
  "writing": {
    "tag": "000JFQGDXG",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
