%I #29 Sep 29 2013 12:29:43
%S 1,14,444,25584,2342880,312888960,57424792320,13869128448000,
%T 4264876094976000,1627055289796608000,754132445894209536000,
%U 417405110861381271552000,271933770461631065948160000,205985221930119691492392960000,179512031423815845458883379200000
%N The number of permutations of {1,2,...,2n} that contain a cycle of length greater than n.
%C (2n)!*(H(2n)-H(n)) where H(n) is the harmonic number. See "One Hundred Prisoners" in Wikipedia reference below.
%D Richcard Stanley, Enumerative Combinatorics Volume 1 second edition, Cambridge Univ. Press, 2011, page 194 solution 119.
%H Alois P. Heinz, <a href="/A201546/b201546.txt">Table of n, a(n) for n = 1..100</a>
%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Random_permutation_statistics">Random permutation statistics</a>
%F The E.g.f. for the number of n-permutations that have a cycle of length greater than k is G(x)=1/(1-x) - exp(A(x)) where A(x)=Sum_{j=1..k}x^j/j.
%F a(n)/(2n)! is the coefficient of x^(2n) in G(x).
%F a(n) = Sum_{k=n+1..2n} C(2n,k)*(k-1)!*(2n-k)! - _Geoffrey Critzer_, Jun 01 2013
%F a(n) ~ sqrt(Pi)*log(2)*2^(2*n+1)*n^(2*n+1/2)/exp(2*n). - _Vaclav Kotesovec_, Sep 29 2013
%e a(2)=14 because there are 6 permutations of {1,2,3,4} that contain a cycle of length four and 8 that contain a cycle of length three. 6+8=14.
%p a:= proc(n) option remember; `if`(n<2, n,
%p (6-12*n+8*n^2)*a(n-1)-4*(n-1)^2*(2*n-3)^2*a(n-2))
%p end:
%p seq(a(n), n=1..20); # _Alois P. Heinz_, Jun 13 2013
%t Drop[Table[a = Sum[x^j/j, {j, 1, n}]; Coefficient[Series[1/(1 - x) - Exp[a], {x, 0, 40}], x^(2 n)]*(2 n)!, {n, 1, 40}], -20]
%K nonn
%O 1,2
%A _Geoffrey Critzer_, Dec 02 2011
|