OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-3,1,0,1,-3,3,-1).
FORMULA
a(n)=(n + 5)*(2*n^2 + 11*n + 54)/30 - (1 + ( - 1/2 - 1/10*5^(1/2))*cos(2*n*Pi/5) + (1/10*(3*(5 - 5^(1/2))^(1/2) + 2*(5 + 5^(1/2))^(1/2))*2^(1/2))*sin(2*n*Pi/5) + (1/10*5^(1/2) - 1/2)*cos(4*n*Pi/5) + (1/10*(2*(5 - 5^(1/2))^(1/2) - 3*(5 + 5^(1/2))^(1/2))*2^(1/2))*sin(4*n*Pi/5))/5 - Richard Choulet, Dec 14 2008
G.f. x*( 9-14*x+7*x^2+x^3-x^4-8*x^5-6*x^7+14*x^6 ) / ( (x^4+x^3+x^2+x+1)*(x-1)^4 ). - R. J. Mathar, Jun 22 2013
a(n) ~ n^3/15. - Charles R Greathouse IV, Jun 02 2026
MATHEMATICA
LinearRecurrence[{3, -3, 1, 0, 1, -3, 3, -1}, {9, 13, 19, 28, 39, 53, 70, 91}, 60] (* Harvey P. Dale, May 14 2026 *)
PROG
(PARI) a(n)=(2*n^3+15*n^2+73*n+28537855\31^(n%5)%31*6)/30 \\ Charles R Greathouse IV, Jun 02 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
STATUS
approved
