%I #20 Mar 29 2016 03:34:07
%S 1,1,5,40,437,6036,100657,1965160,43937385,1106488720,30982333661,
%T 954607270464,32090625710365,1168646120904640,45826588690845705,
%U 1924996299465966976,86231288506425806033,4103067277186778016000,206655307175847710248885
%N The number of ways to build all endofunctions on each block of every set partition of {1,2,...,n}.
%H Alois P. Heinz, <a href="/A202477/b202477.txt">Table of n, a(n) for n = 0..385</a>
%F E.g.f.: exp(T(x)/(1-T(x))) where T(x) is the e.g.f. for A000169.
%F a(n) ~ n^(n-1/3) * exp(3/2*n^(1/3) - 2/3) / sqrt(3). - _Vaclav Kotesovec_, Sep 24 2013
%p with(combinat):
%p b:= proc(n, i) option remember; `if`(n=0, 1,
%p `if`(i<1, 0, add(i^(i*j)*b(n-i*j, i-1)*
%p multinomial(n, n-i*j, i$j)/j!, j=0..n/i)))
%p end:
%p a:= n-> b(n$2):
%p seq(a(n), n=0..20); # _Alois P. Heinz_, Mar 29 2016
%t nn = 20; t = Sum[n^(n - 1) x^n/n!, {n, 1, nn}] ;
%t Range[0, nn]! CoefficientList[Series[Exp[t/(1 - t)], {x, 0, nn}], x]
%Y Cf. A000262 (the same for permutations).
%K nonn
%O 0,3
%A _Geoffrey Critzer_, Dec 19 2011
|