OFFSET
0,3
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (3,-2,-2,3,-1).
FORMULA
Conjecture: a(n) = 5*floor((2n^3 - 3n^2 - n)/24) + floor((2(n-1)^3 - 3(n-1)^2 - (n-1))/24) + n, which fits all of the listed terms.
From R. J. Mathar, May 23 2010: (Start)
a(n) = 3*a(n-1) - 2*a(n-2) - 2*a(n-3) + 3*a(n-4) - a(n-5) = n^3/2 - n^2 + n + (1-(-1)^n)/4.
G.f.: x*(1 - x + 4*x^2 + 2*x^3)/((1+x)*(x-1)^4). (End)
MATHEMATICA
LinearRecurrence[{3, -2, -2, 3, -1}, {0, 1, 2, 8, 20}, 50] (* Paolo Xausa, Feb 22 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John W. Layman, Oct 04 2000
STATUS
approved