{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $p$ be a [[prime number|0SN0MAEKYX]], and let $a$ be an integer with $p \\nmid a$.\nThen the [[multiplicative order|0SBRX5CZ5R]] of $a$ modulo $p$ divides $p - 1$.\n\n## Remarks\n\nThe proof: $a^{p-1} \\equiv 1 \\pmod p$ by [[Fermat's little theorem|0M25PRN3WQ]], and each exponent $m$ with $a^m \\equiv 1$ is a multiple of the order.\nThe order is equal to $p - 1$ exactly when $a$ is a [[primitive root|0KM2CJ80G7]] modulo $p$.\nFor example, modulo $13$, the order of $3$ is $3$ and the order of $2$ is $12$. Both divide $12$.\n\n## Explanations\n\n### L1 human\n\nThe powers of $a$ modulo $p$ go round a cycle. The length of the cycle always divides $p - 1$.\nModulo $11$, the powers of $5$ are $5, 3, 4, 9, 1$. The cycle has length $5$, and $5 \\mid 10$.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "11A07"
    ],
    "name": "The order modulo p divides p − 1",
    "role": "corollary",
    "sources": [
      {
        "locator": "Properties",
        "url": "https://en.wikipedia.org/wiki/Multiplicative_order"
      }
    ],
    "tag": "0Y4B7P0GS8",
    "uses": [
      "0SBRX5CZ5R",
      "0M25PRN3WQ"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0Y4B7P0GS8/",
  "links": [
    {
      "field": "uses",
      "target": "0SBRX5CZ5R"
    },
    {
      "field": "uses",
      "target": "0M25PRN3WQ"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0Y4B7P0GS8.md",
  "msc": [
    "11A07"
  ],
  "name": "The order modulo p divides p − 1",
  "prov": null,
  "role": "corollary",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0Y4/0Y4B7P0GS8.md",
  "status": null,
  "tag": "0Y4B7P0GS8",
  "uri": "m2://0Y4B7P0GS8",
  "url": "https://math2.tamnd.com/wiki/the-order-modulo-p-divides-p-1/",
  "writing": {
    "tag": "0Y4B7P0GS8",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
