P-adic valuation
Definition
Let be a prime number and let be a nonzero integer. The -adic valuation is the largest natural number such that . By convention, .
Remarks
For a positive integer , is the exponent of in the prime factorization of . It is when . For example, and , because . For a nonzero rational number , one sets . The Lean library Mathlib sets for its function on natural numbers.
Explanations
L1 human
The number counts how many times you can divide by and still get an integer. For and : , so you can divide three times, and .
What this node needs for W2
- edge instance_of in: one example (0 of 1)
- edge not_instance_of in: one non-example that fails one clause (0 of 1)
The writing levels say how complete the text of a node is. They do not measure its truth.
What this needs
To read this node, read these 3 nodes in this order. The foundations come first, and the list ends with this node.
- no evidence level
- Divisibility definition
- Prime number definition
- P-adic valuation definition
What depends on this
5 nodes use this node, directly or through other nodes.
- Legendre's formula 01WPV9PHN7
- Sum of two squares theorem 04NPWJMA6H
- P-adic valuation of a product 0850JJMJYZ
- Lifting-the-exponent lemma 0JYF6PTKEW
- Kummer's theorem 0VBWK9XYDG
Sources
What links here
Used by
- Legendre's formula 01WPV9PHN7
- Sum of two squares theorem 04NPWJMA6H
- P-adic valuation of a product 0850JJMJYZ
- Lifting-the-exponent lemma 0JYF6PTKEW
- Kummer's theorem 0VBWK9XYDG