OFFSET
6,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-2,-2,3,-1).
FORMULA
a(n)=(n + 6)*(n^2 + 6*n + 38)/6 - 0.5*sin(n*Pi/2)^2 [From Richard Choulet, Dec 13 2008]
G.f. x^6*( 38-62*x-8*x^2+61*x^3-27*x^4 ) / ( (1+x)*(x-1)^4 ). - R. J. Mathar, Jun 22 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved