I how many ways can I buy fish for 10 euros if I have?: 5€ - 3pcs 2€ - 6pcs 1€ - 2pcs
I try with primitive aproach:
5+5=10------1
5+2+2+1-----2
2+2+2+2-----3
2+2+2+2+1+1-4
Is there any other combination? How to calculate that?
I how many ways can I buy fish for 10 euros if I have?: 5€ - 3pcs 2€ - 6pcs 1€ - 2pcs
I try with primitive aproach:
5+5=10------1
5+2+2+1-----2
2+2+2+2-----3
2+2+2+2+1+1-4
Is there any other combination? How to calculate that?
We need to find the coefficient of $x^{10}$ in the $(1+x^5+x^{10}+x^{15})(1+x^2+x^4+...+x^{12})(1+x+x^2)$
coefficient of $x^{10}$ in the $(1+x^5+x^{10}+..)(1+x+x^2)(1+x^2+x^4+...+x^{12})$
coefficient of $x^{10}$ in the $(1+x+x^2+x^5+x^6+x^7+x^{10}+..)(1+x^2+x^4+...+x^{12})$
$=1.x^{10}+x^2.x^8+x^6.x^4+x^{10}.1=4$
Another method: Number of non-negative integral solutions of the equation $$5x+2y+z=10; x \le 3, y\le 6, z\le2$$
Case i: $x=0 \Rightarrow 2y+z=10 \Rightarrow z\in$ even so either z=0, y=5 or z=2, y=4
Case ii: $x=1 \Rightarrow 2y+z=5 \Rightarrow z\in$ odd so z=1, y=2$
Case iii: $x=2 \Rightarrow 2y+z=0 \Rightarrow z=0, y=0$
Four solutions $(0,5,0),(0,4,2),(1,2,1),(2,0,0)$