OFFSET
0,2
LINKS
Ray Chandler, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-2,1).
FORMULA
G.f.: -(x^4 + 4*x^3 + 4*x^2 + 4x + 1)/((x - 1)^3*(x^2 + x + 1)).
a(n) = 2*a(n-1) - a(n-2) + a(n-3) - 2*a(n-4) + a(n-5) for n > 5.
MATHEMATICA
LinearRecurrence[{2, -1, 1, -2, 1}, {1, 6, 15, 29, 48}, 50]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ray Chandler, Sep 03 2023
STATUS
approved