%I #13 Jul 22 2021 04:56:01
%S 2,7,22,68,205,616,1850,5551,16654,49964,149893,449680,1349042,
%T 4047127,12141382,36424148,109272445,327817336,983452010,2950356031,
%U 8851068094,26553204284,79659612853,238978838560,716936515682
%N Base 3 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,1.
%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+x^2) / ( (x-1)*(3*x-1)*(1+x+x^2) ). - _R. J. Mathar_, Nov 21 2011
%t With[{nn=30},Table[FromDigits[PadRight[{},n,{2,1,1}],3],{n,nn}]] (* or *) LinearRecurrence[{3,0,1,-3},{2,7,22,68},30] (* _Harvey P. Dale_, Sep 06 2016 *)
%K nonn,base
%O 1,1
%A _Clark Kimberling_