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