I own a game called Ortus Regni. Each player is given a stack of 90 cards comprised of 6 cards each in 15 different patterns. From these 90 cards, you build a game decks of 24 cards. There are no restrictions in how this deck is built. You can use all 6 duplicates of any pattern, or none of a pattern or any other number. The least number of different patterns a game deck can contain is 4 (4 patterns x 6 duplicates each = 24 cards). On the other hand, there are numerous ways to build a 24 card game deck that uses all 15 patterns.
My question is how many different game decks of 24 can be built from the 90 cards? If all cards were different, you could solve this with the simple combination 90 taken 24 at a time. It's the 15 sets of 6 duplicates each that I can't figure out. Order does not matter, so many decks in the simple combination will be equivalent.
Inclusion exclusion for the win!
Let $x_1,x_2,\dots,x_{15}$ be the number of cards chosen from each pattern. Each $x_i$ is a nonnegative integer between $0$ and $6$, and their sum is $24$. We are therefore counting integer solutions to the equation $$ x_1+x_2+\dots+x_{15}=24\\\tag1 x_i\ge0,\\ x_i\le 6. $$ Let us forget the last condition, and instead count solutions to the simpler problem $$ x_1+x_2+\dots+x_{15}=24\\\tag2 x_i\ge0. $$
By "stars and bars," the number of ways to build the deck would be $\binom{24+15-1}{15-1}$. From this, we must subtract the bad solutions where at least one of the variables $x_i$ is more than $6$. For example, when $x_1$ is the bad variable, we get $$ x_1+x_2+\dots+x_{15}=24\\\tag3 x_1\ge7.\\ x_i\ge 0\quad\text{ for all } i\ge 2 $$ Subtracting $7$ from the value of $x_1$, an equivalent problem is $$ x_1+x_2+\dots+x_{15}=17\\\tag{3'} x_i\ge 0\quad\text{ for all } i\ge 1 $$ Again, stars and bars gives an answer of $\binom{17+15-1}{15-1}$. This number must be subtracted for each of the $15$ variables $x_i$, leaving $$ \binom{24+15-1}{15-1}-15\binom{24+15-1}{15-1} $$ But wait! The solutions to $(2)$ with two bad variables where subtracted out twice. We must now count these doubly subtracted variables and add them back in. Then there will be triply bad solutions will need to subtracted out again (I do not want to explain all the details about how inclusions exclusion works, you can read up on this on your own). We can stop at three since it is impossible to have four variables $x_i$ which are more than $6$ while still adding to $24$. The final result is $$ \binom{24+15-1}{15-1}-15\binom{17+15-1}{15-1}+\binom{15}2\binom{10+15-1}{15-1}-\binom{15}3\binom{3+15-1}{15-1} $$