A restaurant serves $5$ spicy dishes and $45$ regular dishes. A group of 30 people each orders dishes, with at most $2$ spicy dishes ordered. How many possible ways of ordering are there if
a) each dish has to be different?
b) a dish can be ordered multiple times (but still at most $2$ spicy dishes)?
I know my original answers were wrong. While going over the problem, I think I realized what my mistake was, but want to check. Originally, I thought:
a) Let $A_0$ be the case that $0$ spicy dishes are ordered, $A_1$ that $1$ spicy dish is ordered, and $A_2$ that $2$ spicy dishes are ordered.
Case $A_0$: Choose $1$ person from $30$ to order $1$ from $45$ available dishes. Choose $2$nd person from remaining $29$ to choose one of $44$ dishes. Continuing, we get $$\binom{30}{1}\binom{45}{1}\binom{29}{1}\binom{44}{1} \ldots = 30! \frac{45!}{(45-30)!}$$ Since we only care about final arrangement (not who orders first, second,..), answer simplifies to ${45}\choose{30}$
case $A_1$: Just have to choose $1$ person from $30$ to order one of $5$ spicy dishes. Remaining part is as in part a, except with $29$ people: $$30\cdot 5\cdot \binom{45}{29}$$
case $A_2$: choose $2$ people to order spicy dishes, choose $2$ of $5$ spicy dishes, and as before, we get: $$30\cdot 29 \cdot 5\cdot 4\cdot \binom{45}{28}$$
Was my mistake considering who will order the spicy dishes in $A_1$ and $A_2$; Should the answer have just been $$A_0 + A_1 + A_2 = \binom{45}{30} + \binom{5}{1}\binom{45}{29} +\binom{5}{2}\binom{45}{28}?$$
B) Let $B_0$ be $0$ spicy dishes ordered, each dish can be ordered as many times as possible (except at most $2$ spicy dishes). Similar for $B_1$ and $B_2$.
-case $B_0$: $45$ options for each of $30$ people, so $|B_0| = 45^{30}$
-case $B_1$: Someone chooses $1$ spicy dish, $45$ options for each of $29$ people, so $|B_1|=5 \cdot 45^{30}$ (I originally put $30 \cdot 5 \cdot 45^{29}$ but I know this was wrong)
-case $B_2$: as before, $|B_0| = 5^2 \cdot 45^{28}$ (again, originally had $30 \cdot 29 \cdot 5^2 \cdot 45^{28}$)