
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The solutions to quiz 2 in a combinatorics course (cse 21). It includes the calculation of the number of ways to deal five cards from a standard deck such that there are two pairs, and the probability of selecting a group of 15 pastries from a bakery with exactly four eclairs, using the stars and bars method.
Typology: Quizzes
1 / 1
This page cannot be seen from the preview
Don't miss anything!

2
, and then the 2 suits for each of our pairs
2
, and finally we must choose 1 of the 44 remaining cards that are not of our 2 denominations as the 5th card in our hand
1
. Putting it all together gives
2
2
1
6
. To have exactly 4 eclairs is the same as throwing 4 eclairs into our selection and then removing eclairs as a choice for the remaining 11 pastries. This gives 11 stars and 6 - 1 = 5 bars and
5
ways to have exactly 4 eclairs. Putting the two together gives a probability of