[go: up one dir, main page]

login
A037518
Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 2,0,1.
0
2, 18, 163, 1469, 13221, 118990, 1070912, 9638208, 86743873, 780694859, 7026253731, 63236283580, 569126552222, 5122138969998, 46099250729983, 414893256569849, 3734039309128641, 33606353782157770, 302457184039419932, 2722114656354779388
OFFSET
1,1
FORMULA
G.f.: x*(2+x^2) / ( (x-1)*(9*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 0, 1}], 9], {n, 20}] (* or *) LinearRecurrence[ {9, 0, 1, -9}, {2, 18, 163, 1469}, 20] (* Harvey P. Dale, May 20 2018 *)
CROSSREFS
Sequence in context: A270369 A352654 A144513 * A037721 A245998 A005260
KEYWORD
nonn,base,easy
EXTENSIONS
More terms from Harvey P. Dale, May 20 2018
STATUS
approved