{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "04SJTX9P4N"
    },
    {
      "field": "uses",
      "target": "0FSJA9M43W"
    }
  ],
  "body": "\n## Statement\n\nLet $n_1, \\dots, n_k$ be positive integers that are pairwise [[coprime|0GFKP8F8AG]], and let $N = n_1 n_2 \\cdots n_k$.\nLet $a_1, \\dots, a_k$ be integers.\nThen there is an integer $x$ such that $x \\equiv a_i \\pmod{n_i}$ for each $i$.\nTwo such integers are congruent modulo $N$.\n\n## Remarks\n\nIn the language of rings, the map $\\mathbb{Z}/N\\mathbb{Z} \\to \\mathbb{Z}/n_1\\mathbb{Z} \\times \\cdots \\times \\mathbb{Z}/n_k\\mathbb{Z}$, $\\overline{x} \\mapsto (\\overline{x}, \\dots, \\overline{x})$, is a ring isomorphism.\nFor two moduli $m$ and $n$, write $m u + n v = 1$ with [[Bézout's identity|0DQVHMYAGA]]. Then $x = a_2 m u + a_1 n v$ solves $x \\equiv a_1 \\pmod m$ and $x \\equiv a_2 \\pmod n$.\nThe [[Chinese remainder theorem for non-coprime moduli|04SJTX9P4N]] removes the hypothesis of coprimality.\n\n## History\n\nThe Chinese book Sunzi Suanjing, from the 5th century, contains the oldest known example of the problem. Qin Jiushao gave a complete method in 1247.\n\n## Explanations\n\n### L1 human\n\nFind a number that leaves the remainder $2$ when you divide by $3$, the remainder $3$ by $5$, and the remainder $2$ by $7$.\nThe theorem says that such a number exists, and that it is unique up to multiples of $3 \\cdot 5 \\cdot 7 = 105$.\nThe smallest positive answer is $23$.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "kind": "statement",
    "msc": [
      "11A07"
    ],
    "name": "Chinese remainder theorem",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q193878",
      "wikipedia": "Chinese remainder theorem"
    },
    "sources": [
      {
        "locator": "Statement",
        "url": "https://en.wikipedia.org/wiki/Chinese_remainder_theorem"
      }
    ],
    "tag": "0FNN9B4W64",
    "uses": [
      "0TPW25CBN6",
      "0GFKP8F8AG"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0FNN9B4W64/",
  "links": [
    {
      "field": "uses",
      "target": "0TPW25CBN6"
    },
    {
      "field": "uses",
      "target": "0GFKP8F8AG"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0FNN9B4W64.md",
  "msc": [
    "11A07"
  ],
  "name": "Chinese remainder theorem",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0FN/0FNN9B4W64.md",
  "status": null,
  "tag": "0FNN9B4W64",
  "uri": "m2://0FNN9B4W64",
  "url": "https://math2.tamnd.com/wiki/chinese-remainder-theorem/",
  "writing": {
    "tag": "0FNN9B4W64",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
