On this page
Ostrowski's theorem answers a big question: in how many ways can you measure the size of a fraction? The answer, proved by Alexander Ostrowski in a 1916 paper in Acta Mathematica (DOI 10.1007/BF02422947), is that, up to equivalence, there are only two kinds: the ordinary absolute value, and one p-adic absolute value for each prime p.
What is an absolute value on the rationals?
An absolute value on the rationals is a function |x| with three rules: |x| is at least 0 and equals 0 only when x = 0; |xy| = |x||y|; and |x + y| is at most |x| + |y| (Wikipedia, Ostrowski's theorem). The usual |−3| = 3 obeys all three. So does the trivial one, which gives every non-zero number the value 1; the theorem sets that one aside.
Two absolute values are equivalent when they give the rationals the same topology, which turns out to mean one is a positive power of the other: |x|* = |x|^λ for some λ > 0 (same source).
How do you calculate the p-adic absolute value |x|_p?
Write the non-zero rational as x = p^n · a/b, where a and b are not divisible by p; then |x|_p = p^(−n) (Wikipedia, Ostrowski's theorem).
Take x = 50 = 2 · 5².
p = 2: one factor of 2, so |50|_2 = 1/2.
p = 5: two factors of 5, so |50|_5 = 1/25.
Any other prime, such as 3 or 7: no factors, so the value is 1.
Take x = 3/8 = 3 · 2^(−3).
p = 2: the 2s sit in the denominator, n = −3, so |3/8|_2 = 2³ = 8.
p = 5: no 5s anywhere, so |3/8|_5 = 1.
p = 3: one 3 on top, so |3/8|_3 = 1/3.
The p-adic absolute value also obeys a stronger rule than the triangle inequality: |x + y|_p is at most the larger of |x|_p and |y|_p (Wikipedia, p-adic valuation). Check it: |4|_2 = |12|_2 = 1/4, and their sum 16 has |16|_2 = 1/16, smaller than both. Our post on what p-adic numbers are and how divisibility measures size builds the idea from scratch, and Kummer's theorem on carries and prime powers uses the same counting.
What does Ostrowski's theorem say, and why is it true?
Ostrowski's theorem states that every non-trivial absolute value on the rationals is equivalent either to the usual absolute value or to the p-adic absolute value for exactly one prime p (Wikipedia, Ostrowski's theorem, citing Koblitz's textbook).
Because |xy| = |x||y| and every integer factors into primes, an absolute value is fixed once you know its values on the primes. Then there are two cases.
Some integer has |n| > 1. Writing powers of n in another base b and letting the power grow shows every integer above 1 is large too, and in fact |n| = n^λ with 0 < λ ≤ 1. That is a power of the usual absolute value.
Every integer has |n| ≤ 1. Then some prime p has |p| < 1. If two primes p and q both did, Bézout's identity gives integers a and b with a·p^k + b·q^k = 1, and for large k the triangle inequality makes |1| smaller than 1, which is impossible. So exactly one prime is small, and the absolute value is a power of |x|_p.
What is the product formula for absolute values?
For any non-zero rational x, multiplying the usual absolute value by |x|_p over every prime p gives exactly 1 (Wikipedia, p-adic valuation). Each prime power in x is cancelled by its own p-adic value.
x = 50: 50 × 1/2 × 1/25 = 1.
x = 3/8: 3/8 × 8 × 1/3 = 1.
The same source notes that, by Ostrowski's theorem, the absolute values in this formula are all of them, up to equivalence. Compare the Euler product formula, where primes build the zeta function: one factor per prime there too.
Why does this make p-adic numbers natural?
The real numbers are what you get when you fill in the gaps of the rationals using the usual absolute value; the p-adic numbers are what you get using |x|_p (Wikipedia, p-adic number). Ostrowski's theorem says no non-trivial absolute value gives a third kind of completion. So the p-adics are not an exotic invention: they stand beside the reals.
Try it yourself
Factor x into primes, with negative exponents for the denominator.
For each prime p in the factorisation, write |x|_p = p^(−exponent).
Write |x| as usual, then multiply everything and check you get 1.
Practise on x = 12/7. You should find |12/7|_2 = 1/4, |12/7|_3 = 1/3 and |12/7|_7 = 7, and 12/7 × 1/4 × 1/3 × 7 = 1. If the product is not 1, look for a sign slip in an exponent.
If valuations or Bézout's identity need a refresher, the Fermi Concept Library covers every concept in mathematics, and the Fermi Problem Library has a step-by-step solver that explains the reasoning.



