How it Works
The p-adic integers ℤₚ form a complete metric space under the p-adic absolute value. They have a natural fractal tree structure: the root represents all integers; each node at depth d represents a residue class modulo pd; each node branches into exactly p children corresponding to the p residue classes mod pd+1 that extend it.
Two integers are p-adically close if their difference is divisible by a high power of p. On the tree, this means they share a long common path from the root. The p-adic distance between integers A and B is p-vₚ(A-B) where vₚ(n) = max{k : pk | n}.
|x|_p = p^{-v_p(x)}, |0|_p = 0
d_p(A,B) = |A-B|_p = p^{-v_p(A-B)}
Ultrametric: d(x,z) ≤ max(d(x,y), d(y,z))
The tree visualization places numbers at leaf nodes according to their p-adic expansion. Numbers sharing a common p-adic prefix appear on adjacent branches. The highlighted path from the root to each of A and B illustrates their common ancestor depth, which equals vₚ(A-B).
Frequently Asked Questions
What are p-adic numbers?
p-adic numbers are a system of numbers built on a prime p. Every rational number has a p-adic expansion — an infinite series in powers of p going leftward. The p-adic numbers ℚₚ complete the rationals with respect to the p-adic absolute value rather than the usual absolute value.
What is the p-adic valuation?
The p-adic valuation vₚ(n) of an integer n is the largest power of p that divides n. For example v₂(12) = 2 since 12 = 4×3 = 2²×3. For a fraction vₚ(a/b) = vₚ(a) - vₚ(b).
What is the p-adic absolute value?
The p-adic absolute value of a rational number x is |x|ₚ = p-vₚ(x) (with |0|ₚ = 0). Numbers divisible by high powers of p are close to zero p-adically. For example |8|₂ = 2-3 = 1/8 — the number 8 is "small" in the 2-adic sense.
What is an ultrametric space?
An ultrametric space satisfies the strong triangle inequality: d(x,z) ≤ max(d(x,y), d(y,z)). This implies every triangle is isosceles, and every ball is both open and closed (clopen). The p-adic metric is a classic example.
Why is the p-adic metric an ultrametric?
Because vₚ(x+y) ≥ min(vₚ(x), vₚ(y)), so |x+y|ₚ ≤ max(|x|ₚ, |y|ₚ). This follows because if p divides both x and y, it divides x+y. Taking absolute values gives the ultrametric inequality.
What is Ostrowski's theorem?
Ostrowski's theorem (1916) states that every non-trivial absolute value on ℚ is equivalent to either the usual absolute value or a p-adic absolute value for some prime p. Thus ℝ and the fields ℚₚ are all possible completions of ℚ.
How are p-adic numbers visualized as a tree?
The p-adic integers ℤₚ have a natural tree structure: each node at depth d represents a residue class mod pd; each node has exactly p children. Two numbers are p-adically close if and only if they share a long common root path in this tree.
What is Hensel's lemma?
Hensel's lemma is a p-adic analog of Newton's method: if a polynomial f has a simple root mod p, that root lifts uniquely to a root in ℤₚ. Used to solve equations in p-adic numbers with applications in algebraic number theory and cryptography.
Are there p-adic analogs of real analysis?
Yes. p-adic analysis develops calculus over ℚₚ: power series, exponential and logarithm functions, p-adic measures, and integration. A key difference: a sequence converges in ℚₚ if and only if its terms tend to zero.
What are the applications of p-adic numbers?
p-adic numbers appear in algebraic number theory, Fermat's Last Theorem proof, the Langlands program, p-adic string theory in physics, cryptographic protocols, error-correcting codes, and the study of L-functions and modular forms.