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

%I #11 Jun 13 2015 00:49:18

%S 3,29,262,2358,21225,191027,1719244,15473196,139258767,1253328905,

%T 11279960146,101519641314,913676771829,8223090946463,74007818518168,

%U 666070366663512,5994633299971611

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

%H Harvey P. Dale, <a href="/A037798/b037798.txt">Table of n, a(n) for n = 1..1000</a>

%H <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (9,0,0,1,-9).

%F G.f.: x*(3+2*x+x^2) / ( (x-1)*(9*x-1)*(1+x)*(x^2+1) ). - _R. J. Mathar_, Apr 30 2015

%t Module[{nn=20,c},c=PadRight[{},nn,{3,2,1,0}];Table[FromDigits[ Take[ c,n], 9],{n,nn}]] (* _Harvey P. Dale_, Apr 01 2014 *)

%K nonn,base,easy

%O 1,1

%A _Clark Kimberling_