IntegerExponent
The largest with — the -adic valuation of as an integer.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
IntegerExponent!IntegerExponent(n, b)the multiplicity of in SageMath
Integer(n).valuation(b)SymPymultiplicity(b, n)Juliavaluation(ZZ(n), ZZ(b))IntegerExponent(n)base 10SageMath
Integer(n).valuation(10)Typed signatures
| Type | Package | Applies |
|---|---|---|
(number, number?) -> integer | number | number-theory | always |
Details
- Integers only: a rational's -adic valuation is AdicValuation's, over AdicNumeral.
- has every power of as a divisor, so
IntegerExponent(0, b)isPositiveInfinity. - need not be prime —
IntegerExponent(n, 6)is the largest with , not the 2-adic or 3-adic valuation.
Plot
Examples
3 more kept as data, checked against the oraclesScope #
Applications #
About
| Examples | 19 |
|---|---|
| Checked against | Wolfram Language 18 agree1 differSageMath 16 agree2 errorSymPy 9 agree3 errorJulia 9 agree3 error |
| Crosswalk | Wolfram LanguageSageMath ×2SymPyJulia |
Implementation
mapped
wolframpackages/oracle/src/mappings.tsmapped
sympypackages/oracle/src/mappings.tsmapped
sagepackages/oracle/src/mappings.tsmapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.ts See also: AdicValuation, FactorInteger