I need to find out how many compositions of n there are in which each part is an even number.
I think I have the correct generating function by doing the following:
$$S = ∪_{k\geq0}N_{even}^k$$
where $k=0$ is the empty composition and $N_{even}=\{2,4,6,…\}$ so,
$$\Phi_S(x) = \Phi_{∪_{k\geq0}N_{even}^k}(x)$$
$$\Phi_S(x) = \sum\limits_{k\geq0}^{} \Phi_{N_{even}^k}(x)$$
$$\Phi_S(x) = \sum\limits_{k\geq0}^{} (\sum\limits_{i\geq0}^{}x^{2i+2})^k$$
$$\Phi_S(x) = \sum\limits_{k\geq0}^{} (x^2(1-x^2)^{-1})^k$$
$$\Phi_S(x) = \dfrac{1}{1-(x^2(1-x^2)^{-1})}$$
$$\Phi_S(x) = \dfrac{1-x^2}{1-2x^2}$$
and the number of compositions would be
$$[x^n](\dfrac{1-x^2}{1-2x^2})$$
Simplifying this to find the number of compositions is where I get stuck. Any help would be appreciated!
Best Answer
How about finding the number of compositions of $\frac n2$ and then doubling all the parts? Since there are $2^{\frac n2-1}$ of them, that is the number of compositions of $n$ into even parts.