Day 4 · Ten Topping Sundae¶
Edited by Charles
Combinatorics · Subsets · Binomial coefficients
Original question on OpenQuant
Problem¶
Choose at least one of ten distinct ice-cream toppings. Each topping is either included or excluded; order and quantity do not distinguish choices. How many different selections are possible?
Core idea
Count every subset by making a yes/no decision for each topping, then remove the empty selection.
Short solution¶
1. Give each topping two choices. For each of the ten toppings, decide whether to include it. These unrestricted decisions produce
distinct subsets, including the choice of no toppings.
2. Remove the empty subset. There is exactly one all-no selection.
Answer
3. Connect this to the sum of combinations. Alternatively, group selections by how many toppings they contain:
The general identity
counts the same subsets in two ways. The left side groups them by size, while the right side counts all binary include/exclude decisions. Every subset has exactly one size, so no selection is omitted or counted twice.
Watch out
\(\binom{10}{k}\) counts selections of a fixed size \(k\). This question permits every nonzero size. Do not multiply by a permutation factor: topping order does not create a new selection.
Small example: three toppings
With toppings A, B, and C, the nonempty selections are A, B, C, AB, AC, BC, and ABC. There are \(\binom31+\binom32+\binom33=3+3+1=7=2^3-1\).