{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "09YBMJTNBM"
    },
    {
      "field": "uses",
      "target": "0ESHD7ZQDX"
    },
    {
      "field": "uses",
      "target": "0R9D4CEJEB"
    }
  ],
  "body": "\n## Statement\n\nLet $n$ be a positive integer, let $a$ and $b$ be integers, and let $k$ be a natural number.\nIf $a \\equiv b \\pmod n$, then $a^k \\equiv b^k \\pmod n$.\n\n## Remarks\n\nThe proof is an induction on $k$ with [[compatibility with multiplication|072D5G4SK6]].\nThe exponent cannot be reduced modulo $n$ in general. For example, $2^5 = 32 \\equiv 2 \\pmod 3$, but $2^{5 \\bmod 3} = 2^2 \\equiv 1 \\pmod 3$.\n[[Euler's theorem|0VC4DVE7DQ]] tells when one can reduce the exponent, and by which modulus.\n\n## Explanations\n\n### L1 human\n\nTo find $10^{100} \\bmod 9$, note that $10 \\equiv 1 \\pmod 9$.\nSo $10^{100} \\equiv 1^{100} = 1 \\pmod 9$, without a computation of the large number.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "11A07"
    ],
    "name": "Congruence is compatible with powers",
    "role": "corollary",
    "sources": [
      {
        "locator": "Basic properties",
        "url": "https://en.wikipedia.org/wiki/Modular_arithmetic"
      }
    ],
    "tag": "0J5VGJYYC3",
    "uses": [
      "0TPW25CBN6",
      "072D5G4SK6"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0J5VGJYYC3/",
  "links": [
    {
      "field": "uses",
      "target": "0TPW25CBN6"
    },
    {
      "field": "uses",
      "target": "072D5G4SK6"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0J5VGJYYC3.md",
  "msc": [
    "11A07"
  ],
  "name": "Congruence is compatible with powers",
  "prov": null,
  "role": "corollary",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0J5/0J5VGJYYC3.md",
  "status": null,
  "tag": "0J5VGJYYC3",
  "uri": "m2://0J5VGJYYC3",
  "url": "https://math2.tamnd.com/wiki/congruence-is-compatible-with-powers/",
  "writing": {
    "tag": "0J5VGJYYC3",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
