There are several equivalent definitions of -adic numbers. The two approaches given below are relatively elementary.
As formal series in base A
-adic integer is often defined as a
formal power series of the form r=\sum_{i=0}^\infty a_i p^i = a_0 + a_1 p + a_2 p^2 + a_3 p^3 + \cdots where each a_i\in\{0,1,\ldots,p-1\} represents a "digit in base ". A
-adic unit is a -adic integer whose first digit is nonzero, i.e. a_0\ne 0. The set of all -adic integers is usually denoted \mathbb Z_p. A
-adic number is then defined as a
formal Laurent series of the form r=\sum_{i=v}^\infty a_i p^i = a_v p^v + a_{v+1} p^{v+1} + a_{v+2} p^{v+2} + a_{v+3} p^{v+3} + \cdots where is a (possibly negative) integer, and each a_i\in\{0,1,\ldots,p-1\}. Equivalently, a -adic number is anything of the form \tfrac{x}{p^k}, where is a -adic integer. The first index for which the digit a_v is nonzero in is called the
-adic valuation of , denoted v_p(r). If r=0, then such an index does not exist, so by convention v_p(0)=\infty. In this definition, addition, subtraction, multiplication, and division of -adic numbers are carried out similarly to numbers in base , with "carries" or "borrows" moving from left to right rather than right to left. As an example in \mathbb Q_3, \begin{array}{lllllllllll} & & & _1 & & & & _1 & & _1 \\ & 2\cdot3^0 &+& 0\cdot3^1 &+& 1\cdot3^2 &+& 2\cdot3^3 &+& 1\cdot3^4 &+ \cdots \\ + & 1\cdot3^0 &+& 1\cdot3^1 &+& 2\cdot3^2 &+& 1\cdot3^3 &+& 0\cdot3^4 &+ \cdots \\\hline & 0\cdot3^0 &+& 2\cdot3^1 &+& 0\cdot3^2 &+& 1\cdot3^3 &+& 2\cdot3^4 &+ \cdots \end{array} Division of -adic numbers may also be carried out "formally" via
division of formal power series, with some care about having to "carry". With these operations, the set of -adic numbers form a
field, denoted \mathbb Q_p.
As equivalence classes The -adic numbers may also be defined as equivalence classes, in a similar way as the definition of real numbers as equivalence classes of
Cauchy sequences. It is fundamentally based on the following lemma: :
Every nonzero rational number can be written r=p^v\frac{m}{n}, where , , and are integers and neither nor is divisible by . The exponent is uniquely determined by and is called its
-adic valuation, denoted v_p(r). The proof of the lemma results directly from the
fundamental theorem of arithmetic. A
-adic series is a
formal Laurent series of the form \sum_{i=v}^\infty r_i p^{i}, where v is a (possibly negative) integer and the r_i are rational numbers that either are zero or have a nonnegative valuation (that is, the denominator of r_i is not divisible by ). Every rational number may be viewed as a -adic series with a single nonzero term, consisting of its factorization of the form p^k\tfrac mn, with and both coprime with . Two -adic series \sum_{i=v}^\infty r_i p^{i} and \sum_{i=w}^\infty s_i p^{i} are
equivalent if there is an integer such that, for every integer n>N, the rational number \sum_{i=v}^n r_i p^{i} - \sum_{i=w}^n s_i p^{i} is zero or has a -adic valuation greater than . A -adic series \sum_{i=v}^\infty a_i p^{i} is
normalized if either all a_i are integers such that 0\le a_i and a_v >0, or all a_i are zero. In the latter case, the series is called the
zero series. Every -adic series is equivalent to exactly one normalized series. This normalized series is obtained by a sequence of transformations, which are equivalences of series; see
§ Normalization of a -adic series, below. In other words, the equivalence of -adic series is an
equivalence relation, and each
equivalence class contains exactly one normalized -adic series. The usual operations of series (addition, subtraction, multiplication, division) are compatible with equivalence of -adic series. That is, denoting the equivalence with , if , and are nonzero -adic series such that S\sim T, one has \begin{align} S\pm U&\sim T\pm U,\\ SU&\sim TU,\\ 1/S&\sim 1/T. \end{align} With this, the
-adic numbers are defined as the
equivalence classes of -adic series. The uniqueness property of normalization, allows uniquely representing any -adic number by the corresponding normalized -adic series. The compatibility of the series equivalence leads almost immediately to basic properties of -adic numbers: •
Addition,
multiplication and
multiplicative inverse of -adic numbers are defined as for
formal power series, followed by the normalization of the result. • With these operations, the -adic numbers form a
field, which is an
extension field of the rational numbers. • The
valuation of a nonzero -adic number , commonly denoted v_p(x) is the exponent of in the first non zero term of the corresponding normalized series; the valuation of zero is v_p(0)=+\infty • The
-adic absolute value of a nonzero -adic number , is |x|_p=p^{-v(x)}; for the zero -adic number, one has |0|_p=0.
Normalization of a p-adic series Starting with the series \sum_{i=v}^\infty r_i p^{i}, we wish to arrive at an equivalent series such that the -adic valuation of r_v is zero. For that, one considers the first nonzero r_i. If its -adic valuation is zero, it suffices to change into , that is to start the summation from . Otherwise, the -adic valuation of r_i is j>0, and r_i= p^js_i where the valuation of s_i is zero; so, one gets an equivalent series by changing r_i to and r_{i+j} to r_{i+j} + s_i. Iterating this process, one gets eventually, possibly after infinitely many steps, an equivalent series that either is the zero series or is a series such that the valuation of r_v is zero. Then, if the series is not normalized, consider the first nonzero r_i that is not an integer in the interval [0,p-1]. Using
Bézout's lemma, write this as r_i=a_i+ps_i, where a_i\in[0,p-1] and s_i has nonnegative valuation. Then, one gets an equivalent series by replacing r_i with a_i, and adding s_i to r_{i+1}. Iterating this process, possibly infinitely many times, provides eventually the desired normalized -adic series.
Other equivalent definitions Other equivalent definitions use
completion of a
discrete valuation ring (see ),
completion of a metric space (see ), or
inverse limits (see ). A -adic number can be defined as a
normalized -adic series. Since there are other equivalent definitions that are commonly used, one says often that a normalized -adic series
represents a -adic number, instead of saying that it
is a -adic number. One can say also that any -adic series represents a -adic number, since every -adic series is equivalent to a unique normalized -adic series. This is useful for defining operations (addition, subtraction, multiplication, division) of -adic numbers: the result of such an operation is obtained by normalizing the result of the corresponding operation on series. This well defines operations on -adic numbers, since the series operations are compatible with equivalence of -adic series. With these operations, -adic numbers form a
field called the
field of -adic numbers and denoted \Q_p or \mathbf Q_p. There is a unique
field homomorphism from the rational numbers into the -adic numbers, which maps a rational number to its -adic expansion. The
image of this homomorphism is commonly identified with the field of rational numbers. This allows considering the -adic numbers as an
extension field of the rational numbers, and the rational numbers as a
subfield of the -adic numbers. The
valuation of a nonzero -adic number , commonly denoted v_p(x), is the exponent of in the first nonzero term of every -adic series that represents . By convention, v_p(0)=\infty; that is, the valuation of zero is \infty. This valuation is a
discrete valuation. The restriction of this valuation to the rational numbers is the -adic valuation of \Q, that is, the exponent in the factorization of a rational number as \tfrac nd p^v, with both and
coprime with . == Notation ==