OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-3,0,3,-3,1).
FORMULA
G.f.: ( -1-x-x^2-2*x^3 ) / ( (1+x)*(x^2-x+1)*(x-1)^3 ). - R. J. Mathar, Dec 15 2015
a(n) = (9 + 72*n + 30*n^2 + 32*cos((n + 1)*Pi/3) - (-1)^n)/24. - Greg Dresden, Jun 22 2021
MATHEMATICA
LinearRecurrence[{3, -3, 0, 3, -3, 1}, {1, 4, 10, 20, 33, 48}, 50] (* Harvey P. Dale, Jun 14 2021 *)
Table[(9 + 72n + 30n^2 + 32Cos[(n + 1)Pi/3] - (-1)^n)/24, {n, 0, 40}] (* Greg Dresden, Jun 22 2021 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved