padic number
In mathematics, the padic number system for any prime number p extends the ordinary arithmetic of the rational numbers in a different way from the extension of the rational number system to the real and complex number systems. The extension is achieved by an alternative interpretation of the concept of "closeness" or absolute value. In particular, two padic numbers are considered to be close when their difference is divisible by a high power of p: the higher the power, the closer they are. This property enables padic numbers to encode congruence information in a way that turns out to have powerful applications in number theory – including, for example, in the famous proof of Fermat's Last Theorem by Andrew Wiles.^{[1]}
padic numbers were first described by Kurt Hensel in 1897,^{[2]} though, with hindsight, some of Ernst Kummer's earlier work can be interpreted as implicitly using padic numbers.^{[note 1]} The padic numbers were motivated primarily by an attempt to bring the ideas and techniques of power series methods into number theory. Their influence now extends far beyond this. For example, the field of padic analysis essentially provides an alternative form of calculus.
More formally, for a given prime p, the field Q_{p} of padic numbers is a completion of the rational numbers. The field Q_{p} is also given a topology derived from a metric, which is itself derived from the padic order, an alternative valuation on the rational numbers. This metric space is complete in the sense that every Cauchy sequence converges to a point in Q_{p}. This is what allows the development of calculus on Q_{p}, and it is the interaction of this analytic and algebraic structure that gives the padic number systems their power and utility.
The p in "padic" is a variable and may be replaced with a prime (yielding, for instance, "the 2adic numbers") or another placeholder variable (for expressions such as "the ℓadic numbers"). The "adic" of "padic" comes from the ending found in words such as dyadic or triadic.
Introduction
This section is an informal introduction to padic numbers, using examples from the ring of 10adic (decadic) numbers. Although for padic numbers p should be a prime, base 10 was chosen to highlight the analogy with decimals. The decadic numbers are generally not used in mathematics: since 10 is not prime or prime power, the decadics are not a field. More formal constructions and properties are given below.
In the standard decimal representation, almost all^{[note 2]} real numbers do not have a terminating decimal representation. For example, 1/3 is represented as a nonterminating decimal as follows
 [math]\displaystyle{ \frac{1}{3}=0.333333\ldots. }[/math]
Informally, nonterminating decimals are easily understood, because it is clear that a real number can be approximated to any required degree of precision by a terminating decimal. If two decimal expansions differ only after the 10th decimal place, they are quite close to one another; and if they differ only after the 20th decimal place, they are even closer.
10adic numbers use a similar nonterminating expansion, but with a different concept of "closeness". Whereas two decimal expansions are close to one another if their difference is a large negative power of 10, two 10adic expansions are close if their difference is a large positive power of 10. Thus 4739 and 5739, which differ by 10^{3}, are close in the 10adic world, and 72694473 and 82694473 are even closer, differing by 10^{7}.
More precisely, every positive rational number r can be uniquely expressed as r =: a/b·10^{d}, where a and b are positive integers and gcd(a,b)=1, gcd(b,10)=1, gcd(a,10)<10. Let the 10adic "absolute value"^{[note 3]} of 10^{d} be
 [math]\displaystyle{ 10^d_{10} := \frac {1} {10^d} }[/math] .
Additionally, we define
 [math]\displaystyle{ 0_{10} := 0 }[/math] .
Now, taking a/b = 1 and d = 0,1,2,... we have
 10^{0}_{10} = 10^{0}, 10^{1}_{10} = 10^{−1}, 10^{2}_{10} = 10^{−2}, ...,
with the consequence that we have
 [math]\displaystyle{ \lim_{d \rightarrow +\infty} 10^d_{10} = 0 }[/math] .
Closeness in any number system is defined by a metric. Using the 10adic metric the distance between numbers x and y is given by x − y_{10}. An interesting consequence of the 10adic metric (or of a padic metric) is that there is no longer a need for the negative sign. (In fact, there is no order relation which is compatible with the ring operations and this metric.) As an example, by examining the following sequence we can see how unsigned 10adics can get progressively closer and closer to the number −1:
 [math]\displaystyle{ 9=1+10 }[/math] so [math]\displaystyle{ 9(1)_{10} = \frac {1} {10} }[/math].
 [math]\displaystyle{ 99=1+10^2 }[/math] so [math]\displaystyle{ 99(1)_{10} = \frac {1} {100} }[/math].
 [math]\displaystyle{ 999=1+10^3 }[/math] so [math]\displaystyle{ 999(1)_{10} = \frac {1} {1000} }[/math].
 [math]\displaystyle{ 9999=1+10^4 }[/math] so [math]\displaystyle{ 9999(1)_{10} = \frac {1} {10000} }[/math].
and taking this sequence to its limit, we can deduce the 10adic expansion of −1
 [math]\displaystyle{ \dots 9999 (1)_{10} = 0 }[/math] ,
thus
 [math]\displaystyle{ \dots 9999 =1 }[/math] ,
