Why do I get one when I choose zero?
There is exactly one empty selection or arrangement. The formulas give 1 because 0! is defined as 1.
Enter the number of distinct available items and how many are selected without replacement. See the result for both ordered and unordered selections.
To assign three distinct roles to people drawn from ten, there are ten choices for the first role, nine for the second and eight for the third. Multiply to get 720 ordered arrangements. This is nPr, or n! ÷ (n − r)!.
For an unordered committee, each group of three would be counted 3! = 6 times in the ordered calculation. Divide 720 by 6 to get 120 committees. This is nCr, or n! ÷ (r! × (n − r)!).
Each item is distinct and can appear once in a selection. A problem that reuses items or treats some items as identical needs a different counting rule. The calculator computes the two specified counts exactly with integer arithmetic.
There is exactly one empty selection or arrangement. The formulas give 1 because 0! is defined as 1.
Selecting r items determines which n − r items are left out. Each selection pairs with exactly one complement.
No. Large counts are printed in full in the copyable result. The input limit for n is 1,000.
The combination result counts possible selections; it does not assign people to teams. To place every participant in a team, use the random group generator from a list of names. Choose a group count and generate one set of groups with each person included once. Group sizes differ by at most one.