{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $p$ be a [[prime number|0SN0MAEKYX]] and let $k$ be a positive integer.\nThen $\\varphi(p^k) = p^{k-1} (p - 1) = p^k - p^{k-1}$, where $\\varphi$ is [[Euler's totient function|0VV04M41AN]].\n\n## Remarks\n\nThe proof: an integer is coprime to $p^k$ if and only if $p$ does not divide it. Among $1, \\dots, p^k$, the multiples of $p$ are $p, 2p, \\dots, p^{k-1} \\cdot p$, so there are $p^{k-1}$ of them.\nFor example, $\\varphi(8) = 4$ and $\\varphi(27) = 18$.\nWith the [[multiplicativity of the totient function|0FSJA9M43W]], this formula gives $\\varphi(n)$ from the prime factorization of $n$.\n\n## Explanations\n\n### L1 human\n\nAmong the numbers $1$ to $p^k$, exactly one in $p$ is a multiple of $p$.\nRemove these numbers. The fraction $1 - 1/p$ of the numbers stays, so $\\varphi(p^k) = p^k (1 - 1/p)$.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "11A25"
    ],
    "name": "Totient of a prime power",
    "role": "proposition",
    "sources": [
      {
        "locator": "Value of phi for a prime power argument",
        "url": "https://en.wikipedia.org/wiki/Euler%27s_totient_function"
      }
    ],
    "tag": "0AVY8HKBGD",
    "uses": [
      "0VV04M41AN",
      "0SN0MAEKYX"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0AVY8HKBGD/",
  "links": [
    {
      "field": "uses",
      "target": "0VV04M41AN"
    },
    {
      "field": "uses",
      "target": "0SN0MAEKYX"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0AVY8HKBGD.md",
  "msc": [
    "11A25"
  ],
  "name": "Totient of a prime power",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0AV/0AVY8HKBGD.md",
  "status": null,
  "tag": "0AVY8HKBGD",
  "uri": "m2://0AVY8HKBGD",
  "url": "https://math2.tamnd.com/wiki/totient-of-a-prime-power/",
  "writing": {
    "tag": "0AVY8HKBGD",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
