5

Let $A$ be a set of objects where $|A|=n$. We want to count all the possible ways that we can arrange these objects into $n$ bags with exactly $n$ objects in each. We can reuse any object, however, no repetition is allowed inside the bags.

With $A=\{a,b,c\}$, for example, $[(a,b,c), (a,b,c), (b,c,a)]$ is a valid outcome.

Obviously there are $(n!)^n$ ways to do this.

Now we want to add two extra constraints:

  • The order of bags is not important.

For example, $[(a,b,c), (a,b,c), (b,c,a)]$ would be identical to $[(b,c,a), (a,b,c), (a,b,c)]$.

  • The label of objects inside the bags do not matter. Only the relative positions are important.

For example, $[(a,b,c), (a,b,c), (b,c,a)]$ would be identical to $[(c,b,a), (c,b,a), (b,a,c)]$ and is identical to $[(a,c,b), (a,c,b), (c,b,a)]$ etc.

Questions are:

  • How many ways can we set these bags given the above constrains ?
  • Is there any algorithm to output all these possible combinations?
NeoN
  • 151
  • We are picking $n$ (not necessarily different) permutations from $S_n$ -- in $\binom{n!+n-1}{n-1}$ ways. Let $P$ be such a multiset. Then, we find the size of the set ${p o \pi, , \forall \pi$ and $\forall p\in P}$ where $\pi$ is some permutation of ${1,2, \dots ,n}$ giving us the crude upper bound $\left(n!\binom{n!+n-1}{n-1}\right)$. The exact answer seems hard to count as the following simple case would depict:
  • – talegari May 19 '14 at 10:08
  • ...depict: Let $p_1$ and $p_2$ be the only two permutations that appear equal number of times in $P$. There exist $p_3$ and $p_4$ such that $p_1 o p_3=p_4,p_2 o p_3=p_5$ and $p_1 o p_6=p_5,p_2 o p_6=p_4$ iff $p^{-1}_1 o p_2$ is idempotent. – talegari May 19 '14 at 10:09