Definition and properties
Let p be a prime number.
Integers
The p-adic valuation of an integer
is defined to be

where
denotes the set of natural numbers and
denotes divisibility of
by
. In particular,
is a function
.[2]
For example,
,
, and
since
.
The notation
is sometimes used to mean
.[3]
If
is a positive integer, then
;
this follows directly from
.
Rational numbers
The p-adic valuation can be extended to the rational numbers as the function
[4][5]
defined by

For example,
and
since
.
Some properties are:


Moreover, if
, then

where
is the minimum (i.e. the smaller of the two).
p-adic absolute value
The p-adic absolute value on
is the function

defined by

Thereby,
for all
and
for example,
and
The p-adic absolute value satisfies the following properties.
Non-negativity |
|
Positive-definiteness |
|
Multiplicativity |
|
Non-Archimedean |
|
From the multiplicativity
it follows that
for the roots of unity
and
and consequently also
The subadditivity
follows from the non-Archimedean triangle inequality
.
The choice of base p in the exponentiation
makes no difference for most of the properties, but supports the product formula:

where the product is taken over all primes p and the usual absolute value, denoted
. This follows from simply taking the prime factorization: each prime power factor
contributes its reciprocal to its p-adic absolute value, and then the usual Archimedean absolute value cancels all of them.
The p-adic absolute value is sometimes referred to as the "p-adic norm",[citation needed] although it is not actually a norm because it does not satisfy the requirement of homogeneity.
A metric space can be formed on the set
with a (non-Archimedean, translation-invariant) metric

defined by

The completion of
with respect to this metric leads to the set
of p-adic numbers.