I have a homework assignment which is to write a Generating Function of the following problem:
"There are $n$ identical boxes , there are $3$ different rooms in which they can be put. Each room can hold a maximum of 24 boxes. How many ways are there to divide the $n$ boxes in the rooms (you do not have to use all the rooms)?"
I am kind of new to Generating Functions and I can't seem to figure this one out. Can someone please help me out? It would be greatly appreciated.
Thanks, Jason.
HINT:
We need only one variable (it can be tempting to have three, perhaps), and we pay attention to its exponent to represent how many boxes are in a room. That is to say, $x^4$ might represent 4 boxes.
I'm trying not to give it away - but suppose you get stuck. Then here is a spoiler (mouse over for more)
SPOILER