  In this paper we give an algorithm to calculate the coefficients of the
p-adic expansion of a rational numbers, and we give a method to decide whether
this expansion is periodic or ultimately periodic.