an expansion which clearly is a ten's complement representation.
In this notation, 10adic expansions can be extended indefinitely to the left, in contrast to decimal expansions, which can be extended indefinitely to the right. Note that this is not the only way to write padic numbers – for alternatives see the Notation section below.
More formally, a 10adic number can be defined as
 [math]\displaystyle{ \sum_{i=n}^\infty a_i 10^i }[/math]
where each of the a_{i} is a digit taken from the set {0, 1, … , 9} and the initial index n may be positive, negative or 0, but must be finite. From this definition, it is clear that positive integers and positive rational numbers with terminating decimal expansions will have terminating 10adic expansions that are identical to their decimal expansions. Other numbers may have nonterminating 10adic expansions.
It is possible to define addition, subtraction, and multiplication on 10adic numbers in a consistent way, so that the 10adic numbers form a commutative ring.
We can create 10adic expansions for "negative" numbers^{[note 4]} as follows
 [math]\displaystyle{ 100 = 1 \times 100 = \dots 9999 \times 100 = \dots 9900 }[/math]
 [math]\displaystyle{ \Rightarrow 35 = 100+65 = \dots 9900 + 65 = \dots 9965 }[/math]
 [math]\displaystyle{ \Rightarrow \left(3+\dfrac{1}{2}\right)=\dfrac{35}{10}= \dfrac{\dots 9965}{10}=\dots 9996.5 }[/math]
and fractions which have nonterminating decimal expansions also have nonterminating 10adic expansions. For example
 [math]\displaystyle{ \dfrac{10^61}{7}=142857; \qquad \dfrac{10^{12}1}{7}=142857142857; \qquad \dfrac{10^{18}1}{7}=142857142857142857 }[/math]
 [math]\displaystyle{ \Rightarrow\dfrac{1}{7}=\dots 142857142857142857 }[/math]
 [math]\displaystyle{ \Rightarrow\dfrac{6}{7}=\dots 142857142857142857 \times 6 = \dots 857142857142857142 }[/math]
 [math]\displaystyle{ \Rightarrow\dfrac{1}{7} = \dfrac{6}{7}+1 = \dots 857142857142857143 = \overline{285714}3. }[/math]
Generalizing the last example, we can find a 10adic expansion with no digits to the right of the decimal point for any rational number a/b such that b is coprime to 10; Euler's theorem guarantees that if b is coprime to 10, then there is an n such that 10^{n} − 1 is a multiple of b. The other rational numbers can be expressed as 10adic numbers with some digits after the decimal point.
As noted above, 10adic numbers have a major drawback. It is possible to find pairs of nonzero 10adic numbers (which are not rational, thus having an infinite number of digits) whose product is 0.^{[3]}^{[note 5]} This means that 10adic numbers do not always have multiplicative inverses, that is, valid reciprocals, which in turn implies that though 10adic numbers form a ring they do not form a field, a deficiency that makes them much less useful as an analytical tool. Another way of saying this is that the ring of 10adic numbers is not an integral domain because they contain zero divisors.^{[note 5]} The reason for this property turns out to be that 10 is a composite number which is not a power of a prime. This problem is simply avoided by using a prime number p or a prime power p^{n} as the base of the number system instead of 10 and indeed for this reason p in padic is usually taken to be prime.
fraction  original decimal notation  10adic notation  fraction  original decimal notation  10adic notation  fraction  original decimal notation  10adic notation 
[math]\displaystyle{ \frac{1}{2} }[/math]  0.5  0.5  [math]\displaystyle{ \frac{5}{7} }[/math]  0.714285  4285715  [math]\displaystyle{ \frac{9}{10} }[/math]  0.9  0.9 
[math]\displaystyle{ \frac{1}{3} }[/math]  0.3  67  [math]\displaystyle{ \frac{6}{7} }[/math]  0.857142  7142858  [math]\displaystyle{ \frac{1}{11} }[/math]  0.09  091 
[math]\displaystyle{ \frac{2}{3} }[/math]  0.6  34  [math]\displaystyle{ \frac{1}{8} }[/math]  0.125  0.125  [math]\displaystyle{ \frac{2}{11} }[/math]  0.18  182 
[math]\displaystyle{ \frac{1}{4} }[/math]  0.25  0.25  [math]\displaystyle{ \frac{3}{8} }[/math]  0.375  0.375  [math]\displaystyle{ \frac{3}{11} }[/math]  0.27  273 
[math]\displaystyle{ \frac{3}{4} }[/math]  0.75  0.75  [math]\displaystyle{ \frac{5}{8} }[/math]  0.625  0.625  [math]\displaystyle{ \frac{4}{11} }[/math]  0.36  364 
[math]\displaystyle{ \frac{1}{5} }[/math]  0.2  0.2  [math]\displaystyle{ \frac{7}{8} }[/math]  0.875  0.875  [math]\displaystyle{ \frac{5}{11} }[/math]  0.45  455 
[math]\displaystyle{ \frac{2}{5} }[/math]  0.4  0.4  [math]\displaystyle{ \frac{1}{9} }[/math]  0.1  89  [math]\displaystyle{ \frac{6}{11} }[/math]  0.54  546 
[math]\displaystyle{ \frac{3}{5} }[/math]  0.6  0.6  [math]\displaystyle{ \frac{2}{9} }[/math]  0.2  78  [math]\displaystyle{ \frac{7}{11} }[/math]  0.63  637 
[math]\displaystyle{ \frac{4}{5} }[/math]  0.8  0.8  [math]\displaystyle{ \frac{4}{9} }[/math]  0.4  56  [math]\displaystyle{ \frac{8}{11} }[/math]  0.72  728 
[math]\displaystyle{ \frac{1}{6} }[/math]  0.16  3.5  [math]\displaystyle{ \frac{5}{9} }[/math]  0.5  45  [math]\displaystyle{ \frac{9}{11} }[/math]  0.81  819 
[math]\displaystyle{ \frac{5}{6} }[/math]  0.83  67.5  [math]\displaystyle{ \frac{7}{9} }[/math]  0.7  23  [math]\displaystyle{ \frac{10}{11} }[/math]  0.90  0910 
[math]\displaystyle{ \frac{1}{7} }[/math]  0.142857  2857143  [math]\displaystyle{ \frac{8}{9} }[/math]  0.8  12  [math]\displaystyle{ \frac{1}{12} }[/math]  0.083  6.75 
[math]\displaystyle{ \frac{2}{7} }[/math]  0.285714  5714286  [math]\displaystyle{ \frac{1}{10} }[/math]  0.1  0.1  [math]\displaystyle{ \frac{5}{12} }[/math]  0.416  3.75 
[math]\displaystyle{ \frac{3}{7} }[/math]  0.428571  8571429  [math]\displaystyle{ \frac{3}{10} }[/math]  0.3  0.3  [math]\displaystyle{ \frac{7}{12} }[/math]  0.583  67.25 
[math]\displaystyle{ \frac{4}{7} }[/math]  0.571428  1428572  [math]\displaystyle{ \frac{7}{10} }[/math]  0.7  0.7  [math]\displaystyle{ \frac{11}{12} }[/math]  0.916  34.25 
padic expansions
When dealing with natural numbers, if p is taken to be a fixed prime number, then any positive integer can be written as a base p expansion in the form
 [math]\displaystyle{ \sum_{i=0}^n a_i p^i }[/math]
