%I #6 Aug 21 2014 04:31:13
%S 120,5880,215040,7348320,252000000,8928667440,331079253120,
%T 12919902035040,531665809234560,23074929870993000,1055390757120860160,
%U 50802829404718896960,2569731417499060039680,136361684705644061566560,7578327282420081922560000
%N Number of endofunctions on [n] where the largest cycle length equals 6.
%H Alois P. Heinz, <a href="/A246216/b246216.txt">Table of n, a(n) for n = 6..200</a>
%F a(n) ~ (6*exp(49/20) - 5*exp(137/60)) * n^(n-1). - _Vaclav Kotesovec_, Aug 21 2014
%p with(combinat):
%p b:= proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0,
%p add((i-1)!^j*multinomial(n, n-i*j, i$j)/j!*
%p b(n-i*j, i-1), j=0..n/i)))
%p end:
%p A:= (n, k)-> add(binomial(n-1, j-1)*n^(n-j)*b(j, min(j, k)), j=0..n):
%p a:= n-> A(n, 6) -A(n, 5):
%p seq(a(n), n=6..25);
%Y Column k=6 of A241981.
%K nonn
%O 6,1
%A _Alois P. Heinz_, Aug 19 2014