I am stuck on this problem "A book is selling for $2 while a magazine is for $3. How many different ways
are there to buy books and magazines for $8?
My attempt: Let k1and k2, be the number of $2 and $3, respectively. So 2k1 + 3k2 = 8
Now we have a generating function for x^(2k1) * x^(3k2), we are looking for x^8. So the generating function is, 1/((1-x^2)(1-x^3)). But now I am stuck because now I cant find x^8 because i think the binomial theorem will not work here. Can anyone help me finish the problem or am I doing it wrong? Thank you !!!!
are there to buy books and magazines for $8?
My attempt: Let k1and k2, be the number of $2 and $3, respectively. So 2k1 + 3k2 = 8
Now we have a generating function for x^(2k1) * x^(3k2), we are looking for x^8. So the generating function is, 1/((1-x^2)(1-x^3)). But now I am stuck because now I cant find x^8 because i think the binomial theorem will not work here. Can anyone help me finish the problem or am I doing it wrong? Thank you !!!!