OFFSET
0,2
COMMENTS
This is a companion to A366478.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = 3*n^4/2 - 2*n^3 + 3*n^2/2 + n + 1.
From Enrique Navarrete, Jan 01 2026: (Start)
a(n) = 5*a(n-1) - 10*a(n-2) + 10*a(n-3) - 5*a(n-4) + a(n-5).
G.f.: (x + 1)*(5*x^3 + 15*x^2 - 3*x + 1)/(1 - x)^5.
E.g.f.: (1/2)*exp(x)*(3*x^4 + 14*x^3 + 12*x^2 + 4*x + 2). (End)
MAPLE
a389626:= n -> 3*n^4/2 - 2*n^3 + 3*n^2/2 + n + 1;
MATHEMATICA
LinearRecurrence[{5, -10, 10, -5, 1}, {1, 3, 17, 85, 285}, 50] (* Paolo Xausa, Jan 03 2026 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jan 01 2026
STATUS
approved
