{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe argue by induction on $k$.\n\n1. Let $n$ be a positive integer, and let $a$ and $b$ be integers with $a \\equiv b \\pmod n$.\n2. Base case $k = 0$: we have $a^0 = 1 = b^0$. Since $n$ [[divides|096PW7Q014]] $1 - 1 = 0$, we get $a^0 \\equiv b^0 \\pmod n$ by the definition of [[congruence|0TPW25CBN6]].\n3. Induction step: let $k \\ge 0$ and assume $a^k \\equiv b^k \\pmod n$.\n4. By step 3, by step 1 and by [[compatibility with multiplication|072D5G4SK6]], $a^k \\cdot a \\equiv b^k \\cdot b \\pmod n$.\n5. That is, $a^{k+1} \\equiv b^{k+1} \\pmod n$.\n6. By steps 2 to 5 and induction, $a^k \\equiv b^k \\pmod n$ for each natural number $k$.\n\n## Idea\n\nA power is a repeated product. Each new factor $a$ can be replaced by $b$ without changing the class modulo $n$, by compatibility with multiplication, so induction on the exponent finishes the proof.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "methods": [
      "0ASJVEFA9J"
    ],
    "msc": [
      "11A07"
    ],
    "name": "Proof that congruence is compatible with powers",
    "proves": "0J5VGJYYC3",
    "sources": [
      {
        "locator": "Basic properties",
        "url": "https://en.wikipedia.org/wiki/Modular_arithmetic"
      }
    ],
    "tag": "YK00FKQ8MZ",
    "uses": [
      "0TPW25CBN6",
      "096PW7Q014",
      "072D5G4SK6"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/YK00FKQ8MZ/",
  "links": [
    {
      "field": "proves",
      "target": "0J5VGJYYC3"
    },
    {
      "field": "uses",
      "target": "0TPW25CBN6"
    },
    {
      "field": "uses",
      "target": "096PW7Q014"
    },
    {
      "field": "uses",
      "target": "072D5G4SK6"
    },
    {
      "field": "methods",
      "target": "0ASJVEFA9J"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/YK00FKQ8MZ.md",
  "msc": [
    "11A07"
  ],
  "name": "Proof that congruence is compatible with powers",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/YK0/YK00FKQ8MZ.md",
  "status": null,
  "tag": "YK00FKQ8MZ",
  "uri": "m2://YK00FKQ8MZ",
  "url": "https://math2.tamnd.com/wiki/proof-that-congruence-is-compatible-with-powers/",
  "writing": {
    "tag": "YK00FKQ8MZ",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