where the a_{i} are integers in {0, … , p − 1}.^{[4]} For example, the binary expansion of 35 is 1·2^{5} + 0·2^{4} + 0·2^{3} + 0·2^{2} + 1·2^{1} + 1·2^{0}, often written in the shorthand notation 100011_{2}.
The familiar approach to extending this description to the larger domain of the rationals^{[5]}^{[6]} (and, ultimately, to the reals) is to use sums of the form:
 [math]\displaystyle{ \pm\sum_{i=\infty}^n a_i p^i. }[/math]
A definite meaning is given to these sums based on Cauchy sequences, using the absolute value as metric. Thus, for example, 1/3 can be expressed in base 5 as the limit of the sequence 0.1313131313..._{5}. In this formulation, the integers are precisely those numbers for which a_{i} = 0 for all i < 0.
With padic numbers, on the other hand, we choose to extend the base p expansions in a different way. Unlike traditional integers, where the magnitude is determined by how far they are from zero, the "size" of padic numbers is determined by the padic absolute value, where high positive powers of p are relatively small compared to high negative powers of p. Consider infinite sums of the form:
 [math]\displaystyle{ \sum_{i=k}^{\infty} a_i p^i }[/math]
where k is some (not necessarily positive) integer, and each coefficient [math]\displaystyle{ a_i }[/math] can be called a padic digit.^{[7]} With this approach we obtain the padic expansions of the padic numbers. Those padic numbers for which a_{i} = 0 for all i < 0 are also called the padic integers.
As opposed to real number expansions which extend to the right as sums of ever smaller, increasingly negative powers of the base p, padic numbers may expand to the left forever, a property that can often be true for the padic integers. For example, consider the padic expansion of 1/3 in base 5. It can be shown to be …1313132_{5}, that is, the limit of the sequence 2_{5}, 32_{5}, 132_{5}, 3132_{5}, 13132_{5}, 313132_{5}, 1313132_{5}, … :
 [math]\displaystyle{ \dfrac{5^21}{3}=\dfrac{44_5}{3} = 13_5; \, \dfrac{5^41}{3}=\dfrac{4444_5}{3} = 1313_5 }[/math]
 [math]\displaystyle{ \Rightarrow\dfrac{1}{3}=\dots 1313_5 }[/math]
 [math]\displaystyle{ \Rightarrow\dfrac{2}{3}=\dots 1313_5 \times 2 = \dots 3131_5 }[/math]
 [math]\displaystyle{ \Rightarrow\dfrac{1}{3} = \dfrac{2}{3}+1 = \dots 3132_5. }[/math]
