OFFSET
0,3
COMMENTS
Alternating row sums of A291452.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..155
MAPLE
A291976 := proc(n) exp(1 - (cos(z) + cosh(z))/2):
(4*n)!*coeff(series(%, z, 4*(n+1)), z, 4*n) end:
seq(A291976(n), n=0..12);
# second Maple program:
b:= proc(n, t) option remember; `if`(n=0, 1-2*t, add(
b(n-4*j, 1-t)*binomial(n-1, 4*j-1), j=1..n/4))
end:
a:= n-> b(4*n, 0):
seq(a(n), n=0..20); # Alois P. Heinz, Aug 14 2019
MATHEMATICA
b[n_, t_] := b[n, t] = If[n == 0, 1-2t, Sum[b[n-4j, 1-t] * Binomial[n-1, 4j-1], {j, 1, n/4}]];
a[n_] := b[4n, 0];
Table[a[n], {n, 0, 20}] (* Jean-François Alcover, Jan 27 2023, after Alois P. Heinz *)
CROSSREFS
KEYWORD
sign
AUTHOR
Peter Luschny, Sep 07 2017
STATUS
approved