Concept 3.1.1 · Keep the Cases Few
Many counting and probability problems can be solved by splitting them into several cases, counting each case, and adding.
When doing casework, always try to minimize the number of cases you have to deal with.
Split a hard count into cases that don't overlap and miss nothing, then add them up: the casework habit, plus conditional probability.
In this section you will be able to split a counting problem into cases that don't overlap and cover everything, then add.
Five different items go into 3 identical blue boxes and 6 identical green boxes, one item per box. Too messy to count in one go? Count it one case at a time.
Casework means picking one attribute to split on, like “how many blue boxes get an item”. Count each case, then add.
The sum is right only if the cases don’t overlap and miss nothing. Keep the number of cases small: the fewer you have, the fewer chances to slip.
Many counting and probability problems can be solved by splitting them into several cases, counting each case, and adding.
When doing casework, always try to minimize the number of cases you have to deal with.
For casework problems, pick one attribute to change and find the number of ways in each case. In Example 3.1 this was the number of blue boxes. Sometimes a case needs to be split again into subcases.
There are 3 identical blue boxes, 6 identical green boxes, and 5 distinct items. Each of the items must be placed into either a green or blue box, and each box can contain a maximum of 1 item. Assuming all of the boxes are different, how many ways are there to do this?
How can we divide this problem into cases? How many cases are there?
A or is placed in each of the nine squares in a 3-by-3 grid. Shown below is a sample configuration with three s in a line. How many configurations will have three s in a line and three s in a line?
Can the line of s and the line of s share a square?
A bug starts at a vertex of an equilateral triangle. On each move, it randomly selects one of the two vertices where it is not currently located, and crawls along a side of the triangle to that vertex. Given that the probability that the bug moves to its starting vertex on its tenth move is , where and are relatively prime positive integers, find .
Say there are clockwise and counterclockwise moves. What must happen for the bug to be back at the start after 10 moves?
A fancy bed and breakfast inn has 5 rooms, each with a distinctive color-coded decor. One day 5 friends arrive to spend the night. There are no other guests that night. The friends can room in any combination they wish, but with no more than 2 friends per room. In how many ways can the innkeeper assign the guests to the rooms?
Which attribute should we split on?
A farmer's rectangular field is partitioned into 2 by 2 grid of 4 rectangular sections. In each section the farmer will plant one crop: corn, wheat, soybeans, or potatoes. The farmer does not want to grow corn and wheat in any two sections that share a border, and the farmer does not want to grow soybeans and potatoes in any two sections that share a border. Given these restrictions, in how many ways can the farmer choose crops to plant in each of the four sections of the field?
Which sections share a border?
Azar and Carl play a game of tic-tac-toe. Azar places an X in one of the boxes in a 3-by-3 array of boxes, then Carl places an O in one of the remaining boxes. After that, Azar places an X in one of the remaining boxes, and so on until all boxes are filled or one of the players has three of their symbols in a row—horizontal, vertical, or diagonal—whichever comes first, in which case that player wins the game. Suppose the players make their moves at random, rather than trying to follow a rational strategy, and that Carl wins the game when he places his third O. How many ways can the board look after the game is over?
Carl's third O ends the game. How many X's are on the board then?
Four ambassadors and one advisor for each of them are to be seated at a round table with 12 chairs numbered in order 1 to 12. Each ambassador must sit in an even-numbered chair. Each advisor must sit in a chair adjacent to his or her ambassador. There are ways for the 8 people to be seated at the table under these conditions. Find the remainder when is divided by 1000.
Break into cases on where the ambassadors sit. Case 1: four neighboring even chairs. How many positions are there, turning the table?
Two tour guides are leading six tourists. The guides decide to split up. Each tourist must choose one of the guides, but with the stipulation that each guide must take at least one tourist. How many different groupings of guides and tourists are possible?
How many rearrangements of are there in which no two adjacent letters are also adjacent letters in the alphabet? For example, no such rearrangements could include either or .
Call a positive integer an uphill integer if every digit is strictly greater than the previous digit. For example, , , and are all uphill integers, but , , and are not. How many uphill integers are divisible by ?
Alice refuses to sit next to either Bob or Carla. Derek refuses to sit next to Eric. How many ways are there for the five of them to sit in a row of chairs under these conditions?
Suzanne went to the bank and withdrew $800. The teller gave her this amount using $20 bills, $50 bills, and $100 bills, with at least one of each denomination. How many different collections of bills could Suzanne have received?
How many three-digit numbers are composed of three distinct digits such that one digit is the average of the other two?
In this section you will be able to find a probability when you already know that some event has happened.
You roll two dice and a friend peeks: “At least one of them is a 6.” Now what is the chance that the sum is 7?
Knowing something happened shrinks the sample space. Only the outcomes where it happened are still possible, so they become the new denominator.
When the outcomes are not equally likely (re-rolls, tie-breaks), divide probabilities instead of counts.
If a problem asks for the probability that an event happens given that another event has happened, only the outcomes in are still possible:
When the outcomes are not equally likely, work with probabilities instead:
Casework problems are very easy to mess up, so be as careful as you can. A good habit: write down every case first, before you count any of them. That way you won't forget a case.
What is the probability that the sum of two dice is 7 given that at least one of the dice rolled a 6?
How many ways are there for the sum to be 7 and at least one die to be a 6?
Victor has a drawer with two red socks, two green socks, two blue socks, and 4 orange socks. He repeatedly draws two socks at a time from the drawer at random, and stops if the socks are of the same color. However, Victor is red-green colorblind, so he also stops if he sees a red and green sock. What is the probability that Victor stops with two socks of the same color? Assume Victor returns both socks to the drawer at each step.
Victor returns the socks after every draw. What do the draws where he keeps going change?
In a particular game, each of 4 players rolls a standard 6-sided die. The winner is the player who rolls the highest number. If there is a tie for the highest roll, those involved in the tie will roll again and this process will continue until one player wins. Hugo is one of the players in this game. What is the probability that Hugo's first roll was a 5, given that he won the game?
Why not just count outcomes, like in Example 3.8?
Coin A is flipped three times and coin B is flipped four times. What is the probability that the number of heads obtained from flipping the two fair coins is the same?
Three fair six-sided dice are rolled. What is the probability that the values shown on two of the dice sum to the value shown on the remaining die?
For a particular peculiar pair of dice, the probabilities of rolling , , , , , and , on each die are in the ratio . What is the probability of rolling a total of on the two dice?
The nine delegates to the Economic Cooperation Conference include officials from Mexico, officials from Canada, and officials from the United States. During the opening session, three of the delegates fall asleep. Assuming that the three sleepers were determined randomly, the probability that exactly two of the sleepers are from the same country is , where and are relatively prime positive integers. Find .
In this section you will be able to use casework, subcases and symmetry on contest problems.
Time to mix it all up. Before you count anything, write down every case. Each problem has three hints if you get stuck.
Want every problem from this chapter on one page? Open the problem set.
Three young brother-sister pairs from different families need to take a trip in a van. These six children will occupy the second and third rows in the van, each of which has three seats. To avoid disruptions, siblings may not sit right next to each other in the same row, and no child may sit directly in front of his or her sibling. How many seating arrangements are possible for this trip?
A digital display shows the current date as an 8-digit integer consisting of a 4-digit year, followed by a 2-digit month, followed by a 2-digit date within the month. For example, Arbor Day this year is displayed as . For how many dates in 2023 does each digit appear an even number of times in the 8-digit display for that date?
There are people standing equally spaced around a circle. Each person knows exactly of the other people: the people standing next to her or him, as well as the person directly across the circle. How many ways are there for the people to split up into pairs so that the members of each pair know each other?
Arjun and Beth play a game in which they take turns removing one brick or two adjacent bricks from one "wall" among a set of several walls of bricks, with gaps possibly creating new walls. The walls are one brick tall. For example, a set of walls of sizes and can be changed into any of the following by one move: , , , , , or .
Arjun plays first, and the player who removes the last brick wins. For which starting configuration is there a strategy that guarantees a win for Beth?
Consider systems of three linear equations with unknowns , , and ,
where each of the coefficients is either or and the system has a solution other than . For example, one such system is with a nonzero solution of . How many such systems are there? (The equations in a system need not be distinct, and two systems containing the same equations in a different order are considered different.)
How many ordered triples of different positive integers less than or equal to satisfy , , and ?
Each of the squares in a grid is to be colored red, blue, or yellow in such a way that each red square shares an edge with at least one blue square, each blue square shares an edge with at least one yellow square, and each yellow square shares an edge with at least one red square. Colorings that can be obtained from one another by rotations and/or reflections are considered the same. How many different colorings are possible?
Let denote the number of ways of writing the positive integer as a product
where , the are integers strictly greater than , and the order in which the factors are listed matters (that is, two representations that differ only in the order of the factors are counted as distinct). For example, the number can be written as , , and , so . What is ?
Each square in a grid is either filled or empty, and has up to eight adjacent neighboring squares, where neighboring squares share either a side or a corner. The grid is transformed by the following rules: Any filled square with two or three filled neighbors remains filled. Any empty square with exactly three filled neighbors becomes a filled square. All other squares remain empty or become empty. A sample transformation is shown in the figure below.
Suppose the grid has a border of empty squares surrounding a subgrid. How many initial configurations will lead to a transformed grid consisting of a single filled square in the center after a single transformation? (Rotations and reflections of the same configuration are considered different.)
Let be the number of sequences , , , such that is a positive integer less than or equal to , each is a subset of , and is a subset of for each between and , inclusive. For example, , , , , is one such sequence, with . What is the remainder when is divided by ?
Call a positive integer fair if no digit is used more than once, it has no s, and no digit is adjacent to two greater digits. For example, , and are fair, but , , and are not. How many fair positive integers are there?
The vertices of a regular octagon are colored either red or blue with equal probability. The probability that the octagon can be rotated in such a way that all blue vertices end up at points that were originally red is , where and are relatively prime positive integers. What is ?
Zou and Chou are practicing their -meter sprints by running races against each other. Zou wins the first race, and after that, the probability that one of them wins a race is if they won the previous race but only if they lost the previous race. The probability that Zou will win exactly of the races is , where and are relatively prime positive integers. Find .
How many different arrays whose entries are all 's and 's have the property that the sum of the entries in each row is and the sum of the entries in each column is ?
This problem also appears in the book as 3.10.
In a particular game, each of players rolls a standard -sided die. The winner is the player who rolls the highest number. If there is a tie for the highest roll, those involved in the tie will roll again and this process will continue until one player wins. Hugo is one of the players in this game. What is the probability that Hugo's first roll was a , given that he won the game?
Two different cubes of the same size are to be painted, with the color of each face being chosen independently and at random to be either black or white. What is the probability that after they are painted, the cubes can be rotated to be identical in appearance?
Each of the edges of a cube is labeled or . Two labelings are considered different even if one can be obtained from the other by a sequence of one or more rotations and/or reflections. For how many such labelings is the sum of the labels on the edges of each of the faces of the cube equal to ?
A cube is constructed from white unit cubes and blue unit cubes. How many different ways are there to construct the cube using these smaller cubes? (Two constructions are considered the same if one can be rotated to match the other.)
Jason rolls three fair standard six-sided dice. Then he looks at the rolls and chooses a subset of the dice (possibly empty, possibly all three dice) to reroll. After rerolling, he wins if and only if the sum of the numbers face up on the three dice is exactly . Jason always plays to optimize his chances of winning. What is the probability that he chooses to reroll exactly two of the dice?
The wheel shown below consists of two circles and five spokes, with a label at each point where a spoke meets a circle. A bug walks along the wheel, starting at point . At every step of the process, the bug walks from one labeled point to an adjacent labeled point. Along the inner circle the bug only walks in a counterclockwise direction, and along the outer circle the bug only walks in a clockwise direction. For example, the bug could travel along the path , which has steps. Let be the number of paths with steps that begin and end at point . Find the remainder when is divided by .