Multiplying this infinite sum by 3 in base 5 gives …0000001_{5}. As there are no negative powers of 5 in this expansion of 1/3 (that is, no numbers to the right of the decimal point), we see that 1/3 satisfies the definition of being a padic integer in base 5.
More formally, the padic expansions can be used to define the field Q_{p} of padic numbers while the padic integers form a subring of Q_{p}, denoted Z_{p}. (Not to be confused with the ring of integers modulo p which is also sometimes written Z_{p}. To avoid ambiguity, Z/pZ or Z/(p) are often used to represent the integers modulo p.)
While it is possible to use the approach above to define padic numbers and explore their properties, just as in the case of real numbers other approaches are generally preferred. Hence we want to define a notion of infinite sum which makes these expressions meaningful, and this is most easily accomplished by the introduction of the padic metric. Two different but equivalent solutions to this problem are presented in the Constructions section below.
Notation
There are several different conventions for writing padic expansions. So far this article has used a notation for padic expansions in which powers of p increase from right to left. With this righttoleft notation the 3adic expansion of ^{1}⁄_{5}, for example, is written as
 [math]\displaystyle{ \dfrac{1}{5}=\dots 121012102_3. }[/math]
When performing arithmetic in this notation, digits are carried to the left. It is also possible to write padic expansions so that the powers of p increase from left to right, and digits are carried to the right. With this lefttoright notation the 3adic expansion of ^{1}⁄_{5} is
 [math]\displaystyle{ \dfrac{1}{5}=2.01210121\dots_3\mbox{ or }\dfrac{1}{15}=20.1210121\dots_3. }[/math]
padic expansions may be written with other sets of digits instead of {0, 1, …, p − 1}. For example, the 3adic expansion of ^{1}/_{5} can be written using balanced ternary digits {1,0,1} as
 [math]\displaystyle{ \dfrac{1}{5}=\dots\underline{1}11\underline{11}11\underline{11}11\underline{1}_{\text{bal3}} . }[/math]
In fact any set of p integers which are in distinct residue classes modulo p may be used as padic digits. In number theory, Teichmüller representatives are sometimes used as digits.^{[8]}
Constructions
Analytic approach
p = 2  ← distance = 1 →  
rowspan=4 bgcolor=#BBFFFF Script error: No such module "Vertical header".  rowspan=4 bgcolor=#FFCC66 Script error: No such module "Vertical header".  ← d = ½ →  ← d = ½ →  

‹ d=¼ ›  ‹ d=¼ ›  ‹ d=¼ ›  ‹ d=¼ ›  
‹⅛›  ‹⅛›  ‹⅛›  ‹⅛›  ‹⅛›  ‹⅛›  ‹⅛›  ‹⅛›  
................................................  
17  10001  J  
16  10000  J  
15  1111  L  
14  1110  L  
13  1101  L  
12  1100  L  
11  1011  L  
10  1010  L  
9  1001  L  
8  1000  L  
7  111  L  
6  110  L  
5  101  L  
4  100  L  
3  11  L  
2  10  L  
1  1  L  
0  0…000  L  
−1  1…111  J  
−2  1…110  J  
−3  1…101  J  
−4  1…100  J  
Dec  Bin  ················································  

2adic ( p = 2 ) arrangement of integers, from left to right. This shows a hierarchical subdivision pattern common for ultrametric spaces. Points within a distance 1/8 are grouped in one colored strip. A pair of strips within a distance 1/4 has the same chroma, four strips within a distance 1/2 have the same hue. The hue is determined by the least significant bit, the saturation – by the next (2^{1}) bit, and the brightness depends on the value of 2^{2} bit. Bits (digit places) which are less significant for the usual metric are more significant for the padic distance. 
The real numbers can be defined as equivalence classes of Cauchy sequences of rational numbers; this allows us to, for example, write 1 as 1.000… = 0.999… . The definition of a Cauchy sequence relies on the metric chosen, though, so if we choose a different one, we can construct numbers other than the real numbers. The usual metric which yields the real numbers is called the Euclidean metric.
For a given prime p, we define the padic absolute value in Q as follows: for any nonzero rational number x, there is a unique integer n allowing us to write x = p^{n}(a/b), where neither of the integers a and b is divisible by p. Unless the numerator or denominator of x in lowest terms contains p as a factor, n will be 0. Now define x_{p} = p^{−n}. We also define 0_{p} = 0.
For example with x = 63/550 = 2^{−1}·3^{2}·5^{−2}·7·11^{−1}
 [math]\displaystyle{ \begin{align} &x_2 = 2 \\[6pt] &x_3 = 1/9 \\[6pt] &x_5 = 25 \\[6pt] &x_7 = 1/7 \\[6pt] &x_{11} = 11 \\[6pt] &x_{\text{any other prime}} = 1. \end{align} }[/math]
