The problem I am dealing with first asks us to find the generating function $g(x,y,x)$ whose coefficient of $x^s$$y^s$$z^t$ is the number of ways to distribute $r$ red balls, $s$ blue balls and $t$ green balls to n people with between three and six balls of each type to each person.
My answer to this part was:
I broke it down to an individual case where each factor corresponds to the number of red, blue, and green balls selected by an individual. And since there are n individuals we repeat the process n times.
For the next problem we are supposed to include an additional condition: We suppose each person gets at least as many red balls as blues. Assuming $x$ corresponds to red, $y$ to blue and $z$ to green, I initially came up with the following generating function:
But how would account for selections of say 5 red balls and 3 blue balls. I was thinking about just including all the terms up to $x^6$ in the first factor but then that allows for the possibility of choosing more than 6 red balls.
Is there a standard technique to deal with these types of problems?
Also, how would we deal with an additional condition like supposing no person gets the same amount of green and red balls?