Divide the 14 elements {A, B, C, C, C, C, D, D, D, D, E, E, E, E} into 7 groups (one group all have two elements), and I want to find out how many kinds of methods there are without repetition.
I already know a mathematical way to solve the problem:
$$ \begin{array}{c} set=\{a,b,c,d,e\} \\ G=\prod \frac {1}{1-set(i)*set(j)} \\=\frac{1}{\left(1-a^2\right) \left(1-b^2\right) \left(1-c^2\right) \left(1-d^2\right) \left(1-e^2\right) (1-a b) (1-a c) (1-a d) (1-a e) (1-b c) (1-b d) (1-b e) (1-c d) (1-c e) (1-d e)} \end{array} $$
Then we expand the generating function g at the point $\{0,0,0,0,0\}$ into a multivariate Taylor series.
Where the index of $a$ is 1, the index of $b$ is 1, the index of $c$ is 4, the index of $d$ is 4, and the index of $e$ is 4, the coefficient of this term 96 is the desired result.
set = {a, b, c, d, e};
f = Times @@
DeleteDuplicates[
Flatten[Table[1/(1 - set[[i]]*set[[j]]), {i, 1, 5}, {j, 1, 5}]]]
SeriesCoefficient[f, {a, 0, 1}, {b, 0, 1}, {c, 0, 4}, {d, 0, 4}, {e,
0, 4}]
But I don't understand why its generating function is in this form. I hope you can give a detailed explanation and other related examples.
There may be some grammatical errors in the above problems. Please correct them.