{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $n$ be a positive integer, and let $a$, $b$ and $c$ be integers. Let $d = \\gcd(c, n)$.\nIf $c a \\equiv c b \\pmod n$, then $a \\equiv b \\pmod{n / d}$.\n\n## Remarks\n\nIn particular, if $c$ and $n$ are [[coprime|0GFKP8F8AG]], then $c a \\equiv c b \\pmod n$ implies $a \\equiv b \\pmod n$.\nThe modulus can become smaller. For example, $2 \\cdot 1 \\equiv 2 \\cdot 4 \\pmod 6$, but $1 \\not\\equiv 4 \\pmod 6$. Here $d = 2$, and indeed $1 \\equiv 4 \\pmod 3$.\nThe proof: $n \\mid c (a - b)$ gives $\\frac{n}{d} \\mid \\frac{c}{d} (a - b)$. Since $n / d$ and $c / d$ are coprime, the [[generalized Euclid's lemma|03BAREW1Z5]] gives $\\frac{n}{d} \\mid a - b$.\n\n## Explanations\n\n### L1 human\n\nYou can divide both sides of a congruence by a number that has no common factor with the modulus.\nIf the number shares a factor with the modulus, you must also divide the modulus by that common factor.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "11A07"
    ],
    "name": "Cancellation in congruences",
    "role": "proposition",
    "sources": [
      {
        "locator": "Basic properties",
        "url": "https://en.wikipedia.org/wiki/Modular_arithmetic"
      }
    ],
    "tag": "09RDZZGJZ9",
    "uses": [
      "0TPW25CBN6",
      "02WF878BH1",
      "03BAREW1Z5"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/09RDZZGJZ9/",
  "links": [
    {
      "field": "uses",
      "target": "0TPW25CBN6"
    },
    {
      "field": "uses",
      "target": "02WF878BH1"
    },
    {
      "field": "uses",
      "target": "03BAREW1Z5"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/09RDZZGJZ9.md",
  "msc": [
    "11A07"
  ],
  "name": "Cancellation in congruences",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/09R/09RDZZGJZ9.md",
  "status": null,
  "tag": "09RDZZGJZ9",
  "uri": "m2://09RDZZGJZ9",
  "url": "https://math2.tamnd.com/wiki/cancellation-in-congruences/",
  "writing": {
    "tag": "09RDZZGJZ9",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
