Artificial intelligent assistant

Possibilities to put together a value of $n$ euros from $1$ euro, $2$ euro coins, $5$ euro notes and $10$ euro notes Let $c_n$ be the number of possibilites to put together a value of $n$ euros from $1$ euro and $2$ euro coins as well as $5$ euro notes and $10$ euro notes. How can one find out what the generating function of $(c_n)_{n\in\mathbb{N_0}}$ is? And how many possibilites are there to to put together a value of $10$ euros? So for $10$ euros I thought of the following: * $10$ times $1$€ * $8$ times $1$€ + $1$ time $2$€ * $6$ times $1$€ + $2$ times $2$€ * $4$ times $1$€ + $3$ times $2$€ * $2$ times $1$€ + $4$ times $2$€ * $5$ times $2$€ * $1$ time $10$€ * $2$ times $5$€ * $1$ time $5$€ + $5$ times $1$€ * $1$ time $5$€ + $3$ times $1$€ + $1$ time $2$€ * $1$ time $5$€ + $1$ time $1$€ + $2$ times $2$€ So a total of $11$ possibilites. I kind of doubt that this is correct and I also don't know hot find out the generating function.

To answer your question about the generating function...

Counting the number of ways to make change for $\$n$ is equivalent to counting the number of integer solutions to $$ k_1+2k_2+5k_5+10k_{10}=n,\\\\\tag{*} k_1,k_2,k_5,k_{10}\ge 0 $$ Here, $k_i$ represents the number of $\$i$ bills. I claim that this is the coefficient of $x^n$ in $$ (1+x+x^2+\dots)(1+x^2+x^4+x^6+\dots)(1+x^5+x^{10}+\dots)(1+x^{10}+x^{20}+\dots)\tag {**} $$ This is because when expanding out the product of infinite sums in $(**)$, each term is a product of terms that look like $x^{k_1}(x^2)^{k_2}(x^5)^{k_5}(x^{10})^{k_{10}}$, so the number of summands equal to $x^n$ is the number of solutions to $(*)$.

Applying the geometric series formula to each factor in $(**)$, we get the generating function is $$ \boxed{\frac1{1-x}\cdot \frac1{1-x^2}\cdot \frac1{1-x^5}\cdot \frac1{1-x^{10}}} $$

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy e2f86bc780092c4b41b07c698d6f6053