How can I convert a truncated p-adic rational number back into its original form?

271 Views Asked by At

Suppose I have a rational number expressed in p-adic form, but truncated at some digit. E.g., $...111000111001_2$ truncated to $111000111001_2$ (which I understand are equivalent to ${\frac{1}{9}_{10}}$ and $3641_{10}$ respectively).

Obviously a truncated number can be extended in an infinite number of ways, but is there a formula that will produce the "simplest" or perhaps all rational number(s) that might have been responsible for the truncated form?

2

There are 2 best solutions below

1
On BEST ANSWER

Given the rational number $\,u/v,\,$ express it as a finite precision $p$-adic number $\,u/v = t + O(p^n).\,$ This means that $\,u/v \equiv t \pmod{ p^n}\,$ and $\,u = v\,t + w\, p^n\,$ for some number $w$. There are several ways to find $\,t\,$ given $\,u,v\,$ and $\,p^n.\,$ One method is to use Euclid's algorithm to solve the equation $\,u = v\,t + w\, p^n\,$ for $\,t,w.\,$ For example, to express $\,5/129\,$ up to $2$-adic precision $\,O(2^{12}),\,$ we get $\,5 = 129 \cdot 3461 -109 \cdot 2^{12}.\,$ To reverse the process, assume that we have $\,u/v = 3461 + O(2^{12})\,$ and want to find $\,u,v.\,$ Assuming that $\,u=5,\,$ the algorithm gives $\,5 = 129 \cdot 3461 - 109 \cdot 2^{12}\,$ and we recover $\,v=129.\,$ Assuming that $\,u=6,\,$ the algorithm gives $\,6 = -3122 \cdot 3461 + 2638 \cdot 2^{12}\,$ and we find $\,6/(-3122) = 3461 + O(2^{12}).\,$ Note that this process requires us to choose the numerator first and then finds the denomiator. To use your chosen example, we want to find $\, u/v = 3641 + O(2^{12})\,$ and suppose $\,u=1.\,$ Now the algorithm gives us $\,1 = 9 \cdot 3641 - 8 \cdot 2^{12}\,$ and $\,1/9 = 3641 + O(2^{12})\,$ is our approximation. Note that in this particular case, we can't do much better with a bigger numerator.

A similar method is used to find a rational number given a decimal approximation of a number $\,x.\,$ This big difference is that the algorithm gives rational upper and lower bounds at each step that get closer together at each step and the mediant of the bounds gets closer and closer to $\,x\,$at each step.

0
On

Just as it is the case with $n$-ary expansions of real numbers, a $p$-adic number is rational iff its $p$-adic expansion is eventually periodic.

For your specific example, there is an obvious choice of extending it with the repeated period $111000$ which gives you $1/9$. Although this might be understood from the context, one should still clarify that repeating period, because one formally has infinitely many other choices to extend the truncated expression in an eventually periodic way. ("Keeping" the truncated expression means you extend it with a period of $0$'s; but of course you can also choose the next 50000 digits arbitrarily and then declare that 50012-string the period to be repeated from now on. Or, after that just attach zeroes: This way you see there's even infinitely many natural numbers that extend your expression, namely, all that are congruent to it modulo $p^{\text{length of your truncated expression}}$.