OFFSET
0,4
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (4,-5,0,5,-4,1).
FORMULA
G.f.: x^2*(1 + x + 7*x^2 - 3*x^3)/((1 - x)^5*(1 + x)). - Andrew Howroyd, Dec 29 2024
PROG
(PARI) a(n)={ (n^4/4 - 2*n^2 + 3*n - if (n%2, 5/4))/2 } \\ Harry J. Smith, Sep 28 2009
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Oct 25 2001
STATUS
approved