{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\n1. Let $n$ be a positive integer, and let $a, b, c, d$ be integers with $a \\equiv b \\pmod n$ and $c \\equiv d \\pmod n$.\n2. By the definition of [[congruence modulo n|0TPW25CBN6]], $n$ [[divides|096PW7Q014]] $a - b$ and $n$ divides $c - d$. So there are integers $s$ and $t$ with $a - b = n s$ and $c - d = n t$.\n3. Expanding gives $a (c - d) + d (a - b) = a c - a d + a d - b d = a c - b d$.\n4. By steps 2 and 3, $a c - b d = a n t + d n s = n (a t + d s)$.\n5. Since $a t + d s$ is an integer, $n$ divides $a c - b d$.\n6. Hence $a c \\equiv b d \\pmod n$.\n\n## Idea\n\nChange one factor at a time: first replace $c$ by $d$, then $a$ by $b$. Each change alters the product by a multiple of $n$, because the change in the factor is a multiple of $n$.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "methods": [
      "0NTF6DMVAP"
    ],
    "msc": [
      "11A07"
    ],
    "name": "Proof that congruence is compatible with multiplication",
    "proves": "072D5G4SK6",
    "sources": [
      {
        "locator": "Basic properties",
        "url": "https://en.wikipedia.org/wiki/Modular_arithmetic"
      }
    ],
    "tag": "N1N8WBSARF",
    "uses": [
      "0TPW25CBN6",
      "096PW7Q014"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/N1N8WBSARF/",
  "links": [
    {
      "field": "proves",
      "target": "072D5G4SK6"
    },
    {
      "field": "uses",
      "target": "0TPW25CBN6"
    },
    {
      "field": "uses",
      "target": "096PW7Q014"
    },
    {
      "field": "methods",
      "target": "0NTF6DMVAP"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/N1N8WBSARF.md",
  "msc": [
    "11A07"
  ],
  "name": "Proof that congruence is compatible with multiplication",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/N1N/N1N8WBSARF.md",
  "status": null,
  "tag": "N1N8WBSARF",
  "uri": "m2://N1N8WBSARF",
  "url": "https://math2.tamnd.com/wiki/proof-that-congruence-is-compatible-with-multiplication/",
  "writing": {
    "tag": "N1N8WBSARF",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