This definition of x_{p} has the effect that high powers of p become "small". By the fundamental theorem of arithmetic, for a given nonzero rational number x there is a unique finite set of distinct primes [math]\displaystyle{ p_1, \ldots, p_r }[/math] and a corresponding sequence of nonzero integers [math]\displaystyle{ a_1, \ldots, a_r }[/math] such that:
 [math]\displaystyle{ x = p_1^{a_1}\ldots p_r^{a_r}. }[/math]
It then follows that [math]\displaystyle{ x_{p_i} = p_i^{a_i} }[/math] for all [math]\displaystyle{ 1\leq i\leq r }[/math], and [math]\displaystyle{ x_p = 1 }[/math] for any other prime [math]\displaystyle{ p \notin \{p_1,\ldots, p_r\}. }[/math]
The padic absolute value defines a metric d_{p} on Q by setting
 [math]\displaystyle{ d_p(x,y)=xy_p }[/math]
The field Q_{p} of padic numbers can then be defined as the completion of the metric space (Q, d_{p}); its elements are equivalence classes of Cauchy sequences, where two sequences are called equivalent if their difference converges to zero. In this way, we obtain a complete metric space which is also a field and contains Q. With this absolute value, the field Q_{p} is a local field.
This metric is the reason for having a negative exponent in the prime power for padic absolute value. It is needed in order to satisfy the triangle inequality. An example:
 [math]\displaystyle{ d_2(2,10) \leq d_2(2,7)+d_2(7,10) }[/math]
 [math]\displaystyle{ 8_2 = 2^3_2 \leq 5_2+3_2 = 2 }[/math]
Clearly, we cannot have an "obvious" choice for [math]\displaystyle{ 2^3_2 }[/math] to be 8.
It can be shown that in Q_{p}, every element x may be written in a unique way as
 [math]\displaystyle{ \sum_{i=k}^{\infty} a_i p^i }[/math]
where k is some integer such that a_{k} ≠ 0 and each a_{i} is in {0, …, p − 1 }. This series converges to x with respect to the metric d_{p}. The padic integers Z_{p} are the elements where k is nonnegative. Consequently, Q_{p} is isomorphic to Z[1/p] + Z_{p}.^{[9]}
Ostrowski's theorem states that each absolute value on Q is equivalent either to the Euclidean absolute value, the trivial absolute value, or to one of the padic absolute values for some prime p. Each absolute value (or metric) leads to a different completion of Q. (With the trivial absolute value, Q is already complete.)
Algebraic approach
In the algebraic approach, we first define the ring of padic integers, and then construct the field of fractions of this ring to get the field of padic numbers.
We start with the inverse limit of the rings Z/p^{n}Z (see modular arithmetic): a padic integer m is then a sequence (a_{n})_{n≥1} such that a_{n} is in Z/p^{n}Z, and if n ≤ m, then a_{n} ≡ a_{m} (mod p^{n}).
Every natural number m defines such a sequence (a_{n}) by a_{n} ≡ m (mod p^{n}) and can therefore be regarded as a padic integer. For example, in this case 35 as a 2adic integer would be written as the sequence (1, 3, 3, 3, 3, 35, 35, 35, …).
The operators of the ring amount to pointwise addition and multiplication of such sequences. This is well defined because addition and multiplication commute with the "mod" operator; see modular arithmetic.
Moreover, every sequence (a_{n}) where the first element is not 0 has an inverse. In that case, for every n, a_{n} and p are coprime, and so a_{n} and p^{n} are relatively prime. Therefore, each a_{n} has an inverse mod p^{n}, and the sequence of these inverses, (b_{n}), is the sought inverse of (a_{n}). For example, consider the padic integer corresponding to the natural number 7; as a 2adic number, it would be written (1, 3, 7, 7, 7, 7, 7, ...). This object's inverse would be written as an everincreasing sequence that begins (1, 3, 7, 7, 23, 55, 55, 183, 439, 439, 1463 ...). Naturally, this 2adic integer has no corresponding natural number.
Every such sequence can alternatively be written as a series. For instance, in the 3adics, the sequence (2, 8, 8, 35, 35, ...) can be written as 2 + 2·3 + 0·3^{2} + 1·3^{3} + 0·3^{4} + ... The partial sums of this latter series are the elements of the given sequence.
The ring of padic integers has no zero divisors, so we can take the field of fractions to get the field Q_{p} of padic numbers. Note that in this field of fractions, every noninteger padic number can be uniquely written as p^{−n} u with a natural number n and a unit u in the padic integers. This means that
 [math]\displaystyle{ \mathbf{Q}_p = \operatorname{Quot}\left(\mathbf{Z}_p\right) = (p^{\mathbf{N}})^{1}\mathbf{Z}_p = \mathbf{Z}_p {\cup} (p^{\mathbf{N}})^{1}\mathbf{Z}_p^\times . }[/math]
