login
A037791
Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,0,1.
1
3, 29, 261, 2350, 21153, 190379, 1713411, 15420700, 138786303, 1249076729, 11241690561, 101175215050, 910576935453, 8195192419079, 73756731771711, 663810585945400, 5974295273508603
OFFSET
1,1
FORMULA
G.f.: x*(3-x+x^2) / ( (x-1)*(9*x-1)*(x^2+1) ). - R. J. Mathar, May 01 2015
MATHEMATICA
Module[{nn=20, d}, d=PadRight[{}, nn, {3, 2, 0, 1}]; Table[FromDigits[ Take[ d, n], 9], {n, nn}]] (* Harvey P. Dale, Sep 19 2012 *)
CROSSREFS
Sequence in context: A354402 A135163 A074366 * A037672 A037798 A224754
KEYWORD
nonn,base,easy
STATUS
approved