OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,0,1,-3).
FORMULA
G.f.: x*(1+2*x+2*x^2) / ( (x-1)*(3*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015
MATHEMATICA
nn=40; With[{c=PadRight[{}, nn, {1, 2, 2}]}, Table[FromDigits[Take[c, n], 3], {n, nn}]] (* Harvey P. Dale, Jul 15 2012 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved