OFFSET
0,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..386
MAPLE
b:= proc(n) option remember; local r, p;
if n=0 then 1 else r, p:=0, 2;
while p<=n do r:= r+(p-1)!*b(n-p)*
binomial(n-1, p-1); p:= nextprime(p)
od; r fi
end:
a:= n-> add(b(j)*n^(n-j)*binomial(n-1, j-1), j=0..n):
seq(a(n), n=0..20);
MATHEMATICA
b[n_] := b[n] = Module[{r, p}, If[n == 0, 1, {r, p} = {0, 2}; While[p <= n, r = r + (p - 1)!*b[n - p]*Binomial[n-1, p-1]; p = NextPrime[p]]; r]];
a[0] = 1; a[n_] := Sum[b[j]*n^(n - j)*Binomial[n - 1, j - 1], {j, 0, n}];
Table[a[n], {n, 0, 20}] (* Jean-François Alcover, Jun 06 2018, from Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Jun 06 2016
STATUS
approved