{
  "aliases": [
    "p-adic-order",
    "multiplicity-of-a-prime"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "01WPV9PHN7"
    },
    {
      "field": "uses",
      "target": "04NPWJMA6H"
    },
    {
      "field": "uses",
      "target": "0850JJMJYZ"
    },
    {
      "field": "uses",
      "target": "0JYF6PTKEW"
    },
    {
      "field": "uses",
      "target": "0VBWK9XYDG"
    }
  ],
  "body": "\n## Definition\n\nLet $p$ be a [[prime number|0SN0MAEKYX]] and let $n$ be a nonzero integer.\nThe $p$-adic valuation $\\nu_p(n)$ is the largest natural number $k$ such that $p^k \\mid n$.\nBy convention, $\\nu_p(0) = \\infty$.\n\n## Remarks\n\nFor a positive integer $n$, $\\nu_p(n)$ is the exponent of $p$ in the [[prime factorization|0AEKDFCYFA]] of $n$. It is $0$ when $p \\nmid n$.\nFor example, $\\nu_2(40) = 3$ and $\\nu_5(40) = 1$, because $40 = 2^3 \\cdot 5$.\nFor a nonzero rational number $a / b$, one sets $\\nu_p(a / b) = \\nu_p(a) - \\nu_p(b)$.\nThe Lean library Mathlib sets $\\nu_p(0) = 0$ for its function on natural numbers.\n\n## Explanations\n\n### L1 human\n\nThe number $\\nu_p(n)$ counts how many times you can divide $n$ by $p$ and still get an integer.\nFor $n = 72$ and $p = 2$: $72, 36, 18, 9$, so you can divide three times, and $\\nu_2(72) = 3$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "p-adic-order",
      "multiplicity-of-a-prime"
    ],
    "defines": "03HDF50VN4",
    "kind": "definition",
    "msc": [
      "11A51"
    ],
    "name": "P-adic valuation",
    "sources": [
      {
        "locator": "Integers",
        "url": "https://en.wikipedia.org/wiki/P-adic_valuation"
      }
    ],
    "tag": "04VCPS30ZE",
    "uses": [
      "0SN0MAEKYX",
      "096PW7Q014"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/04VCPS30ZE/",
  "links": [
    {
      "field": "defines",
      "target": "03HDF50VN4"
    },
    {
      "field": "uses",
      "target": "0SN0MAEKYX"
    },
    {
      "field": "uses",
      "target": "096PW7Q014"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/04VCPS30ZE.md",
  "msc": [
    "11A51"
  ],
  "name": "P-adic valuation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/04V/04VCPS30ZE.md",
  "status": null,
  "tag": "04VCPS30ZE",
  "uri": "m2://04VCPS30ZE",
  "url": "https://math2.tamnd.com/wiki/p-adic-valuation-definition/",
  "writing": {
    "tag": "04VCPS30ZE",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
