Online calculator for $ p $-adic valuations and absolute values.

8.3k Views Asked by At

Does anyone know a website where I can enter a prime base and a rational and then get the $ p $-adic valuation and the $ p $-adic absolute value? For sure I know how to do it by hand, but I want to check my results and rule out computational mistakes.

1

There are 1 best solutions below

0
On BEST ANSWER

WolframAlpha can do it. It understood my request 2-adic valuation of 42 as IntegerExponent[42,2], which seems to be the appropriate function for this. For the $p$-adic absolute value, there is the slight problem that there are several equivalent (as in: defining the same topology, not the same norm) choices. But replacing $n$ by $p^{-n}$ should not be too hard. (Plus, the valuation is more useful in practice).