Note that S^{−1} A, where [math]\displaystyle{ S=p^{\mathbf{N}}=\{p^{n}:n\in\mathbf{N}\} }[/math] is a multiplicative subset (contains the unit and closed under multiplication) of a commutative ring (with unit) [math]\displaystyle{ A }[/math], is an algebraic construction called the ring of fractions or localization of [math]\displaystyle{ A }[/math] by [math]\displaystyle{ S }[/math].
Properties
Cardinality
Z_{p} is the inverse limit of the finite rings Z/p^{k} Z, which is uncountable^{[10]}—in fact, has the cardinality of the continuum. Accordingly, the field Q_{p} is uncountable. The endomorphism ring of the Prüfer pgroup of rank n, denoted Z(p^{∞})^{n}, is the ring of n × n matrices over Z_{p}; this is sometimes referred to as the Tate module.
The number of padic numbers with terminating padic representations is countably infinite. And, if the standard digits [math]\displaystyle{ \{0,\ldots, p1\} }[/math] are taken, their value and representation coincides in Z_{p} and R.
Topology
Define a topology on Z_{p} by taking as a basis of open sets all sets of the form
 [math]\displaystyle{ U_a(n) = \left \{ n+ \lambda p^a : \lambda \in \mathbf{Z}_p \right \}. }[/math]
where a is a nonnegative integer and n is an integer in [1, p^{a}]. For example, in the dyadic integers, U_{1}(1) is the set of odd numbers. U_{a}(n) is the set of all padic integers whose difference from n has padic absolute value less than p^{1−a}. Then Z_{p} is a compactification of Z, under the derived topology (it is not a compactification of Z with its usual discrete topology). The relative topology on Z as a subset of Z_{p} is called the padic topology on Z.
The topology of Z_{p} is that of a Cantor set [math]\displaystyle{ \mathcal{C} }[/math].^{[11]} For instance, we can make a continuous 1to1 mapping between the dyadic integers and the Cantor set expressed in base 3 by
 [math]\displaystyle{ \mathbf{Z}_2 \ni \cdots d_2 d_1 d_0 \longmapsto 0.e_0 e_1 e_2 \cdots_3 \in \mathcal{C}, }[/math]
where [math]\displaystyle{ e_n = 2 d_n. }[/math]
The topology of Q_{p} is that of a Cantor set minus any point. In particular, Z_{p} is compact while Q_{p} is not; it is only locally compact. As metric spaces, both Z_{p} and Q_{p} are complete.^{[12]}
Metric completions and algebraic closures
Q_{p} contains Q and is a field of characteristic 0. This field cannot be turned into an ordered field.
R has only a single proper algebraic extension: C; in other words, this quadratic extension is already algebraically closed. By contrast, the algebraic closure of Q_{p}, denoted [math]\displaystyle{ \overline{\mathbf{Q}_p}, }[/math] has infinite degree,^{[13]} that is, Q_{p} has infinitely many inequivalent algebraic extensions. Also contrasting the case of real numbers, although there is a unique extension of the padic valuation to [math]\displaystyle{ \overline{\mathbf{Q}_p}, }[/math] the latter is not (metrically) complete.^{[14]}^{[15]} Its (metric) completion is called C_{p} or Ω_{p}.^{[15]}^{[16]} Here an end is reached, as C_{p} is algebraically closed.^{[15]}^{[17]} However unlike C this field is not locally compact.^{[16]}
C_{p} and C are isomorphic as rings, so we may regard C_{p} as C 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 K is a finite Galois extension of Q_{p}, the Galois group [math]\displaystyle{ \text{Gal} \left (\mathbf{K}/ \mathbf{Q}_p \right) }[/math] is solvable. Thus, the Galois group [math]\displaystyle{ \text{Gal} \left (\overline{\mathbf{Q}_p}/ \mathbf{Q}_p \right) }[/math] is prosolvable.
Multiplicative group of Q_{p}
Q_{p} contains the nth cyclotomic field (n > 2) if and only if n  p − 1.^{[18]} For instance, the nth cyclotomic field is a subfield of Q_{13} if and only if n = 1, 2, 3, 4, 6, or 12. In particular, there is no multiplicative ptorsion in Q_{p}, if p > 2. Also, −1 is the only nontrivial torsion element in Q_{2}.
Given a natural number k, the index of the multiplicative group of the kth powers of the nonzero elements of Q_{p} in [math]\displaystyle{ \mathbf{Q}_p^{\times} }[/math] is finite.
The number e, defined as the sum of reciprocals of factorials, is not a member of any padic field; but e^{ p} ∈ Q_{p} (p ≠ 2). For p = 2 one must take at least the fourth power.^{[19]} (Thus a number with similar properties as e — namely a pth root of e^{ p} — is a member of [math]\displaystyle{ \overline{\mathbf{Q}_p} }[/math] for all p.)
Rational arithmetic
Eric Hehner and Nigel Horspool proposed in 1979 the use of a padic representation for rational numbers on computers^{[20]} called quote notation. The primary advantage of such a representation is that addition, subtraction, and multiplication can be done in a straightforward manner analogous to similar methods for binary integers; and division is even simpler, resembling multiplication. However, it has the disadvantage that representations can be much larger than simply storing the numerator and denominator in binary (for more details see Quote notation § Space).
The reals and the padic numbers are the completions of the rationals; it is also possible to complete other fields, for instance general algebraic number fields, in an analogous way. This will be described now.
Suppose D is a Dedekind domain and E is its field of fractions. Pick a nonzero prime ideal P of D. If x is a nonzero element of E, then xD is a fractional ideal and can be uniquely factored as a product of positive and negative powers of nonzero prime ideals of D. We write ord_{P}(x) for the exponent of P in this factorization, and for any choice of number c greater than 1 we can set
 [math]\displaystyle{ x_P = c^{\operatorname{ord}_P(x)}. }[/math]
