p-adic Number Explorer

Visualize p-adic expansions, norms, and the Zp tree structure

p-adic Tree (Z_p)

|·|_p = —

Expansion Digits

...click Compute
p-adic numbers: The rationals Q can be completed with a different metric |x|_p = p^(-v_p(x)), where v_p(x) is the p-adic valuation (highest power of p dividing x). Every rational has a unique base-p expansion ...a₂a₁a₀ (reading right to left), possibly infinite to the left.