Sub topic 4
Combinations: when order does not matter
This chapter assumes you can multiply and divide integers and fractions, and that you know factorials and permutations from the previous chapters. In particular, you should know that n! is the product of the whole numbers from 1 to n, and that P(n, k) = n!/(n − k)! counts ordered selections.
What a combination counts
A combination is a selection of items in which the order of the items does not matter. Choosing Ana, Ben, and Cy for a committee is the same outcome as choosing Cy, Ana, and Ben. A combination counts such outcomes once each, not once per ordering.
The count of combinations of k items chosen from n distinct items is written C(n, k), "n choose k". Some books write it as nCk or as a stacked pair of numbers in parentheses. The GRE usually describes it in words, such as "how many different groups of 3 can be chosen from 5 people".
Deriving the formula from permutations
You do not need to memorize the formula as a separate fact. It follows from permutations.
Take 5 people and choose a group of 3. The number of ordered selections is P(5, 3) = 5 × 4 × 3 = 60. Each group of 3 appears in that list once for every way to order its members, and there are 3! = 6 orderings. So the 60 ordered selections contain each group exactly 6 times. Dividing removes the repetition:
C(5, 3) = P(5, 3) / 3! = 60 / 6 = 10
In general:
C(n, k) = P(n, k) / k! = n! / (k! × (n − k)!)
You can confirm the relationship in Python:
import math
print(math.factorial(5)) # 120
print(math.perm(5, 3)) # 60: ordered selections of 3 from 5
print(math.comb(5, 3)) # 10: unordered selections of 3 from 5
print(math.perm(5, 3) // math.factorial(3)) # 10: perm divided by 3!Computing combinations by hand
The GRE gives you an on-screen calculator, but it has no combination key. The fastest method is to write the top of the fraction as k descending factors and cancel against k!.
Example: C(9, 4).
- Write four factors starting at 9: 9 × 8 × 7 × 6.
- Put 4! = 4 × 3 × 2 × 1 below.
- Cancel: 9 × 8 × 7 × 6 / 24. Since 8 × 6 = 48 = 2 × 24, this becomes 9 × 7 × 2 = 126.
Cancel before you multiply. Numbers such as 9 × 8 × 7 × 6 = 3024 are easy to mis-multiply, and the cancelled form is shorter.
Symmetry: C(n, k) = C(n, n − k)
Choosing which k items to take is the same as choosing which n − k items to leave behind. So C(n, k) = C(n, n − k). Use whichever form has the smaller number of factors.
C(50, 48) looks heavy, but it equals C(50, 2) = 50 × 49 / 2 = 1225.
Edge values
| Expression | Value | Reason |
|---|---|---|
| C(n, 0) | 1 | There is one way to choose nothing |
| C(n, 1) | n | Pick any one of the n items |
| C(n, n) | 1 | There is one way to choose everything |
| C(n, n − 1) | n | Choose the one item to leave out |
Pascal's rule
C(n, k) = C(n − 1, k − 1) + C(n − 1, k). The reasoning: fix one particular item. Either it is in the group (choose the other k − 1 from the remaining n − 1), or it is not (choose all k from the remaining n − 1). The rule is rarely needed on the GRE, but it gives a quick check. For example, C(6, 2) = C(5, 1) + C(5, 2) = 5 + 10 = 15.
import math
print(math.comb(50, 48), math.comb(50, 2)) # 1225 1225: symmetry
print(math.comb(6, 2) == math.comb(5, 1) + math.comb(5, 2)) # True: Pascal's rule
print(math.comb(9, 4)) # 126Worked examples
Pizza toppings
A pizza shop offers 8 toppings. How many different 3-topping pizzas are possible if no topping is repeated?
A pizza with mushrooms, onions, and olives is the same pizza in any order, so order does not matter.
C(8, 3) = 8 × 7 × 6 / (3 × 2 × 1) = 336 / 6 = 56
Handshakes
Eight people each shake hands once with every other person. A handshake is a pair of people, and "A shakes B" equals "B shakes A", so the count is C(8, 2) = 8 × 7 / 2 = 28.
This pattern appears often: anything that counts pairs, such as games between teams, lines between points, or connections between nodes, is a C(n, 2) problem.
Diagonals of a polygon
How many diagonals does a hexagon have? Any two of the 6 vertices determine a segment, giving C(6, 2) = 15 segments. Six of those are sides of the hexagon, not diagonals. So there are 15 − 6 = 9 diagonals.
Combining choices with the multiplication principle
Many GRE problems pick from two separate pools. Count each pool as a combination, then multiply, because the choices are independent steps.
A committee needs 2 men from 6 men and 2 women from 4 women.
- Men: C(6, 2) = 15
- Women: C(4, 2) = 6
- Total: 15 × 6 = 90
import math
print(math.comb(6, 2) * math.comb(4, 2)) # 90Do not compute C(10, 4) here. That counts all groups of 4 from 10 people, with no requirement of 2 men and 2 women.
Combining cases with the addition principle
Sometimes a condition splits the problem into separate cases that cannot happen together. Count each case, then add.
A committee of 3 is chosen from 6 men and 4 women. How many committees have at least 2 women?
- Exactly 2 women and 1 man: C(4, 2) × C(6, 1) = 6 × 6 = 36
- Exactly 3 women: C(4, 3) = 4
- Total: 36 + 4 = 40
import math
two_women = math.comb(4, 2) * math.comb(6, 1) # 36
three_women = math.comb(4, 3) # 4
print(two_women + three_women) # 40The cases are exclusive because a committee cannot have exactly 2 and exactly 3 women at once. Direct case counting works well when there are only a few cases. When there are many, the complement method (a later chapter) is often faster.
Common errors
| Error | Why it is wrong | Fix |
|---|---|---|
| Using P(n, k) when the problem asks for a group | It counts each group k! times | Divide by k!, or use C(n, k) |
| Computing C(10, 3) as 10 × 9 × 8 / 3 | The denominator must be 3!, not 3 | Divide by the full factorial: 720 / 6 = 120 |
| Adding the pools instead of multiplying them | Choices from separate pools are independent steps | Multiply C(6, 2) × C(4, 2) |
| Choosing from the combined pool when each pool has a quota | This ignores the "exactly 2 men, 2 women" rule | Count each pool separately, then multiply |
| Treating C(n, k) and C(n, n − k) as different | They are always equal | Use the smaller k |
| Counting "at least 2" as C(4, 2) × C(8, 1) | Groups with 3 women get counted several times | Split into exclusive cases |
The last error is subtle. Choosing 2 women first and then any 1 of the other 8 people can reach the same committee through different choices of "which 2 women came first". Always make cases exclusive so each committee is counted once.
Quick sanity checks
- C(n, k) is never larger than P(n, k), since it divides by k! ≥ 1.
- C(n, k) is largest near k = n/2 and shrinks toward both ends.
- When you pick every item or none, the answer is 1.
- The answer to a "how many groups" question must be a whole number. A fraction means an arithmetic slip.
Exercise
A club has 7 members: 4 juniors and 3 seniors. How many committees of 4 contain exactly 2 juniors and 2 seniors?
Show answer
Choose the juniors and the seniors separately, then multiply. C(4, 2) = 6 and C(3, 2) = 3, so the number of committees is 6 × 3 = 18.
Exercise
How many different groups of 10 can be chosen from 12 people? Compute it without multiplying 10 factors.
Show answer
Use symmetry: C(12, 10) = C(12, 2) = 12 × 11 / 2 = 66. Choosing 10 people to include is the same as choosing the 2 people to leave out.
Exercise
A set of 6 distinct points lies on a circle. How many triangles can be drawn using three of the points as vertices?
Show answer
A triangle is determined by its set of three vertices, so order does not matter. C(6, 3) = 6 × 5 × 4 / (3 × 2 × 1) = 120 / 6 = 20.