Consider 4 different letters: a, b, c and d. Imagine you have access from 4 up to 12 letters, with at least 1 letter of each. For example, if I have 5 letters, one possible combination could be one $a$, one $b$, one $c$ and two $d$'s. Considering the case where it is irrelevant which letters are repeated, in how many ways can I choose the letters? By hand, I know the answer is 14, but the goal is to solve this problem using generating functions.
I know that the generating function $A(x)$ for the letter "a", for example, is $$A(x) = x + x^2 + x^3 = x \left(\frac{1-x^3}{1-x}\right)$$ so, if the type of letters to be repeated were important, the total generating function would be \begin{align} A(x)B(x)C(x)D(x) & = \left(x \left(\frac{1-x^3}{1-x}\right)\right)^4 \\ & = x^4 + 4x^5 + 10x^6 + 16x^7 + 19x^8 + 16x^9 + 10x^{10} + 4 x^{11} + x^{12} \end{align} and the answer would be 81, the sum of all coefficients. The part where I'm struggling is, since the letters to be repeated are irrelevant, then the generating functions for the letters apart from $a$ should somehow depend on the numbers of $a$'s chosen in each case. I have to somehow subtract the extra irrelevant cases.