p-adic number
In number theory, given a prime number p, the p-adic numbers form an extension of the rational numbers which is distinct from the real numbers, though with some similar properties; p-adic numbers can be written in a form similar to (possibly infinite) decimals, but with digits based on a prime number p rather than ten, and extending to the left rather than to the right.
For example, comparing the expansion of the rational number in base 3 vs. the 3-adic expansion,
Formally, given a prime number p, a p-adic number can be defined as a series
where k is an integer (possibly negative), and each is an integer such that A p-adic integer is a p-adic number such that
In general the series that represents a p-adic number is not convergent in the usual sense, but it is convergent for the p-adic absolute value where k is the least integer i such that (if all are zero, one has the zero p-adic number, which has 0 as its p-adic absolute value).
Every rational number can be uniquely expressed as the sum of a series as above, with respect to the p-adic absolute value. This allows considering rational numbers as special p-adic numbers, and alternatively defining the p-adic numbers as the completion of the rational numbers for the p-adic absolute value, exactly as the real numbers are the completion of the rational numbers for the usual absolute value.
p-adic numbers were first described by Kurt Hensel in 1897,[1] though, with hindsight, some of Ernst Kummer's earlier work can be interpreted as implicitly using p-adic numbers.[note 1]
Motivation[edit]
Roughly speaking, modular arithmetic modulo a positive integer n consists of "approximating" every integer by the remainder of its division by n, called its residue modulo n. The main property of modular arithmetic is that the residue modulo n of the result of a succession of operations on integers is the same as the result of the same succession of operations on residues modulo n. If one knows that the absolute value of the result is less than n/2, this allows a computation of the result which does not involve any integer larger than n.
For larger results, an old method, still in common use, consists of using several small moduli that are pairwise coprime, and applying the Chinese remainder theorem for recovering the result modulo the product of the moduli.
Another method discovered by Kurt Hensel consists of using a prime modulus p, and applying Hensel's lemma for recovering iteratively the result modulo If the process is continued infinitely, this provides eventually a result which is a p-adic number.
Definition[edit]
There are several equivalent definitions of p-adic numbers. The one that is given here is relatively elementary, since it does not involve any other mathematical concepts than those introduced in the preceding sections. Other equivalent definitions use completion of a discrete valuation ring (see § p-adic integers), completion of a metric space (see § Topological properties), or inverse limits (see § Modular properties).
A p-adic number can be defined as a normalized p-adic series. Since there are other equivalent definitions that are commonly used, one says often that a normalized p-adic series represents a p-adic number, instead of saying that it is a p-adic number.
One can say also that any p-adic series represents a p-adic number, since every p-adic series is equivalent to a unique normalized p-adic series. This is useful for defining operations (addition, subtraction, multiplication, division) of p-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 p-adic numbers, since the series operations are compatible with equivalence of p-adic series.
With these operations, p-adic numbers form a field called the field of p-adic numbers and denoted or There is a unique field homomorphism from the rational numbers into the p-adic numbers, which maps a rational number to its p-adic expansion. The image of this homomorphism is commonly identified with the field of rational numbers. This allows considering the p-adic numbers as an extension field of the rational numbers, and the rational numbers as a subfield of the p-adic numbers.
The valuation of a nonzero p-adic number x, commonly denoted is the exponent of p in the first nonzero term of every p-adic series that represents x. By convention, that is, the valuation of zero is This valuation is a discrete valuation. The restriction of this valuation to the rational numbers is the p-adic valuation of that is, the exponent v in the factorization of a rational number as with both n and d coprime with p.
The p-adic integers are the p-adic numbers with a nonnegative valuation.
A p-adic integer can be represented as a sequence
of residues xe mod pe for each integer e, satisfying the compatibility relations for i < j.
Every integer is a p-adic integer (including zero, since ). The rational numbers of the form with d coprime with p and are also p-adic integers (for the reason that d has an inverse mod pe for every e).
The p-adic integers form a commutative ring, denoted or , that has the following properties.
The last property provides a definition of the p-adic numbers that is equivalent to the above one: the field of the p-adic numbers is the field of fractions of the completion of the localization of the integers at the prime ideal generated by p.
The p-adic valuation allows defining an absolute value on p-adic numbers: the p-adic absolute value of a nonzero p-adic number x is
where is the p-adic valuation of x. The p-adic absolute value of is This is an absolute value that satisfies the strong triangle inequality since, for every x and y one has
Moreover, if one has
This makes the p-adic numbers a metric space, and even an ultrametric space, with the p-adic distance defined by
As a metric space, the p-adic numbers form the completion of the rational numbers equipped with the p-adic absolute value. This provides another way for defining the p-adic numbers. However, the general construction of a completion can be simplified in this case, because the metric is defined by a discrete valuation (in short, one can extract from every Cauchy sequence a subsequence such that the differences between two consecutive terms have strictly decreasing absolute values; such a subsequence is the sequence of the partial sums of a p-adic series, and thus a unique normalized p-adic series can be associated to every equivalence class of Cauchy sequences; so, for building the completion, it suffices to consider normalized p-adic series instead of equivalence classes of Cauchy sequences).
As the metric is defined from a discrete valuation, every open ball is also closed. More precisely, the open ball equals the closed ball where v is the least integer such that Similarly, where w is the greatest integer such that
This implies that the p-adic numbers form a locally compact space, and the p-adic integers—that is, the ball —form a compact space.
Modular properties[edit]
The quotient ring may be identified with the ring of the integers modulo This can be shown by remarking that every p-adic integer, represented by its normalized p-adic series, is congruent modulo with its partial sum whose value is an integer in the interval A straightforward verification shows that this defines a ring isomorphism from to
The inverse limit of the rings is defined as the ring formed by the sequences such that and for every i.
The mapping that maps a normalized p-adic series to the sequence of its partial sums is a ring isomorphism from to the inverse limit of the This provides another way for defining p-adic integers (up to an isomorphism).
This definition of p-adic integers is specially useful for practical computations, as allowing building p-adic integers by successive approximations.
For example, for computing the p-adic (multiplicative) inverse of an integer, one can use Newton's method, starting from the inverse modulo p; then, each Newton step computes the inverse modulo from the inverse modulo
The same method can be used for computing the p-adic square root of an integer that is a quadratic residue modulo p. This seems to be the fastest known method for testing whether a large integer is a square: it suffices to test whether the given integer is the square of the value found in . Applying Newton's method to find the square root requires to be larger than twice the given integer, which is quickly satisfied.
Hensel lifting is a similar method that allows to "lift" the factorization modulo p of a polynomial with integer coefficients to a factorization modulo for large values of n. This is commonly used by polynomial factorization algorithms.
Algebraic closure[edit]
contains and is a field of characteristic 0.
Because 0 can be written as sum of squares,[5] cannot be turned into an ordered field.
The field of real numbers has only a single proper algebraic extension: the complex numbers . In other words, this quadratic extension is already algebraically closed. By contrast, the algebraic closure of , denoted has infinite degree,[6] that is, has infinitely many inequivalent algebraic extensions. Also contrasting the case of real numbers, although there is a unique extension of the p-adic valuation to the latter is not (metrically) complete.[7][8] Its (metric) completion is called or .[8][9] Here an end is reached, as is algebraically closed.[8][10] However unlike this field is not locally compact.[9]
and are isomorphic as rings,[11] so we may regard as endowed with an exotic metric. The proof of existence of such a field isomorphism relies on the axiom of choice, and does not provide an explicit example of such an isomorphism (that is, it is not constructive).
If is any finite Galois extension of , the Galois group is solvable. Thus, the Galois group is prosolvable.
Multiplicative group[edit]
contains the n-th cyclotomic field (n > 2) if and only if n | p − 1.[12] For instance, the n-th cyclotomic field is a subfield of if and only if n = 1, 2, 3, 4, 6, or 12. In particular, there is no multiplicative p-torsion in if p > 2. Also, −1 is the only non-trivial torsion element in .
Given a natural number k, the index of the multiplicative group of the k-th powers of the non-zero elements of in is finite.
The number e, defined as the sum of reciprocals of factorials, is not a member of any p-adic field; but for . For p = 2 one must take at least the fourth power.[13] (Thus a number with similar properties as e — namely a p-th root of ep — is a member of for all p.)
Local–global principle[edit]
Helmut Hasse's local–global principle is said to hold for an equation if it can be solved over the rational numbers if and only if it can be solved over the real numbers and over the p-adic numbers for every prime p. This principle holds, for example, for equations given by quadratic forms, but fails for higher polynomials in several indeterminates.