OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,2,-4,-1,2).
FORMULA
a(n) = 2^(n+4)/9 + (3*n+8)*(-1)^n/36 - (n+4)/4.
a(n) = Sum_{k=0..floor(n/2)} A000975(n-2*k+1). - Paul Barry, Jan 18 2009
MATHEMATICA
CoefficientList[Series[1/((1 - 2*x)*(1 - x^2)^2), {x, 0, 50}], x] (* G. C. Greubel, Oct 11 2017 *)
LinearRecurrence[{2, 2, -4, -1, 2}, {1, 2, 6, 12, 27}, 40] (* Harvey P. Dale, Oct 23 2019 *)
PROG
(PARI) for(n=0, 50, print1(2^(n+4)/9 + (3*n+8)*(-1)^n/36 - (n+4)/4, ", ")) \\ G. C. Greubel, Oct 11 2017
(Magma) [2^(n+4)/9 + (3*n+8)*(-1)^n/36 - (n+4)/4: n in [0..30]]; // G. C. Greubel, Oct 11 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Feb 13 2004
STATUS
approved