OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,1,2,-1).
FORMULA
G.f.: (1 - x - x^2)/(1 - 2*x - x^2 - 2*x^3 + x^4).
a(n) = 2*(n-1) + a(n-2) + 2*a(n-3) - a(n-4).
a(n) = Sum_{k=0..floor(n/2)} C(2*(n-k), 2*k).
a(n) = Sum_{k=0..floor(n/2)} Sum_{j=0..n-k} C(2*(n-2*k), j) * C(2*k, j).
a(n) = A005252(2*n). - Seiichi Manyama, Aug 11 2024
MATHEMATICA
LinearRecurrence[{2, 1, 2, -1}, {1, 1, 2, 7}, 30] (* Harvey P. Dale, Jun 01 2021 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jun 04 2005
STATUS
approved