We happen to have

which is to say, the base-8 representation of 1/7 is

This follows from the well-known result on geometric series,

if
. With
and
, we have

Uniformly multiplying each term on the right by an appropriate power of 2, we have

Now observe that for
, each numerator on the right side side will contain a factor of 16 that can be eliminated.

That is,



etc. so that

and thus the base-16 representation of 1/7 is

and the first 10 digits after the (hexa)decimal point are {2, 4, 9, 2, 4, 9, 2, 4, 9, 2}.