What is Casework?
Casework in combinatorics is the art of breaking a problem into sub pieces with each having a specific case to it. There is not really a direct formula but it is important to have different techniques to solve each problem with casework cleanly, and add the results.
How to Organize Cases
The most important rule to learn in casework is how cases are split. Hence, following these 4 steps
- Find what to split the total number of cases.
In every question, there tends to be a feature that creates the structural difference of a problem. For example, the leading digit, the parity of a quantity, the size of the largest element, or whether a specific condition stated in the question holds. A good split reduces each case to a significantly simpler problem.
- Organize the cases and list them.
Writing down all cases ic important for both organization and also forces you to check if the casewotk method covers all cases.
- Solve each case independently.
An important point to note here is one should not carry assumptions from one case into another and instead should use the original constraints when entering each case.
- Addition of all Cases and verify the solution.
Find the sum of all the cases, and verify with a small example or by checking against the complement.
Example Problems
Examples are very important in this module, and in general. To improve caseworking, solving as many problems as possible is a great way. Let's start with an easy example.
1. Not Having Repeated Digits
How many integers from to have no repeated digit? Here, it is quite obvious that dividing this into one digit and two digit numbers would be a efficient way of caseworking.
Case 1: One-digit numbers (–) We see that all trivially have no repeated digit. Hence the count is .
Case 2: Two-digit numbers (–) In the tens digit , units digit , . Hence the count is: .
Case 3: , as this is the last scenario left. Digits are and is repeated and is thus excluded.
Total sum of all cases: .
2. Parity Casework
How many ways can you choose two numbers from without replacement so that their sum is odd?
This problem shows the basics of parity. We know that odd + odd = even and hence a sum is odd if and only if odd + even = odd Hence for odd numbers, we have and choices. For even numbers, we have choices.
Answer: .
3. Absolute Value Cases
How many ordered pairs of integers satisfy ?
For this problem, when we construct a graph, we see that there are 4 parts, and each with a condition to the x and y axis.
Case 1: . , : and hence we get pairs.
Case 2: . , , : obtaining pairs.
Case 3: . By symmetry with Case 2, we know that it is pairs.
Case 4: . Again, by symmetry with Case 1 we get pairs.
Case 5: . — pairs.
Case 6: . — pairs.
Therefore, the total is .
Lastly, a point to note is that the axis cases are the most commonly missed. Hence it is important to handle and separately.
4. Finding the number of Paths on a Grid
How many ways are there to walk from to on a grid, moving only right (R) or up (U), without passing through ?
This is an important problem as it also utilizes working with complementary casework. We see that the total paths from to is .
Paths through : paths from to times paths from to = .
Therefore, the answer is .
5. Different Combinations of Coins
In how many ways can you make exactly cents using pennies (¢), nickels (¢), and dimes (¢)?
In these common problems, it is important to use casework on the number of dimes. Usually, in casework, counting from the largest unit provides a more organized method.
First, when we have dimes (¢), we need ¢ from pennies and nickels. Hence we work on a sub case on nickels. nickels ( pennies), nickel ( pennies). The total count: .
Second, when we have dime (¢), we need ¢. For nickels, and that gives pennies respectively. Thus the count is .
Lastly, when we have dimes, we need ¢. We have nickels of: , and thus the count is .
Total: .
Remember that Permutations (order matters): . Combinations (order does not matter): .
6. Choosing with restrictions & "At Least" Format
A club has seniors and juniors. How many person committees contain at least seniors?
It is evident that we should do casework on the number of seniors.
Case 1: seniors. .
Case 2: seniors. .
Case 3: seniors. .
For all of these cases, note that the total number of juniors are constant. Hence the total is .
Module Progress:
Join the Discord Community!
Stuck on a problem, or don't understand a module? Join the Discord and get help with your doubts while making more math friends.
