login
A037644
Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 2,3,1.
0
2, 21, 190, 1712, 15411, 138700, 1248302, 11234721, 101112490, 910012412, 8190111711, 73711005400, 663399048602, 5970591437421, 53735322936790, 483617906431112, 4352561157880011, 39173050420920100, 352557453788280902, 3173017084094528121
OFFSET
1,1
FORMULA
G.f.: x*(x+2)*(1+x) / ( (x-1)*(9*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
MATHEMATICA
Module[{nn=30, b9}, b9=PadRight[{}, nn, {2, 3, 1}]; Table[FromDigits[ Take[ b9, n], 9], {n, nn}]] (* or *) LinearRecurrence[{9, 0, 1, -9}, {2, 21, 190, 1712}, 30] (* Harvey P. Dale, May 21 2014 *)
CROSSREFS
Sequence in context: A037749 A037630 A037756 * A329553 A365061 A110253
KEYWORD
nonn,base
EXTENSIONS
More terms from Harvey P. Dale, May 21 2014
STATUS
approved