{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $p$ be a [[prime number|0SN0MAEKYX]].\nThen $\\varphi(p) = p - 1$, where $\\varphi$ is [[Euler's totient function|0VV04M41AN]].\n\n## Remarks\n\nThe proof: the only divisors of $p$ are $1$ and $p$. So each of $1, \\dots, p - 1$ is coprime to $p$, and $p$ is not.\nThe converse holds: if $n \u003e 1$ and $\\varphi(n) = n - 1$, then $n$ is prime.\nThe result is the case $k = 1$ of the [[totient of a prime power|0AVY8HKBGD]].\n\n## Explanations\n\n### L1 human\n\nFor a prime $p$, each number from $1$ to $p - 1$ has no common factor with $p$.\nFor example, $\\varphi(7) = 6$, because $1, 2, 3, 4, 5, 6$ are all coprime to $7$.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "11A25"
    ],
    "name": "Totient of a prime",
    "role": "proposition",
    "sources": [
      {
        "locator": "Value of phi for a prime power argument",
        "url": "https://en.wikipedia.org/wiki/Euler%27s_totient_function"
      }
    ],
    "tag": "0HY1MXMEN9",
    "uses": [
      "0VV04M41AN",
      "0SN0MAEKYX"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0HY1MXMEN9/",
  "links": [
    {
      "field": "uses",
      "target": "0VV04M41AN"
    },
    {
      "field": "uses",
      "target": "0SN0MAEKYX"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0HY1MXMEN9.md",
  "msc": [
    "11A25"
  ],
  "name": "Totient of a prime",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0HY/0HY1MXMEN9.md",
  "status": null,
  "tag": "0HY1MXMEN9",
  "uri": "m2://0HY1MXMEN9",
  "url": "https://math2.tamnd.com/wiki/totient-of-a-prime/",
  "writing": {
    "tag": "0HY1MXMEN9",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
