login
A037784
Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 3,1,2,0.
1
3, 28, 254, 2286, 20577, 185194, 1666748, 15000732, 135006591, 1215059320, 10935533882, 98419804938, 885778244445, 7972004200006, 71748037800056, 645732340200504, 5811591061804539
OFFSET
1,1
FORMULA
G.f.: x*(3+x+2*x^2) / ( (x-1)*(9*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, May 01 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {3, 1, 2, 0}], 9], {n, 20}] (* Harvey P. Dale, Dec 27 2015 *)
CROSSREFS
Sequence in context: A321385 A037777 A037665 * A037588 A307885 A076723
KEYWORD
nonn,base,easy
STATUS
approved