{
  "aliases": [
    "euclidean-division",
    "division-with-remainder"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "04FHQSJCQ5"
    },
    {
      "field": "uses",
      "target": "0SPYEFH7H4"
    }
  ],
  "body": "\n## Statement\n\nLet $a$ and $b$ be integers with $b \\neq 0$.\nThen there is exactly one pair of integers $(q, r)$ such that $a = b q + r$ and $0 \\le r \u003c |b|$.\n\n## Remarks\n\nThe integer $q$ is the quotient and the integer $r$ is the remainder of the division of $a$ by $b$.\nThe remainder is $0$ if and only if $b$ [[divides|096PW7Q014]] $a$.\nFor example, $-7 = 3 \\cdot (-3) + 2$, so the quotient of $-7$ by $3$ is $-3$ and the remainder is $2$.\n\n## Explanations\n\n### L1 human\n\nYou can share $a$ objects into groups of $b$ objects, with some objects left over.\nThe theorem says that the number of full groups and the rest are unique, if the rest is smaller than $|b|$.\nFor example, $17 = 5 \\cdot 3 + 2$: you get $3$ groups of $5$, and $2$ objects stay.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "euclidean-division",
      "division-with-remainder"
    ],
    "kind": "statement",
    "msc": [
      "11A05"
    ],
    "name": "Division algorithm",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q181054",
      "wikipedia": "Euclidean division"
    },
    "sources": [
      {
        "locator": "Division theorem",
        "url": "https://en.wikipedia.org/wiki/Euclidean_division"
      }
    ],
    "tag": "0CHQKZFK5S",
    "uses": [
      "096PW7Q014"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0CHQKZFK5S/",
  "links": [
    {
      "field": "uses",
      "target": "096PW7Q014"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0CHQKZFK5S.md",
  "msc": [
    "11A05"
  ],
  "name": "Division algorithm",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0CH/0CHQKZFK5S.md",
  "status": null,
  "tag": "0CHQKZFK5S",
  "uri": "m2://0CHQKZFK5S",
  "url": "https://math2.tamnd.com/wiki/division-algorithm/",
  "writing": {
    "tag": "0CHQKZFK5S",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
