I’ve been amusing myself with -adic arithmetic lately: I’ve never really got to know it until now.

We are all familiar with the fact that every gets represented in as a repeating decimal, or whatever your favourite base is. (Here I count terminating decimals as decimals which eventually repeat .) The converse is of course true as well: repeating decimals are rationals.

Is this true in as well? That is, are the rationals precisely those -adics which are eventually repeating (in the other direction, of course)? One direction, that repeating -adics are rational, is pretty obvious: if and then

is rational. What about the converse?

The converse seems trickier. How again did we do it in ? I don’t even remember: it’s one of those things that we know so fundamentally (until very recently, was almost defined in my brain as the reals which eventually repeat) that we forget how to prove it.

Who cares how to prove it? It is true, and it says, in base , that if then there exists and such that