{
  "aliases": [
    "complete-system-of-residues"
  ],
  "backlinks": null,
  "body": "\n## Definition\n\nLet $n$ be a positive integer.\nA complete residue system modulo $n$ is a set $S$ of integers that contains exactly one element of each [[residue class|0QRV8FPK5M]] modulo $n$.\n\n## Remarks\n\nEquivalently, $S$ has exactly $n$ elements, and no two distinct elements of $S$ are congruent modulo $n$.\nThe set $\\{0, 1, \\dots, n - 1\\}$ is the set of the least nonnegative residues. It is a complete residue system modulo $n$.\nFor odd $n$, the set $\\{ -\\tfrac{n-1}{2}, \\dots, -1, 0, 1, \\dots, \\tfrac{n-1}{2} \\}$ of the least absolute residues is also a complete residue system.\nIf $S$ is a complete residue system modulo $n$ and $\\gcd(a, n) = 1$, then $\\{ a s + b : s \\in S \\}$ is also a complete residue system for each integer $b$.\n\n## Explanations\n\n### L1 human\n\nA complete residue system picks one representative from each box of the integers modulo $n$.\nFor $n = 4$, both $\\{0, 1, 2, 3\\}$ and $\\{4, -3, 10, 7\\}$ are complete residue systems.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "complete-system-of-residues"
    ],
    "defines": "0GPBVKE31D",
    "kind": "definition",
    "msc": [
      "11A07"
    ],
    "name": "Complete residue system",
    "sources": [
      {
        "locator": "Residue systems",
        "url": "https://en.wikipedia.org/wiki/Modular_arithmetic"
      }
    ],
    "tag": "0E22JKS4W4",
    "uses": [
      "0QRV8FPK5M"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0E22JKS4W4/",
  "links": [
    {
      "field": "defines",
      "target": "0GPBVKE31D"
    },
    {
      "field": "uses",
      "target": "0QRV8FPK5M"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0E22JKS4W4.md",
  "msc": [
    "11A07"
  ],
  "name": "Complete residue system",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0E2/0E22JKS4W4.md",
  "status": null,
  "tag": "0E22JKS4W4",
  "uri": "m2://0E22JKS4W4",
  "url": "https://math2.tamnd.com/wiki/complete-residue-system-definition/",
  "writing": {
    "tag": "0E22JKS4W4",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
