
EXAMPLE

For n=3, the sequence of base2 digits of 1/3 is {0,1,0,1,0,1,0,1,0,1,0,1,...}. The ZivLempel encoding parses this into "phrases": {0}, {1}, {0,1}, {0,1,0}, {1,0}, {1,0,1}, {0,1,0,1}, {0,1,0,1,0}, {1,0,1,0}, {1,0,1,0,1}, {0,1,0,1,0,1}, ..., with lengths {1,1,2,3,2,3,4,5,4,5,6,7,6,7,8,9,8,9,10,11,...}. The differences are {0,1,1,1,1,1,1,1,1,1,1,1,1,...} which quickly becomes periodic with period 4. Thus a(3)=4.
