OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,3,4,-4).
FORMULA
a(n) = 2*a(n-1) + 3*a(n-2) + 4*a(n-3) - 4*a(n-4).
a(n) = (1/2) * Sum_{k=0..floor(n/2)} 2^k * binomial(2*n-2*k+2,2*k+1).
PROG
(PARI) my(N=30, x='x+O('x^N)); Vec(1/(1-2*x-3*x^2-4*x^3+4*x^4))
(PARI) a(n) = sum(k=0, n\2, 2^k*binomial(2*n-2*k+2, 2*k+1))/2;
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Aug 09 2024
STATUS
approved