OFFSET
0,3
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..200
FORMULA
a(n) = n! - A088994(n).
MAPLE
b:= proc(n, i) option remember; `if`(((i+1)/2)^2<n, 0,
`if`(n=0, 1, b(n, i-2)+`if`(i>n, 0, (i-1)!*
b(n-i, i-2)*binomial(n, i))))
end:
a:= n-> n!-b(n, n-1+irem(n, 2)):
seq(a(n), n=0..30); # Alois P. Heinz, Jan 27 2020
MATHEMATICA
b[n_, i_] := b[n, i] = If[((i + 1)/2)^2 < n, 0, If[n == 0, 1, b[n, i - 2] + If[i > n, 0, (i - 1)! b[n - i, i - 2] Binomial[n, i]]]];
a[n_] := n! - b[n, n - 1 + Mod[n, 2]];
a /@ Range[0, 30] (* Jean-François Alcover, Apr 08 2020, after Alois P. Heinz *)
PROG
(PARI) seq(n)={Vec(serlaplace(1/(1-x) - prod(k=1, n, 1+(k%2)*x^k/k + O(x*x^n))), -(n+1))} \\ Andrew Howroyd, Jan 27 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Yuval Dekel (dekelyuval(AT)hotmail.com), Nov 07 2003
EXTENSIONS
a(0)=0 prepended and terms a(11) and beyond from Andrew Howroyd, Jan 27 2020
STATUS
approved