OFFSET
0,3
REFERENCES
D. E. Knuth, The Art of Computer Programming, Vol. 3, Section 5.2.2, p. 129.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..445
MAPLE
f:=proc(n) local t1, r, s;
t1:=add( add(s!*r^(n-s), s=r+1..n), r=0..n-1);
end;
MATHEMATICA
Join[{0}, Table[Sum[n! + Sum[s!*k^(n - s), {s, k + 1, n - 1}], {k, 0, n - 1}], {n, 1, 50}]] (* G. C. Greubel, Dec 28 2017 *)
PROG
(PARI) for(n=0, 30, print1(if(n==0, 0, sum(k=0, n-1, n! + sum(s=k+1, n-1, s!*k^(n-s)))), ", ")) \\ G. C. Greubel, Dec 28 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, May 05 2011
STATUS
approved