Cam's Blog

March 9, 2010

p-adic interpolation, part 1

Filed under: Math — cfranc @ 6:39 pm

It occured to me that I haven’t defined a p-adic number on this blog yet. I’ve been reading about Morita’s p-adic gamma function and the Gross-Koblitz formula recently, so I’m going to take this opportunity to introduce p-adic integers, discuss how one uses interpolation to define important p-adic functions, and give the example of the p-adic gamma function. At some point I may come back and discuss the Gross-Koblitz formula, to help motivate why one might care about the existence of a p-adic gamma function (although, up to this point in my blog, I’ve been pretty consistant in not coming back and doing follow up posts. I’ll pretend that this is a consequence of the forward momentum of my work, and not of my laziness…)

Below I plan to:

  • introduce p-adic integers in as down-to-earth a manner as possible
  • introduce the topology on p-adic integers. The discussion will become more technical here, but this is necessary to discuss interpolation

After this I’ll pause for the day and come back later in the week to discuss p-adic interpolation and give examples, in particular Morita’s p-adic gamma function.

p-adic integers

Last week I met with my advisor and mentioned a way that I could speed up a computation I’ve been working on, essentially just by switching from rational arithmetic to p-adic arithmetic. He responded as though doing anything else would be absurd; indeed, he remarked that “p-adic numbers are much simpler than rational numbers, just as real numbers are simpler than rational numbers”. It was a simple observation that every number theory student is told when they first encounter p-adic numbers, but one doesn’t become fully conscious of it until one has spent considerable time working with p-adic numbers in a concrete manner. The same technical machinery is used to construct the p-adic numbers from the rational numbers as is used to construct the real numbers from the rational numbers, but our everyday familiarity with decimal expansions seems to make this technical baggage more palatable when constructing the real numbers.

I won’t give the definition of p-adic numbers in terms of completions, which would stress the analogy between p-adic numbers and real numbers. Instead I’ll give a simpler but more ad hoc definition of p-adic integers, which provides a concrete description of what p-adic integers look like, and how one does arithmetic with them in practice.

First we must fix a prime number p. The set of all p-adic integers will be denoted \mathbb Z_p. It consists of all formal infinite sums

a_0 + a_1p +  a_2p^2 + \cdots + a_np^n + \cdots,

where each a_i is an integer in the range 0 \leq a_i \leq p-1. If you’ve seen calculus, this should remind you of a Taylor series in the “variable” p, or alternatively, as an infinite expansion of an integer in “base p“. Such an infinite sum doesn’t make sense if you interpret the terms as rational numbers, as it would blow up to infinity in this interpretation. If this makes you queasy, just take this definition of a p-adic integer as a formal construction and imagine that the plus signs in the expression above are simply placeholders used to separate terms. Note, though, that there is a precise way to make sense of this infinite sum; we’ll give a few details in the section on topology.

A crucial property is that p-adic integers can be added, subtracted and multiplied. They are an example of a mathematical gadget known as a ring. Two p-adic integers are added by the elementary school rule of “addition with carries”. That is, add the leftmost two terms. If the result is bigger than p-1, then you’ll need to carry to the next term to the right and continue. Here is an example: we’ll consider the two p-adic integers 1 and (p-1) + (p-1)p + (p-1)p^2 + \cdots. Their sum is easy to compute:

1 + ((p-1) + (p-1)p + (p-1)p^2 + \cdots )
= p + (p-1)p + (p-1)p^2 + \cdots
= (1 + p-1)p + (p-1)p^2 + \cdots
= p^2 + (p-1)p^2 + \cdots
etc, etc,

Continuing this process indefinitely shows that all the terms vanish as they are carried higher and higher, so that the result is zero (Note: if you’re concerned about such infinite processes, there is a way to make this precise using limits). This example shows that the series (p-1) + (p-1)p + (p-1)p^2 + \cdots acts as an additive inverse to 1 in the p-adic integers. This justifies writing -1 = (p-1) + (p-1)p + (p-1)p^2 + \cdots as elements of \mathbb Z_p, as it is this property of acting as an additive inverse for 1 which characterizes the integer -1.

We won’t write out the precise details, but one can define multiplication of p-adic numbers analogously by extending the elementary school rule for multiplying integers using carries, possibly an infinite number of them. Then one can check that multiplying by -1 allows one to subtract p-adic numbers. That is, we have explained how to multiply and add p-adic numbers, so to work out x - y, one can instead compute x + (-1)y.

By writing each positive integer in terms of a base p expansion, one can think of every positive integer as a p-adic integer. For example, the base 3 expansion of 34 is given by 34 = 1 + 2 \cdot 3 + 3^2, which allows us to think of 34 as a p-adic integer. If n is a negative integer, then we can write the positive integer -n as a p-adic integerr as above and multiply by -1 = (p-1) + (p-1)p + \cdots to obtain a p-adic expression for n. Note that this p-adic expression for a negative integer will be in terms of an infinite number of nonzero terms, while for a positive integer it will be given simply by the (finite) base p expansion. This shows that each integer defines a p-adic integer (we have not argued that all the p-adic expansions of usual integers are distinct, but this is the case. This is clear for positive integers and only slightly less so for negative ones). In spite of this, the collection of p-adic integers is much larger than the integers alone. Indeed, a Cantor-style diagonal argument shows that the set of p-adic integers is not countable.

The p-adic topology

The p-adic topology on \mathbb Z_p comes from an absolute value defined in the following way: let x = a_0 + a_1p + a_2p^2 + \cdots be a p-adic integer. If x = 0 then we define the p-adic absolute value to be |x|_p = 0. Otherwise we may let n be the smallest positive integer such that a_n \neq 0. In this case we define |x|_p = p^{-n}. This definition means that if a p-adic integer is “highly divisible by p“, then it is very small. The sequence of integers 1, p, p^2, p^3, \ldots does not converge in the ordinary topology on real numbers, but it converges to zero in the p-adic topology.

We’ll illustrate this with an example. Consider two p-adic numbers x = 1 + 2p + 2p^2 + 3p^3 and y = 1 + 2p + 2p^2 + 2p^3, where we suppose p > 3 so that we don’t have to carry to make sense of either expression. Then of course x - y is equal to p^3, which means that |x - y|_p = 1/p^3 by definition. Thus x and y are somewhat close p-adically. If we think of them as integers, though, then the difference is still p^3, which is quite large in the ordinary way that we measure distances between numbers.

The important property of this topology that we’ll need is that the integers are dense in the p-adic integers. This property means that there are integers as close as we like to any given p-adic integer. In fact, truncating an infinite expression x = a_0 + a_1p + a_2p^2 + \cdots at some high power of p gives a positive integer which approximates the p-adic integer x to a high precision. This is the p-adic analogue of the fact that there is a rational number between any two distinct real numbers.

Anyways, I’m visiting Jenna now and so don’t want to spend too much time at the keyboard. I’ll post more in some spare time later in the week.

Added: Here is a link to part 2.



  1. In the last example, should y = 1 + 2p + 2p^3 + 2p^3 be y = 1 + 2p + 2p^2 + 2p^3 ?

    btw, nice blog!

    Comment by timur — March 18, 2010 @ 9:02 pm

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at

%d bloggers like this: