Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,0,1.

A037787

Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,0,1.

Terms

    a(0) =3a(1) =17a(2) =85a(3) =426a(4) =2133a(5) =10667a(6) =53335a(7) =266676a(8) =1333383a(9) =6666917a(10) =33334585a(11) =166672926a(12) =833364633a(13) =4166823167a(14) =20834115835a(15) =104170579176a(16) =520852895883

External references