%I #9 Apr 07 2022 16:04:43
%S 2,7,23,71,214,644,1934,5803,17411,52235,156706,470120,1410362,
%T 4231087,12693263,38079791,114239374,342718124,1028154374,3084463123,
%U 9253389371,27760168115,83280504346,249841513040,749524539122
%N Base 3 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,2.
%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (3,0,1,-3).
%F G.f.: x*(2+x+2*x^2) / ( (x-1)*(3*x-1)*(1+x+x^2) ). - _R. J. Mathar_, Apr 30 2015
%t Table[FromDigits[PadRight[{},n,{2,1,2}],3],{n,30}] (* _Harvey P. Dale_, Apr 07 2022 *)
%K nonn,base,easy
%O 1,1
%A _Clark Kimberling_
|