{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $n \\ge 2$ be an integer. Suppose that $p_1, \\dots, p_m$ are the distinct [[prime numbers|0SN0MAEKYX]] that divide $n$.\nThen\n$$\\varphi(n) = n \\prod_{i=1}^{m} \\frac{p_i - 1}{p_i},$$\nwhere $\\varphi$ is [[Euler's totient function|0VV04M41AN]].\n\n## Remarks\n\nEach factor equals $1 - 1/p_i$, so only the set of primes dividing $n$ matters, not their exponents.\nFor example, $12 = 2^2 \\cdot 3$ gives $\\varphi(12) = 12 \\cdot \\frac{1}{2} \\cdot \\frac{2}{3} = 4$.\n",
  "commit": "bdea0329dc328964ec62566e23a0159c6ce93f2d",
  "front": {
    "kind": "statement",
    "msc": [
      "11A25"
    ],
    "name": "Product formula for the totient function",
    "role": "theorem",
    "sources": [
      {
        "locator": "source/s_inclusion-exclusion_euler-phi.ptx:43",
        "url": "https://github.com/mitchkeller/applied-combinatorics/blob/ebd95d6bd59e23c633c65cf560bcb93efa912aae/source/s_inclusion-exclusion_euler-phi.ptx#L43"
      }
    ],
    "tag": "ZCC0E1FW8P",
    "uses": [
      "0VV04M41AN",
      "0SN0MAEKYX"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/ZCC0E1FW8P/",
  "links": [
    {
      "field": "uses",
      "target": "0VV04M41AN"
    },
    {
      "field": "uses",
      "target": "0SN0MAEKYX"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/ZCC0E1FW8P.md",
  "msc": [
    "11A25"
  ],
  "name": "Product formula for the totient function",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/ZCC/ZCC0E1FW8P.md",
  "status": null,
  "tag": "ZCC0E1FW8P",
  "uri": "m2://ZCC0E1FW8P",
  "url": "https://math2.tamnd.com/wiki/product-formula-for-the-totient-function/",
  "writing": {
    "tag": "ZCC0E1FW8P",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
