Exponential Generating Function Verification

46 Views Asked by At

Let $X = \{Q,W,E,R\}$. Using exponential generating functions, obtain the number of $r$-permutations that can be formed such that there is an even number of $Q$'s and an odd number of $W$'s in each permutation.

After all my work, I obtain the following equation.

$$\frac{1}{4} \left(e^{4 x}-1\right)$$

As far as I can tell, it equals $$\frac{4^r-1}{4} $$

Am I wrong so far?

For $3$-permutation in given conditions, I expect $QQW,QWQ,WQQ$

When I substitute $r$ with $3$ in $\frac{4^r-1}{4} $, I don't get $3$.

What is my wrong? Can you help me?

1

There are 1 best solutions below

4
On BEST ANSWER

You have the right EGF, but when extracting the coefficient of $x^r$, it's simply $$\frac{1}{4} \frac{1}{r!} 4^r$$ for $r \ge 1$. (Think of the $-1$ as $-1 \cdot x^0$.) When multiplyed by $r!$ and simplified, the answer is $$4^{r-1}$$ With regard to the case $r=3$, keep in mind that zero is an even number, so there are several acceptable permutations having no $Q$s that are not shown in your list.