login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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

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

%S 3,29,261,2350,21153,190379,1713411,15420700,138786303,1249076729,

%T 11241690561,101175215050,910576935453,8195192419079,73756731771711,

%U 663810585945400,5974295273508603

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

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

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

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

%t Module[{nn=20,d},d=PadRight[{},nn,{3,2,0,1}];Table[FromDigits[ Take[ d,n],9],{n,nn}]] (* _Harvey P. Dale_, Sep 19 2012 *)

%K nonn,base,easy

%O 1,1

%A _Clark Kimberling_