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

%I #11 Dec 27 2015 18:44:16

%S 3,28,254,2286,20577,185194,1666748,15000732,135006591,1215059320,

%T 10935533882,98419804938,885778244445,7972004200006,71748037800056,

%U 645732340200504,5811591061804539

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

%H Harvey P. Dale, <a href="/A037784/b037784.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+x+2*x^2) / ( (x-1)*(9*x-1)*(1+x)*(x^2+1) ). - _R. J. Mathar_, May 01 2015

%t Table[FromDigits[PadRight[{},n,{3,1,2,0}],9],{n,20}] (* _Harvey P. Dale_, Dec 27 2015 *)

%K nonn,base,easy

%O 1,1

%A _Clark Kimberling_