Notation
There are several different conventions for writing p-adic expansions. So far this article has used a notation for p-adic expansions in which powers of p increase from right to left. With this right-to-left notation the 3-adic expansion of 1⁄5, for example, is written as
When performing arithmetic in this notation, digits are carried to the left. It is also possible to write p-adic expansions so that the powers of p increase from left to right, and digits are carried to the right. With this left-to-right notation the 3-adic expansion of 1⁄5 is
p-adic expansions may be written with other sets of digits instead of {0, 1, …, p − 1}. For example, the 3-adic expansion of 1/5 can be written using balanced ternary digits {1,0,1} as
In fact any set of p integers which are in distinct residue classes modulo p may be used as p-adic digits. In number theory, Teichmüller digits are sometimes used.
Read more about this topic: p-adic Number