Say we have an urn containing 3N orbs of three different colors: red, green and blue. N of them of each color.
The orbs are Arranged necessarily in sets of three, we'll call them troikas. there are 10 types of troikas according to the combination of their constituent colors: rrr, ggg, bbb, rrg, rrb, rgb, ggr, ggb, bbr, bbg
The troikas are to be arranged in one of the $\pi(N)$ partitions of N.
I would like to have a way to count all the ways the orbs can be arranged given an specific partition and a N.
Example: Consider N=4
The partitions of 4 are:
- $\lambda_1$=[4, 0, 0, 0] 4 sets of 1 troika
- $\lambda_2$=[2, 1, 0, 0] 2 sets of 1 troika and 1 set of 2 troika
- $\lambda_3$=[1, 0, 1, 0] 1 set of 1 troika and 1 set of 3 troikas
- $\lambda_4$=[0, 2, 0, 0] 2 sets of 2 troikas
- $\lambda_5$=[0, 0, 0, 1] 1 set of 4 troikas
Given the partition $\lambda_1$ there are $\Omega(\lambda_1)$ = 25 ways to arrange the troikas
they would be of the kind: (rrr, ggg, bbb, rgb), (rrr,ggg,bbr,gbb) and so on.
for $\lambda_3$ we have 10 of them: (rrr, rggggbbbb), (rrb, rrggggbbb) and so on.
I used Marko Riedel response in Partitioning a multiset into multisets of fixed sizes to find a generating function in terms of bell polynomial and have implemented the solution in wolfram mathematica, but I'm struggling to find answers for large Ns.]
Do you think this is the kind of problem I could get an easy to manipulate formula in terms of multinational coefficients and so on?
edit 1: just to clarify, once the troikas are put into partitions, their order is irrelevant: rggggbbbb = rgggbbbg ; rgb = bgr. You can imagine that the troikas merge together, in chunks with multiple of 3 orbs in which the order does not matter.
also (rrr,bbb,ggg)=(rrr,ggg,bbb)
for N = 10, we have the partitions followed by the number of arrangements:
[10, 0, 0, 0, 0, 0, 0, 0, 0, 0] 911
[8, 1, 0, 0, 0, 0, 0, 0, 0, 0] 7480
[7, 0, 1, 0, 0, 0, 0, 0, 0, 0] 6397
[6, 2, 0, 0, 0, 0, 0, 0, 0, 0] 23836
[6, 0, 0, 1, 0, 0, 0, 0, 0, 0] 3904
[5, 1, 1, 0, 0, 0, 0, 0, 0, 0] 33016
[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