Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 3,1,0.

A037666

Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 3,1,0.

Terms

    a(0) =3a(1) =31a(2) =310a(3) =3103a(4) =31031a(5) =310310a(6) =3103103a(7) =31031031a(8) =310310310a(9) =3103103103a(10) =31031031031a(11) =310310310310

External references