Checking the count of an empty selection
Choosing no items from a set can be done in exactly one way, so the count is one. This guide explains why with combinations and permutations of five items.
What an empty selection is
When you pick zero items from a collection, you still have made a choice: you took nothing. In counting, each distinct outcome of a selection process is counted once, and the outcome where nothing is selected is a single, well-defined outcome. In set language it is the empty subset, which every set has. A count of zero would say that there are no valid selections at all, which is a different statement. The difference between there being one way to do nothing and there being no way to do something is the whole subject of this guide, and it explains several conventions in combinatorics.
Choosing zero from five
The combination formula C(n, r) equals n factorial divided by r factorial times (n minus r) factorial. With n equal to 5 and r equal to 0, the numerator is 120. The denominator is 0 factorial times 5 factorial, which is 1 times 120. Defining 0 factorial as 1 makes the quotient 120 over 120, or 1. That definition is forced by the arithmetic, since 1 is the only value that keeps the recursive rule n factorial equals n times (n minus 1) factorial working down to n equal to 1, and it matches the count of empty arrangements. The first case below enters 5 and 0 and gets 1.
Ordered assignments of zero positions
The permutation formula P(n, r) equals n factorial divided by (n minus r) factorial. With r equal to 0 there are no positions to fill, and the formula gives 120 over 120, which is 1. There is one way to assign nothing to nothing, the empty assignment. The second case below confirms that the permutation calculator returns 1 for n equal to 5 and r equal to 0. Ordering does not distinguish anything here, because an empty list has no order to vary. So for r equal to 0, the unordered and ordered counts are both 1, whatever the value of n.
Choosing all five items
Selecting everything is the mirror image of selecting nothing. C(5, 5) equals 1 because there is only one subset containing all five items. A combination calculator will show C(5, 5) equals 1 and C(5, 0) equals 1, which reflects the symmetry C(n, r) equals C(n, n minus r). Ordering changes the result: P(5, 5) is 120, the number of ways to arrange five distinct items in a row. The third case checks that value. So the same act of using all five items counts as 1 when the group is unordered and 120 when the order of the five matters, and the problem statement decides which applies.
Why the convention keeps formulas consistent
Counting identities depend on the empty selection having count one. The number of subsets of a five-item set is the sum of the combinations for every size from 0 to 5. That is 1 plus 5 plus 10 plus 10 plus 5 plus 1, which is 32, and 2 to the fifth power is also 32. If the empty subset were left out, the sum would be 31 and the identity would fail for every n. The binomial theorem, Pascal triangle rows and the recursion C(n, r) equals C(n minus 1, r minus 1) plus C(n minus 1, r) all assume the empty case counts once. A consistent convention is what makes these general results work.
Size of an outcome versus number of outcomes
A frequent confusion mixes the size of a selection with how many selections exist. The empty subset has size zero, because it holds no items. The number of ways to obtain it is one. Similarly, a subset with five items from a set of five has size five but is only one outcome. When a problem says how many ways, it asks for the number of outcomes. When it asks how many items are in a chosen group, it asks for size. Keeping the two questions apart prevents the mistaken conclusion that choosing nothing contributes nothing to a total count, since it adds exactly one outcome to a sum over sizes.
Where an empty choice matters in practice
Software and everyday problems both hit this case. A form with five optional extras has 32 possible combinations of selected extras, including the one where none is chosen, and a test plan that omits it misses the default configuration. A committee problem that allows a committee of zero members still counts one outcome. In programming, a function that returns all subsets of an input list should return a list containing the empty list for an empty input, not an empty list. Seeing the empty selection as an ordinary outcome prevents boundary errors in loops and recursive functions that build combinations.
Counting the other sizes for comparison
The empty case is easier to accept when it sits among its neighbors. For five items, choosing one gives 5 outcomes, choosing two gives 10, choosing three gives 10, choosing four gives 5, and choosing all five gives 1. The row 1, 5, 10, 10, 5, 1 is the sixth row of Pascal triangle, and the 1 at each end is the empty selection and the full selection. The ordered counts grow faster: P(5, 1) is 5, P(5, 2) is 20, and P(5, 3) is 60. Dropping the leading 1 would break the symmetry of the row, which is one more reason the count of choosing nothing from five items is one and not zero.
When zero is the correct answer
None of this means every constrained count equals one. If a problem asks for ways to choose six items from a set of five, the count is zero, because the selection is impossible. A calculator will reject r greater than n or return zero depending on its design. Likewise, a constraint that forbids the empty outcome, such as requiring at least one member, subtracts one from the total. The convention applies only to the case where choosing zero items is allowed. Reading the constraints before applying a formula decides whether the empty outcome belongs in the count, and an impossible constraint has no solutions at all. For five items, requiring at least one chosen leaves 31 outcomes, while requiring exactly six chosen leaves none. Those two answers differ by more than one, and they come from different statements about what is allowed.
Reproduce the checks
Empty subset
Open the Combination calculator and enter:
- Total items n
5- Items selected r
0
Expected output:
Combinations
1The selected object is empty, but it exists once.
Empty ordered assignment
Open the Permutation calculator and enter:
- Total items n
5- Positions r
0
Expected output:
Permutations
1There are no positions to fill.
All items in order
Open the Permutation calculator and enter:
- Total items n
5- Positions r
5
Expected output:
Permutations
120Ordering all selected items is another count.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.