Get out your fingers! In this lab, we’re going to practice writing combinatorial descriptions using our fundamental counting principles. Recall that a combinatorial description is an unsimplified arithmetic formula whose structure communicates how we’ve decomposed a set according to our counting principles. Throughout, give combinatorial descriptions for each of the desired quantities when appropriate. You should also check your work by instantiating your combinatorial descriptions to small, artificial sets and then hand-constructing the quantities in question.
Suppose that you have a deck of $c$ playing cards.
Now consider three-card sequences from the deck but without replacement. That is, each drawn card stays out of the deck. Give a combinatorial description for the number of possible three-card sequences you could draw in the manner and show your check that your description is correct.
(Hint: The description for this part should be different from the description for the previous part! Consider drawing one card from the deck. How many cards remain if you don’t replace this initial card?)
What happens when you mix the two approaches? Suppose that you:
Give a combinatorial description of the number of such sequences of five cards.
Suppose you are interested in counting the number of five-card hands you can draw from the deck. We might suggest that the number of such hands is:
\[c × (c-1) × (c-2) × (c-3) × (c-4).\]Think about what it means to have a hand of cards in a card game and what you would view as two equivalent hands. With this in mind, in a sentence or two, explain why this combinatorial description does not accurately describe the situation at hand.
Suppose that a software company was hiring individuals based on the following criteria:
The company, through pre-screening, ensures that all of their candidates possess at least one of these qualities. This hiring season, the company noted of their $c$ candidates:
The company ultimately decided to hire candidates that satisfied exactly two of these criteria.
Use the principle of inclusion-exclusion to derive an unsimplified combinatorial description of this quantity and show your check that your description is correct.
In the reading, you learned that the number of $k$-sized (unordered) sets drawn from $n$ objects is given by:
\[{n \choose k} = \frac{(n)_k}{k!}.\]If you have seen the combination (or “choose”) operator before, you may not have learned that it was equal to this quantity. Instead, you likely learned that:
\[{n \choose k} = \frac{n!}{k!(n-k)!}.\]In a few sentences, justify or “explain” this second formula in terms of overcounting. What are you overcounting and what are you removing from that overcount to arrive at the desired final quantity?
In variations of poker, players receive a five-card hand from a deck of 52 player cards. Recall that each of the 52 cards has a rank and suit:
Give combinatorial descriptions for each of the following values.
The total number of possible poker hand that contains exactly two pairs. A pair is a pair of the cards with the same rank, e.g., the 8 of spades and hearts.
Rather than computing this quantity by determining the ways of drawing the first card of the hand, the second card, and so forth, which will lead to a series of conditional choices, consider the following strategy instead:
The total number of possible poker hands that are a full house. A full house is a hand consisting of a three-of-a-kind and a pair. A three-of-a-kind is a pair but with three cards of the same rank instead of two.
The total number of possible poker hands that are a four-of-a-kind, e.g., the Ace of spades, clubs, hearts, and diamonds.
The total number of possible poker hands that are a single pair. A single pair is where two of the cards have the same rank, e.g., the Jack of spades and hearts. Note that when a hand contains a single pair, it should not contain other, better hands, e.g., two pairs, a three-of-a-kind, or a four-of-a-kind.
Check your work by observing that your combinatorial descriptions produce these quantities:
With five-card poker hands, a royal flush is a straight flush that runs 10-J-Q-K-A. The following combinatorial description denotes the number of royal flushes:
\[{4 \choose 1}.\]In a sentence or two, justify this combinatorial description.
Suppose that you are building a schedule from among $k$ distinct possible courses. Give combinatorial descriptions of each of the cardinalities described below. For each description, check your work by instantiating a concrete set of courses, and demonstrating that your description works for each such concrete example.
The number of four course schedules that contain both Basket Weaving or Underwater Knitting.
(Hint: choose positions for Basket Weaving and Underwater Knitting. This implies where the remaining two courses will go. Finally choose which courses go into those remaining two slots.)
The number of four course schedules that do not contain both Basket Weaving and Underwater Knitting.
(Hint: leverage your answer to the previous part!)
The number of six course schedules that include Calculus I and Computer Science I but do not place Calculus I after Computer Science I in the schedule.
(Hint: similarly to the previous part, choose positions for the two named courses. But here, you need to remove the possibilities that get the order these courses swapped.)
(Bonus Problem) The number of six course schedules that include Calculus I and Computer Science I but do not place Calculus I immediately after Computer Science I in the schedule.
(Hint: unlike the previous problem, we only want to ensure that Calc I does not appear in the next time slot after CS I. How can we break up the possible positions of the two courses to get a handle on these situations? How do we then account for overcounting?)