Completing with respect to this absolute value ._{P} yields a field E_{P}, the proper generalization of the field of padic numbers to this setting. The choice of c does not change the completion (different choices yield the same concept of Cauchy sequence, so the same completion). It is convenient, when the residue field D/P is finite, to take for c the size of D/P.
For example, when E is a number field, Ostrowski's theorem says that every nontrivial nonArchimedean absolute value on E arises as some ._{P}. The remaining nontrivial absolute values on E arise from the different embeddings of E into the real or complex numbers. (In fact, the nonArchimedean absolute values can be considered as simply the different embeddings of E into the fields C_{p}, thus putting the description of all the nontrivial absolute values of a number field on a common footing.)
Often, one needs to simultaneously keep track of all the abovementioned completions when E is a number field (or more generally a global field), which are seen as encoding "local" information. This is accomplished by adele rings and idele groups.
Local–global principle
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 padic numbers for every prime p. This principle holds, for example, for equations given by quadratic forms, but fails for higher polynomials in several indeterminates.
See also
 1 + 2 + 4 + 8 + ...
 Cminimal theory
 Hensel's lemma
 kadic notation
 Mahler's theorem
 padic quantum mechanics
 Profinite integer
 Volkenborn integral
Footnotes
Notes
 ↑ Translator's introduction, page 35: "Indeed, with hindsight it becomes apparent that a discrete valuation is behind Kummer's concept of ideal numbers."(Dedekind Weber)
 ↑ The number of real numbers with terminating decimal representations is countably infinite, while the number of real numbers without such a representation is uncountably infinite.
 ↑ The so defined function is not really an absolute value, because the requirement of multiplicativity is violated: [math]\displaystyle{ 2_{10} = 2 \cdot 10^0_{10} = \frac1{10^0} }[/math] and [math]\displaystyle{ 5_{10} = 5\cdot 10^0_{10} = \frac1{10^0} }[/math], but [math]\displaystyle{ 2 \cdot 5_{10} = 10^1_{10} = \frac1{10^1} \ne \frac1{10^0} = 2_{10} \cdot 5_{10} }[/math]. It is, however, good enough for establishing a metric, because this does not need multiplicativity.
 ↑ More precisely: additively inverted numbers, because there is no order relation in the 10adics, so there are no numbers less than zero.
 ↑ ^{5.0} ^{5.1} For [math]\displaystyle{ n\in\N_0 }[/math] let [math]\displaystyle{ x_n := 6^{5^n} }[/math] and [math]\displaystyle{ y_n := 5^{2^n} }[/math]. We have [math]\displaystyle{ 6^2 \equiv 6 \text{ mod } 10 }[/math] and [math]\displaystyle{ 5^2 \equiv 5 \text{ mod } 10 }[/math].
