|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
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
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|