%I #9 Jul 08 2017 18:58:24
%S 2,8,25,77,233,700,2102,6308,18925,56777,170333,511000,1533002,
%T 4599008,13797025,41391077,124173233,372519700,1117559102,3352677308,
%U 10058031925,30174095777,90522287333,271566862000,814700586002
%N Base 3 digits are, in order, the first n terms of the periodic sequence with initial period 2,2,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+2*x+x^2) / ( (x-1)*(3*x-1)*(1+x+x^2) ). - _R. J. Mathar_, Apr 30 2015
%t Table[FromDigits[PadRight[{},n,{2,2,1}],3],{n,30}] (* or *) LinearRecurrence[ {3,0,1,-3},{2,8,25,77},30] (* _Harvey P. Dale_, Jul 08 2017 *)
%K nonn,base,easy
%O 1,1
%A _Clark Kimberling_
|