login
Product of sizes of all the nonempty subsets of an n-element set.
4

%I #28 Jun 26 2022 03:07:12

%S 1,1,2,24,20736,309586821120,11501279977342425366528000000,

%T 115744510977565557983391999957434605749927936000000000000000000000

%N Product of sizes of all the nonempty subsets of an n-element set.

%C Equivalently, a(n) is the number of functions from the nonempty subsets of {1,2,...,n} into {1,2,...,n} such that each subset is mapped to an element that it contains. - _Geoffrey Critzer_, Oct 05 2014

%H Alois P. Heinz, <a href="/A229333/b229333.txt">Table of n, a(n) for n = 0..10</a>

%H Aaron R. Bagheri, <a href="http://scholarship.claremont.edu/hmc_theses/102">Classifying the Jacobian Groups of Adinkras</a>, (2017), HMC Senior Theses.

%F a(n) = Product_{k=1..n} k^C(n,k) = Product_{k=1..n} k^(n!/((n-k)!*k!)).

%F log(a(n)) ~ 2^n*(log(n/2) - 1/(2*n) - 3/(4*n^2) - 2/n^3 - 65/(8*n^4) - 134/(3*n^5) - 1239/(4*n^6) - 2594/n^7 - 407409/(16*n^8) - 1433418/(5*n^9) - 14565881/(4*n^10) - ...). - _Vaclav Kotesovec_, Jul 24 2015

%e For n=3; nonempty subsets of a 3-element set: {1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1,2,3}; product of numbers of elements of these subsets = 1*1*1*2*2*2*3 = 24. For n = 3; a(3) = [1^(3!/((3-1)!*1!))] * [2^(3!/((3-2)!*2!))] * [3^(3!/((3-3)!*3!))] = 1^3 * 2^3 * 3^1 = 24.

%p a:= n-> mul(k^binomial(n, k), k=1..n):

%p seq(a(n), n=0..8); # _Alois P. Heinz_, Oct 05 2014

%t Table[Times @@ Rest[Length /@ Subsets[Range[n]]], {n, 7}] (* _T. D. Noe_, Oct 01 2013 *)

%o (Python)

%o from math import comb, prod

%o def a(n): return prod(k**comb(n, k) for k in range(1, n+1))

%o print([a(n) for n in range(11)]) # _Michael S. Branicky_, Jun 25 2022

%Y Cf. A001787 (total size of all the subsets of an n-element set).

%K nonn

%O 0,3

%A _Jaroslav Krizek_, Sep 29 2013