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”).

A037798
Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,1,0.
1
3, 29, 262, 2358, 21225, 191027, 1719244, 15473196, 139258767, 1253328905, 11279960146, 101519641314, 913676771829, 8223090946463, 74007818518168, 666070366663512, 5994633299971611
OFFSET
1,1
FORMULA
G.f.: x*(3+2*x+x^2) / ( (x-1)*(9*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Apr 30 2015
MATHEMATICA
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 *)
CROSSREFS
Sequence in context: A074366 A037791 A037672 * A224754 A162928 A124263
KEYWORD
nonn,base,easy
STATUS
approved