OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,-3,-4,3,2).
FORMULA
a(n) = sum(k=0..n, ((k*n-1)*sum(i=0..n-k, 2^i*binomial(k+1,n-k-i)*binomial(k+i,k)*(-1)^(n-i+1)))/(k+1)).
G.f.: x*(x-1)*(4*x^3-x^2-2*x+1) / ( (-1+2*x)*(x^2+x-1)^2 ).
MATHEMATICA
CoefficientList[Series[(4*x^4-5*x^3-x^2+3*x-1) / (2*x^5+3*x^4-4*x^3-3*x^2+4*x-1), {x, 0, 20}], x] (* Vaclav Kotesovec, Mar 15 2014 *)
PROG
(Maxima)
a(n):=sum(((k*n-1)*sum(2^i*binomial(k+1, n-k-i)*binomial(k+i, k)*(-1)^(n-i+1), i, 0, n-k))/(k+1), k, 0, n);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Kruchinin, Mar 14 2014
STATUS
approved