OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,0,-1,-1).
FORMULA
G.f.: (1-x)^(-1)/(1-2*x-2*x^2-x^3).
a(n) = 3*a(n-1)-a(n-3)-a(n-4). - Wesley Ivan Hurt, Mar 10 2015
MATHEMATICA
CoefficientList[Series[(1 - x)^(-1)/(1 - 2*x - 2*x^2 - x^3), {x, 0, 30}], x] (* Wesley Ivan Hurt, Mar 10 2015 *)
LinearRecurrence[{3, 0, -1, -1}, {1, 3, 9, 26}, 30] (* Harvey P. Dale, Jul 17 2024 *)
PROG
(PARI) Vec(1/((1-x)*(1-2*x-2*x^2-x^3)) + O(x^30)) \\ Michel Marcus, Mar 10 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Nov 17 2002
STATUS
approved