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

A037568

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

Terms

    a(0) =2a(1) =7a(2) =23a(3) =71a(4) =214a(5) =644a(6) =1934a(7) =5803a(8) =17411a(9) =52235a(10) =156706a(11) =470120a(12) =1410362a(13) =4231087a(14) =12693263a(15) =38079791a(16) =114239374a(17) =342718124a(18) =1028154374a(19) =3084463123a(20) =9253389371a(21) =27760168115a(22) =83280504346a(23) =249841513040a(24) =749524539122

External references