login
A037651
Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 3,0,1.
0
3, 27, 244, 2199, 19791, 178120, 1603083, 14427747, 129849724, 1168647519, 10517827671, 94660449040, 851944041363, 7667496372267, 69007467350404, 621067206153639, 5589604855382751
OFFSET
1,1
FORMULA
G.f.: x*(3+x^2) / ( (x-1)*(9*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {3, 0, 1}], 9], {n, 20}] (* or *) LinearRecurrence[ {9, 0, 1, -9}, {3, 27, 244, 2199}, 20] (* Harvey P. Dale, Mar 15 2016 *)
CROSSREFS
Sequence in context: A361842 A168495 A037763 * A037770 A037658 A370271
KEYWORD
nonn,base,easy
STATUS
approved