OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,1,-1,-2).
FORMULA
From Wesley Ivan Hurt, Jun 26 2022: (Start)
G.f.: (1-x)^(-1)/(1-2*x-3*x^2-2*x^3).
a(n) = 3*a(n-1) + a(n-2) - a(n-3) - 2*a(n-4). (End)
MATHEMATICA
LinearRecurrence[{3, 1, -1, -2}, {1, 3, 10, 32}, 30] (* Harvey P. Dale, May 12 2024 *)
PROG
(PARI) Vec((1-x)^(-1)/(1-2*x-3*x^2-2*x^3)+O(x^99)) \\ Charles R Greathouse IV, Sep 27 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Nov 17 2002
STATUS
approved