OFFSET
0,4
COMMENTS
"Number of positive terms in the ordinary development of a determinant having negative elements in the diagonal and positive elements elsewhere." [Muir]
REFERENCES
T. Muir, A Treatise on the Theory of Determinants. Dover, NY, 1960, Sect. 132, p. 115.
FORMULA
E.g.f.: (1/(1 - x) + (1 + x)*exp(-2*x))/2. - Ilya Gutkovskiy, Aug 17 2016
MAPLE
f:=n->n!/2-(-2)^(n-2)*(n-2); [seq(f(n), n=0..40)];
MATHEMATICA
Table[n!/2 - (-2)^(n - 2)*(n - 2), {n, 0, 25}] (* Wesley Ivan Hurt, Aug 17 2016 *)
PROG
(Magma) [Factorial(n)/2 - (-2)^(n - 2)*(n - 2) : n in [0..30]]; // Wesley Ivan Hurt, Aug 17 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Feb 24 2011
STATUS
approved