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

A037520

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

Terms

    a(0) =2a(1) =7a(2) =21a(3) =65a(4) =196a(5) =588a(6) =1766a(7) =5299a(8) =15897a(9) =47693a(10) =143080a(11) =429240a(12) =1287722a(13) =3863167a(14) =11589501a(15) =34768505a(16) =104305516a(17) =312916548a(18) =938749646a(19) =2816248939a(20) =8448746817a(21) =25346240453a(22) =76038721360a(23) =228116164080a(24) =684348492242

External references