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

A037777
Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 3,1,0,2.
0
3, 28, 252, 2270, 20433, 183898, 1655082, 14895740, 134061663, 1206554968, 10858994712, 97730952410, 879578571693, 7916207145238, 71245864307142, 641212778764280, 5770915008878523
OFFSET
1,1
FORMULA
G.f.: x*(3-2*x+2*x^2) / ( (x-1)*(9*x-1)*(x^2+1) ). - R. J. Mathar, May 01 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {3, 1, 0, 2}], 9], {n, 20}] (* or *) LinearRecurrence[{10, -10, 10, -9}, {3, 28, 252, 2270}, 20] (* Harvey P. Dale, Sep 26 2023 *)
CROSSREFS
Sequence in context: A341926 A323959 A321385 * A037665 A037784 A037588
KEYWORD
nonn,base,easy
STATUS
approved