OFFSET
0,4
FORMULA
a(n) = 2*sum(m=1..n, sum(j=0..(n-m)/2, (binomial(m,n-m-2*j)*sum(i=0..(n-2*j)/2, (2*i+2*j-n)^n*binomial(n-2*j,i)*(-1)^(m-j-i)))/2^(n-2*j))), n>0, a(0)=1. - Vladimir Kruchinin, Jun 08 2011
MATHEMATICA
With[{nn=20}, CoefficientList[Series[1/(1-Sin[x]+Sin[x]^2), {x, 0, nn}], x] Range[0, nn]!] (* Harvey P. Dale, Mar 20 2015 *)
PROG
(Maxima)
a(n):=2*sum(sum((binomial(m, n-m-2*j)*sum((2*i+2*j-n)^n*binomial(n-2*j, i)*(-1)^(m-j-i), i, 0, (n-2*j)/2))/2^(n-2*j), j, 0, (n-m)/2), m, 1, n); /* Vladimir Kruchinin, Jun 08 2011 */
CROSSREFS
KEYWORD
sign
AUTHOR
STATUS
approved