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

A037574
Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,2.
0
2, 19, 173, 1559, 14032, 126290, 1136612, 10229509, 92065583, 828590249, 7457312242, 67115810180, 604042291622, 5436380624599, 48927425621393, 440346830592539, 3963121475332852
OFFSET
1,1
FORMULA
G.f.: x*(2+x+2*x^2) / ( (x-1)*(9*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 26 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 1, 2}], 9], {n, 20}] (* or *) LinearRecurrence[ {9, 0, 1, -9}, {2, 19, 173, 1559}, 20] (* Harvey P. Dale, Jul 20 2020 *)
CROSSREFS
Sequence in context: A224753 A037558 A037494 * A037742 A037637 A163067
KEYWORD
nonn,base,easy
STATUS
approved