p-adic numbers

Formal power series

Let RR be a commutative ring with 11. Formal power series in the indeterminate xx with coefficients from ring RR are all formal infinite sums:

n=0anxn=a0+a1x+a2x2+a3x3+\sum_{n=0}^{\infty} a_nx^n = a_0 + a_1x + a_2x^2 + a_3x^3 + \cdots

The addition and multiplication are defined as if the power series were polynomials of infinite degree. The ring of formal power series with coefficients from ring RR is denoted by R[[x]]R[[x]]. R[[x]]R[[x]] is a commutative ring with 11.

Proposition:

n=0anxn\sum_{n=0}^{\infty} a_nx^n is a unit in R[[x]]R[[x]] if and only if a0a_0 is a unit in RR.

Let’s first observe:

11x=1+x+x2+\frac{1}{1-x} = 1 + x + x^2 + \cdots

And:

11+x=1x+x2\frac{1}{1+x} = 1 - x + x^2 - \cdots

n=0anxn\sum_{n=0}^{\infty} a_nx^n can be written as:

a0(1+n=1ana0xn)a_0 \cdot (1 + \sum_{n=1}^{\infty} \frac{a_n}{a_0}x^n)

Let’s denote f=n=1ana0xnf = \sum_{n=1}^{\infty} \frac{a_n}{a_0}x^n. Note that we need the inverse of a0a_0 here.

We have:

11+f=1f+f2\frac{1}{1+f} = 1 - f + f^2 - \cdots

Thus, the inverse of n=0anxn\sum_{n=0}^{\infty} a_nx^n is:

a01(1f+f2)a_0^{-1}(1 - f + f^2 - \cdots)

Definition:

Let RR be a ring. Ring R((x))R((x)) of formal Laurent series with coefficients from RR is defined by: R((x))={nNanxnanRR((x)) = \{ \sum_{n\geq N}^{\infty} a_nx^n \mid a_n \in R and NZ}N \in \mathbb{Z} \}.

A formal Laurent series is a generalization of a formal power series in which finitely many negative exponents are permitted.

Proposition:

If FF is a field, then F((x))F((x)) is a field.

To get a bit of a feeling why this is true, let’s observe whether ax2+bx\frac{a}{x^2} + \frac{b}{x} has an inverse:

ax2+bx=a+bxx2\frac{a}{x^2} + \frac{b}{x} = \frac{a + bx}{x^2}

The question is whether we can write x2a+bx\frac{x^2}{a + bx} as a formal Laurent series. That’s the same as asking whether 1a+bx\frac{1}{a + bx} can be written as a formal Laurent series. And we can, since:

1a+bx=1a11+a1bx\frac{1}{a + bx} = \frac{1}{a} \cdot \frac{1}{1 + a^{-1}bx}

We can develop 11+a1bx\frac{1}{1 + a^{-1}bx} into a formal Laurent series as we did above for 11+x.\frac{1}{1 + x}.

Thus, in F((x))F((x)), we can find the inverse of ax2+bx\frac{a}{x^2} + \frac{b}{x}.

Proposition:

If FF is a field, the field of fractions of F[[x]]F[[x]] is the ring F((x))F((x)).

The proposition states that a0+a1x+a2x2+a_0 + a_1x + a_2x^2 + \cdots has an inverse in F((x))F((x)). That’s the same as saying that 1a0+a1x+a2x2+\frac{1}{a_0 + a_1x + a_2x^2 + \cdots} can be written as a formal Laurent series. Indeed, since a0a_0 has an inverse, we can use the same trick as above for 11+x\frac{1}{1 + x}.

Note that a formal power series is a generalization of a polynomial, where the number of terms is allowed to be infinite and there is no requirement of convergence.

This last thing about convergence is crucial. Note that the equation below is true only for x<1|x| < 1:

11+x=1x+x2\frac{1}{1+x} = 1 - x + x^2 - \cdots

For x>1|x| > 1, we do:

11+x=1x11+1x\frac{1}{1+x} = \frac{1}{x} \cdot \frac{1}{1 + \frac{1}{x}}

Now, in the expression 11+1x\frac{1}{1 + \frac{1}{x}}, it holds 1x<1|\frac{1}{x}| < 1 and we can use the same trick again. But note that the two series we get for x<1|x| < 1 and x>1|x| > 1 are different.

But the theory of formal power series ignores the question of convergence by assuming that the variable xx does not denote any numerical value.

p-adic

A p-adic integer is an infinite formal sum of the form:

n0anpn\sum_{n\geq 0}^{\infty} a_np^n

Having an infinite formal sum, it means:

11p=1+p+p2+p3+...\frac{1}{1-p} = 1 + p + p^2 + p^3 + ...

That means we ignore the question of convergence as above.

For example:

16=117=1+7+72+73+...\frac{1}{-6} = \frac{1}{1-7} = 1 + 7 + 7^2 + 7^3 + ...

7-adic number 16\frac{-1}{6} is thus the infinite series given above.

What about 12\frac{1}{2}? We need to transform the denominator to the form 17i1 - 7^{i}.

12=24172=(3+37)172=(3+37)(1+72+74+...)=(3+37+372+373...)\frac{1}{2} = \frac{-24}{1-7^2} = \frac{-(3+3 \cdot 7)}{1 - 7^2} = -(3 + 3 \cdot 7)(1 + 7^2 + 7^4 + ...) = -(3 + 3 \cdot 7 + 3 \cdot 7^2 + 3 \cdot 7^3 ...)

A wonderful introduction to p-adic numbers is p-adic numbers and Diophantine equations (opens new window). There is an example of computing 7-adic square of 22.

We first compute x2=2mod7x^2 = 2 \; mod \; 7. We get x=3x = 3 or x=3x = -3. Let’s take the first solution and denote it by x0x_0.

Then we compute x2=2mod72x^2 = 2 \; mod \; {7^2}. We get x1=3+17=10x_1 = 3 + 1 \cdot 7 = 10

Then we compute x2=2mod73x^2 = 2 \; mod \; {7^3}. We get x2=3+17+272=108x_2 = 3 + 1 \cdot 7 + 2 \cdot 7^2 = 108.

The sequence (x0,x1,x2,...)(x_0, x_1, x_2, ...) is a 7-adic approximation of 2\sqrt 2.

Note that xk1=xkmod7kx_{k-1} = x_k \; mod \; {7^k} for k=1,2,3,...k = 1, 2, 3, ...

In fact, this is how p-adic number is defined.

Definition: Let pp be a prime number. We say that a sequence of integers (x0,x1,x2,...)(x_0, x_1, x_2, ...) gives a p-adic integer if

xk=xk1modxkfork=1,2,3,...x_k = x_{k-1} \; mod \; {x^k} \; for \; k = 1,2,3,...

(x0,x1,x2,...)(x_0, x_1, x_2, ...) is called a canonical sequence. The p-adic expansion in the above case is (3,1,2,...).(3, 1, 2, ...).