I was solving a combination problem of arranging N different groups into 2 equal parts where order of elements in the part doesn't matter. e.g- We have 3 types of elements/groups A, B and C . Type A has 1 element, type B has 6 elements and type C has 1 element.
If I arrange them in two equal parts, the possibilities are following :
ABBB | BBBC , BBBC | ABBB , ACBB | BBBB , BBBB | ACBB
Another case,
type X has 2 elements, type Y has 2 elements. the possible arrangements are :
XX | YY , XY | XY , YY | XX
How to calculate this count ? I was looking forward to generalize this for N types having different frequencies.