p-adic continued fractions III