Find a recurrence relation for $a_{n,k}$ , the number of ways to order n doughnuts from k different types of doughnuts if two or four or six doughnuts must be chosen of each type.
I need help understanding the answer to this.
So I know the answer to this is
$a_{n,k}=a_{n-2,k-1} + a_{n-4,k-1}+a_{n-6,k-1}$
so I know that $a_{n-2,k-1}$ means you start by picking $2$ donuts of one type, then you pick the remaining $n-2$ donuts from the other $k-1$ types
$a_{n-4,k-1}$ means you start by picking $4$ donuts of one type, then you pick the remaining $n-4$ donuts from the other $k-1$ types
$a_{n-6,k-1}$ means you start by picking $6$ donuts of one type, then you pick the remaining $n-6$ donuts from the other $k-1$ types
But how does this satisfy the constraint that two or four or six doughnuts must be chosen of each type? That's what I'm confused by. Can't you just pick any amount of each type of donut from the other $k-1$ types, not just two or four or six.
If someone can explain this to me, I would really appreciate it.