Now, [math]\displaystyle{ \begin{array}{rlll} ( x_{n+2}  x_{n+1} ) &/ \; ( x_{n+1}  x_n ) \\ = ( {x_n}^{5 \cdot 5}  \; \; {x_n}^5 ) &/ \; ( {x_n}^5  x_n ) &= {x_n}^{4\cdot 5} &+ {x_n}^{4\cdot 4} &+ {x_n}^{4\cdot 3} &+ {x_n}^{4\cdot 2} &+ {x_n}^{4\cdot 1} \\ = (6^{5^{n+2}}  6^{5^{n+1}}) &/ \; (6^{5^{n+1}}  6^{5^n}) &= (6^{5^n})^{4\cdot 5} &+ (6^{5^n})^{4\cdot 4} &+ (6^{5^n})^{4\cdot 3} &+ (6^{5^n})^{4\cdot 2} &+ (6^{5^n})^{4\cdot 1} \\ && \equiv \; \; 6 &+ \; \; 6 &+ \; \; 6 &+ \; \; 6 &+ \; \; 6 \\ &&= 5\cdot 6 \\ &&\equiv 0 &&& \text{ mod } 10 , \end{array} }[/math]
But the product (the sequence of the pointwise products) [math]\displaystyle{ x \cdot y = \lim_{n\to\infty} x_n \cdot y_n }[/math] is divisible by arbitrarily high powers of 10, so that [math]\displaystyle{ x \cdot y = 0 }[/math] in the ring of 10adic numbers.
Citations
 ↑ (Gouvêa 1994)
 ↑ (Hensel 1897)
 ↑ See Gérard Michon's article at
 ↑ (Kelley 2008)
 ↑ Bogomolny, Alexander. "padic Expansions". http://www.cuttheknot.org/blue/padicExpansion.shtml.
 ↑ Koç, Çetin. "A Tutorial on padic Arithmetic". http://cetinkoc.net/docs/r09.pdf.
 ↑ Madore, David. "A first introduction to padic numbers". http://www.madore.org/~david/math/padics.pdf.
 ↑ (Hazewinkel 2009)
 ↑ Bump, Daniel (1998). Automorphic Forms and Representations. Cambridge Studies in Advanced Mathematics. 55. Cambridge University Press. p. 277. ISBN 9780521658188.
 ↑ (Robert 2000)
 ↑ (Robert 2000)
 ↑ (Gouvêa 1997)
 ↑ (Gouvêa 1997)
 ↑ (Gouvêa 1997)
 ↑ ^{15.0} ^{15.1} ^{15.2} (Cassels 1986)
 ↑ ^{16.0} ^{16.1} (Koblitz 1980)
 ↑ (Gouvêa 1997)
 ↑ (Gouvêa 1997)
 ↑ (Robert 2000)
 ↑ (Hehner Horspool)
References
 Cassels, J. W. S. (1986), Local Fields, London Mathematical Society Student Texts, 3, Cambridge University Press, ISBN 0521315255
 Dedekind, Richard; Weber, Heinrich (2012), Theory of Algebraic Functions of One Variable, History of mathematics, 39, American Mathematical Society, ISBN 9780821883303. — Translation into English by John Stillwell of Theorie der algebraischen Functionen einer Veränderlichen (1882).
 Gouvêa, F. Q. (March 1994), "A Marvelous Proof", American Mathematical Monthly 101 (3): 203–222, doi:10.2307/2975598
 Gouvêa, Fernando Q. (1997), padic Numbers: An Introduction (2nd ed.), Springer, ISBN 3540629114
 Hazewinkel, M., ed. (2009), Handbook of Algebra, 6, North Holland, p. 342, ISBN 9780444532572, https://books.google.com/books?id=yimXZ7L9ZoC&pg=PA342
 Hehner, Eric C. R.; Horspool, R. Nigel (1979), "A new representation of the rational numbers for fast easy arithmetic", SIAM Journal on Computing 8 (2): 124–134, doi:10.1137/0208011, https://www.researchgate.net/publication/220617770
 Hensel, Kurt (1897), "Über eine neue Begründung der Theorie der algebraischen Zahlen", Jahresbericht der Deutschen MathematikerVereinigung 6 (3): 83–88, http://www.digizeitschriften.de/resolveppn/GDZPPN00211612X&L=2
 Kelley, John L. (2008) [1955], General Topology, New York: Ishi Press, ISBN 9780923891558
 Koblitz, Neal (1980), padic analysis: a short course on recent work, London Mathematical Society Lecture Note Series, 46, Cambridge University Press, ISBN 0521280605
 Robert, Alain M. (2000), A Course in padic Analysis, Springer, ISBN 0387986693
Further reading
 Bachman, George (1964), Introduction to padic Numbers and Valuation Theory, Academic Press, ISBN 0120702681
 Borevich, Z. I.; Shafarevich, I. R. (1986), Number Theory, Pure and Applied Mathematics, 20, Boston, MA: Academic Press, ISBN 9780121178512, https://books.google.com/books?id=njgVUjjOEAC
 Koblitz, Neal (1984), padic Numbers, padic Analysis, and ZetaFunctions, Graduate Texts in Mathematics, 58 (2nd ed.), Springer, ISBN 0387960171
 Mahler, Kurt (1981), padic numbers and their functions, Cambridge Tracts in Mathematics, 76 (2nd ed.), Cambridge: Cambridge University Press, ISBN 0521231027, https://archive.org/details/padicnumbersthei0000mahl
 Steen, Lynn Arthur (1978), Counterexamples in Topology, Dover, ISBN 048668735X
External links
 Weisstein, Eric W.. "padic Number". http://mathworld.wolfram.com/padicNumber.html.
 "padic integers". http://planetmath.org/?op=getobj&from=objects&id=3118.
 padic number at Springer Online Encyclopaedia of Mathematics
 Completion of Algebraic Closure – online lecture notes by Brian Conrad
 An Introduction to padic Numbers and padic Analysis  online lecture notes by Andrew Baker, 2007
 Efficient padic arithmetic (slides)
 Introduction to padic numbers
Original source: https://en.wikipedia.org/wiki/Padic number.
Read more 