I am trying to solve the following problems:
a) Let $\mathcal{F}$ be the family of all finite 0-1-sequences that have no 1s directly behind each other. Let the weight of each sequence be its length. How can $\mathcal{F}$ be constructed with simpler objects? How does the generating function look like?
b) Show with generating functions: The number of partitions of n into different summands equals the number of partitions of n into odd summands.
c) Show with generating functions: The number of compositions of n into summands being 1 or 2 equals the number of compositions of n+2 into summands greater than or equal 2.
My solutions:
a) I have no idea here.
b) Let $\mathcal{P}$ be the partition in different summands. Then $\mathcal{P} = (\{\epsilon\}+\{1\}) \times (\{\epsilon\}+\{2\})\times (\{\epsilon\}+\{3\})\times ...$
$\Rightarrow P(z) = (1+z)\cdot (1+z^2) \cdot (1+z^3) \cdot \dotsc = \frac{1}{(1-z)\cdot(1-z^3)\cdot(1-z^5)\cdot \dotsc}$
Now let $\tilde{\mathcal{P}}$ be the partition in odd summands. Then $\tilde{\mathcal{P}} = \{1\}^{\ast}\times\{3\}^{\ast}\times\{5\}^{\ast}\times\dotsc$
$\Rightarrow \tilde{P(z)} = \frac{1}{1-z}\cdot\frac{1}{1-z^3}\cdot\frac{1}{1-z^5}\cdot \dotsc$.
Therefore $P(z) = \tilde{P}(z)$ and so $[z^n]P(z) = [z^n]\tilde{P}(z)$, which proofs that the numbers of partitions of n are the same.
c) Let $\mathcal{K}$ be the number of compositions of n into 1s and 2s. Then $\mathcal{K} = \{1,2\}^{\ast}$ and so $K(z) = \frac{1}{1-(z+z^2)}$.
Let $\tilde{\mathcal{K}}$ be the number of compositions of n+2 into 2,3,4,5,6,7,... Then $\tilde{\mathcal{K}} = \{2,3,4,5,6,...\}^{\ast}$ and therefore $\tilde{K}(z) = \frac{1}{1-(z^2+z^3+z^4+z^5+...)}$.
I am not sure if I have determined $\mathcal{K}, \tilde{\mathcal{K}}, K(z)$ and $\tilde{K}(z)$ correctly and if so, I don't know how to show that $[z^n]K(z) = [z^{n+2}]\tilde{K}(z)$.
So I'd very much appreciate your help on a) and c). Thanks in advance!