There are two dice, a six-sided die and a twelve-sided die.
You roll the dice, alternating between the two, starting with the six-sided die. You keep track of the running total and stop when the total reaches $n$.
Show that the number of different ways to reach $n$ is:
$[x^n]$$ 1+x+x^2+\dots+x^{6}\over 1-(x+x^2+\dots+x^{6})(x+x^2+\dots+x^{12})$
Here is my attempt:
Let $S$ be the set of sets of ways to roll the dice any number of times (set of combinations).
Define the weight function, $w$, to be the sum of the set. $w((c_1,c_2,\dots,c_k))=c_1+c_2+\dots+c_k$
Let $\mathbb{N}_6 =\{1,2,3,\dots,6\}$
Let $\mathbb{N}_{12} =\{1,2,3,\dots,12\}$
Then
$\Phi_{\mathbb{N}_6} = x+x^2+\dots+x^{6} =$$ x-x^7\over 1-x$
$\Phi_{\mathbb{N}_12} = x+x^2+\dots+x^{12} =$$ x-x^{12}\over 1-x$
And
$ \begin{align}S & = \mathbb{N}_6(\mathbb{N}_{12})^k(\mathbb{N}_6)^k\cup(\mathbb{N}_6)^k(\mathbb{N}_{12})^k \\ & = (\mathbb{N}_6)^{k+1}(\mathbb{N}_{12})^k\cup(\mathbb{N}_6)^k(\mathbb{N}_{12})^k \\ \end{align}$
This is because the six sided die can be rolled the same number of times as the twelve sided die or the six sided die can be rolled one more time than the twelve sided die.
Then
$\begin{align} \Phi_{\mathbb S} & =(\Phi_{\mathbb {N}_6})^{k+1}(\Phi_{\mathbb{N}_{12}})^k+(\Phi_{\mathbb {N}_6})^k(\Phi_{\mathbb{N}_{12}})^k \\ & = (x+x^2+\dots+x^{6})^{k+1}(x+x^2+\dots+x^{12})^k+(x+x^2+\dots+x^{6})^k(x+x^2+\dots+x^{12})^k \\ \end{align}$
I am unsure how to proceed past this point. I tried using the geometric series formula but got stuck.
It's actually very simple: