OFFSET
0,3
REFERENCES
Miklos Bona, editor, Handbook of Enumerative Combinatorics, CRC Press, 2015, page 48.
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (1,1,-1,1).
FORMULA
a(n) = a(n-1) + a(n-2) - a(n-3) + a(n-4) for n>4. - Colin Barker, Jan 06 2019
MATHEMATICA
CoefficientList[Series[(x + 2*x^2 - 3*x^3 + 4*x^4)/(1 - x - x^2 + x^3 - x^4), {x, 0, 50}], x] (* Amiram Eldar, Jan 11 2019 *)
LinearRecurrence[{1, 1, -1, 1}, {0, 1, 3, 1, 7}, 50] (* Harvey P. Dale, Jan 29 2023 *)
PROG
(PARI) concat(0, Vec(x*(1 + 2*x - 3*x^2 + 4*x^3) / (1 - x - x^2 + x^3 - x^4) + O(x^50))) \\ Colin Barker, Jan 06 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Dec 25 2018
STATUS
approved