{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $p$ be a [[prime number|0SN0MAEKYX]] and let $a$ be an integer.\nThen $a^p \\equiv a \\pmod p$.\n\n## Remarks\n\nIf $p \\nmid a$, multiply [[Fermat's little theorem|0M25PRN3WQ]] $a^{p-1} \\equiv 1 \\pmod p$ by $a$. If $p \\mid a$, both sides are $0$ modulo $p$.\nConversely, this form implies the form $a^{p-1} \\equiv 1$: cancel $a$, which is allowed when $p \\nmid a$.\nIn the ring $\\mathbb{Z}/p\\mathbb{Z}$, the form says that $x^p = x$ for each element $x$.\n\n## Explanations\n\n### L1 human\n\nThe form $a^p \\equiv a$ needs no hypothesis on $a$.\nFor example, with $p = 3$: $0^3 = 0$, $1^3 = 1$, $2^3 = 8 \\equiv 2$, and $4^3 = 64 \\equiv 1 \\equiv 4 \\pmod 3$.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "11A07"
    ],
    "name": "Fermat's little theorem in the form a^p = a",
    "role": "corollary",
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Fermat%27s_little_theorem"
      }
    ],
    "tag": "0BMXWXDVJZ",
    "uses": [
      "0M25PRN3WQ"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0BMXWXDVJZ/",
  "links": [
    {
      "field": "uses",
      "target": "0M25PRN3WQ"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0BMXWXDVJZ.md",
  "msc": [
    "11A07"
  ],
  "name": "Fermat's little theorem in the form a^p = a",
  "prov": null,
  "role": "corollary",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0BM/0BMXWXDVJZ.md",
  "status": null,
  "tag": "0BMXWXDVJZ",
  "uri": "m2://0BMXWXDVJZ",
  "url": "https://math2.tamnd.com/wiki/fermats-little-theorem-in-the-form-a-p-a/",
  "writing": {
    "tag": "0BMXWXDVJZ",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
