Combinations: Selecting and Grouping without Order
Combinations focus on selection where order doesn't matter. Unlike permutations where arrangement sequence is crucial, combinations only care about which elements are chosen, not how they're arranged.
This page covers five key combination scenarios: Basic Combinations (selecting unordered subsets), Partition into Groups (dividing elements into labeled groups of given sizes), Distribution into Cells (assigning elements to labeled containers), Weak Composition (distributing identical units with empty cells allowed), and Strong Composition (distributing identical units requiring non-empty cells).
Each type serves different counting needs, from team selection to resource allocation. Understanding when order matters versus when it doesn't is fundamental to choosing between combinations and permutations.
Mastering these combination types equips you to handle selection and distribution problems across various mathematical and practical contexts. The challenge is identifying which scenario matches your specific problem.
Types of Combinations
In combinatorics, combinations represent ways to select or distribute items without considering order, in contrast to permutations where order matters. Building on our earlier comparison between combinations and permutations, we now distinguish between different types of combinations using key questions: whether the objects are distinct or identical, whether we are selecting a subset or distributing all objects, and whether the containers (cells) are labeled or can remain empty.
Conclusion: Understanding these different combination scenarios is essential because each situation leads to a different counting formula. Recognizing the correct type of combination ensures accurate problem-solving in probability, statistics, and many applied fields.
Simple Combinations
Counting ordered picks already works, so a new method has to explain itself.
Choose 2 of the 3 balls numbered 1, 2, 3. Pick one ball — 3 choices — then another — 2 choices left — and the multiplication principle gives 3×2=6. That count is correct and quick. It is the number of partial permutations, P(3,2)=6.
All 6 ordered picks of 2 from 3, each with a first and a second position. The same state is on the partial permutation visualizer.
When order does not matter, the ordered count counts every group twice.
A team, a hand of cards, a set of books: what matters is who is in, not who was picked first. Sort the 6 picks by the group they end up as.
the set
ordered picks that give it
times counted
{1, 2}
1 then 2, 2 then 1
2
{1, 3}
1 then 3, 3 then 1
2
{2, 3}
2 then 3, 3 then 2
2
3 sets
6 picks
6 ÷ 2 = 3
Each group of 2 appears once for every way of ordering it — 2!=2 times. Half of the 6 is repetition. With 5 balls taken 3 at a time the waste is worse: P(5,3)=60 picks for only 10 groups, every group counted 3!=6 times.
The 3 groups that are actually different. Each one stands for 2 of the ordered picks above. The same state is on the combination visualizer.
The definition
A simple combination is a selection of r items from n distinct items in which order does not matter and no item is used twice. The number of them is
A combination is a set, and the formula counts sets.
Each combination is an unordered group — {1,2} and {2,1} are the same one — and (rn) is a whole number: how many such groups there are.
Simple Combination works when selecting items from a collection where order doesn't matter and no repetitions are allowed. Classic examples include choosing team members from a group or selecting lottery numbers.
Property
Simple Combination
Order matters
✗
Objects distinct or identical?
Distinct
Select subset or distribute?
Select subset
Cells labeled or unlabeled?
N/A
Empty cells allowed?
N/A
Simple Combination — Examples: Choosing committee members from a club, selecting lottery numbers, picking a set of books to borrow from a library, forming a group of students for a project, selecting ingredients for a recipe from available options.
Simple Combinations Examples
Two facts come with the formula for free.
First, it is the ordered count with the waste divided out: (rn)=r!P(n,r) — for our balls, 26=3. Second, choosing which r to take is the same as choosing which n−r to leave, so (rn)=(n−rn).
take r of 3
leave 3 − r
C(3, r)
0
3
1
1
2
3
2
1
3
3
0
1
Common notations: •(rn) - "n choose r" (most common in modern texts) •C(n,r) - C for "combinations" •Cnr - alternative C notation •nCr - subscript/superscript form
The (rn) notation is the most widely used in modern mathematics, but you'll often see C(n,r) in introductory texts and nCr on calculators.
Everything rests on one fact: every group is counted the same number of times.
Dividing by r! is honest only because each group of r distinct items has exactly r! orderings. That is what the conditions buy:
Here n is the total number of distinct items and r is the number of items to select; order doesn't matter and repetition isn't allowed.
Break them and the single division fails. If some items are identical, or an item may be chosen more than once, different groups have different numbers of orderings, and the counts on the rest of this page take over.
The sections that follow handle what simple combinations cannot: splitting items into several labelled groups, weak and strong compositions, and distributing items into cells.
Partition into Groups applies when dividing distinct items into labeled (distinguishable) groups of given sizes, where only which items share a group matters, not the order within groups. Classic examples include dividing students into teams or splitting items into categories.
Property
Partition into Groups
Order matters
✗
Objects distinct or identical?
Distinct
Select subset or distribute?
Distribute
Cells labeled or unlabeled?
Labeled
Empty cells allowed?
Typically no
Partition into Groups — Examples: Dividing students into study groups, splitting employees into project teams, grouping tasks into phases of a project, dividing guests into tables at an event, forming clusters of data points in analysis.
Fact: A perfect bridge deal is hardly ever luck
The partition formula gives (13!)452!≈5.36×1028 bridge deals, and only 4!=24 of them hand each seat a complete suit, a chance of about 4.5×10−28. A reported deal of four whole suits is far more likely a new deck, sorted by suit, that was barely shuffled.
A game of bridge starts with exactly this kind of split. The 52 cards are dealt into four hands of 13, and the hands are labeled by the seats North, East, South and West, so the same cards in a different seat make a different deal. The order in which the cards arrive in a hand does not matter, only which 13 cards it holds. In the formula below, n=52, k=4 and every group size is 13.
Notation: Partition into Groups doesn't have a standard symbolic notation like (rn) for simple combinations.
Partitions are typically just described in words or with set notation like:
"Partition of set S into k parts" {A₁, A₂, ..., Aₖ} where A₁ ∪ A₂ ∪ ... ∪ Aₖ = S
Unlike other combinations, permutations, etc., partitions don't have a universally recognized compact notation symbol.
Splitting 6 people into 3 pairs with no names as 2!2!2!6!=90 counts each split once for every one of the 3!=6 ways to name the pairs. The number of splits is 3!90=15.
Here n is the total number of distinct items to partition into k groups of sizes n1,n2,…,nk respectively, where the groups are labeled (distinguishable) and the order within each group does not matter.
The groups count as labeled when each one has its own name or role, such as Team A and Team B, or a morning shift and an evening shift. Exchanging the members of two such groups then gives a different split. When the groups are told apart only by who is in them, as with tables at an event, exchanging two whole groups of the same size leaves the split as it was.
Only who shares a group counts, so the orders inside each labeled group are divided out of n!.
Weak Composition
Weak Composition occurs when distributing identical units into labeled containers where some containers can remain empty and only the count in each container matters. Classic examples include distributing identical coins into numbered boxes or allocating identical resources to different departments.
Property
Weak Composition
Order matters
✗
Objects distinct or identical?
Identical
Select subset or distribute?
Distribute
Cells labeled or unlabeled?
Labeled
Empty cells allowed?
✓
Weak Composition — Examples: Distributing identical coins into numbered boxes, allocating identical resources to different departments, assigning identical tasks across several workers. Since this type of experiment is highly specific — focusing only on counts in labeled containers, even allowing some to remain empty — it is largely self‑explanatory and not as easy to find in common real‑world situations.
Notation: The notation for Weak Composition is:
((nr)) or (((nr)))
This represents the number of ways to place n identical objects into r labeled bins, where empty bins are allowed. It's also written as (r−1n+r−1) but the double parentheses notation specifically indicates weak compositions.
For 7 identical candies and 3 children, putting n=3 and r=7 into the formula gives (69)=84. With n=7 candies and r=3 children, the count is (3−17+3−1)=(29)=36.
Here n is the total number of identical items to distribute into r labeled containers, where empty containers are allowed and only the count in each container matters.
The two numbers in the formula do different jobs. The n items are the units being shared out, and since they are identical, a distribution is fixed by how many units each container receives. Picture the items as a row of n stars split into r containers by r−1 bars: the n+r−1 symbols in the row give the top of the binomial coefficient, and the r−1 bars give the bottom.
Identical items in labeled containers become a row of stars and bars, so the count is a choice of where the bars go.
Strong Composition
Strong Composition works when distributing identical units into labeled containers where every container must receive at least one unit and only the count in each container matters. Classic examples include distributing identical items to departments where each department must get something or allocating identical resources ensuring no group is left empty.
Property
Strong Composition
Order matters
✗
Objects distinct or identical?
Identical
Select subset or distribute?
Distribute
Cells labeled or unlabeled?
Labeled
Empty cells allowed?
✗
Strong Composition — Examples: Distributing identical items to departments where each department must receive at least one, allocating identical resources among teams ensuring none are left empty, dividing identical tasks across several workers with no one unassigned. Like weak composition, this type of experiment is quite specific — it focuses on counts in labeled containers with no empties allowed — making it largely self‑explanatory and less common in everyday situations.
Fact: A whole number n has 2n−1 ordered sums
Counted over every number of parts, the ways to write n as an ordered sum of positive whole numbers total 2n−1: line up n stars and decide for each of the n−1 gaps whether a bar goes in. The number 4 has 8 of them, from 4 itself to 1+1+1+1.
A strong composition can also be read as a way of writing n as an ordered sum of positive whole numbers, one summand for each container. With n=4 and r=2 the sums are 1+3, 2+2 and 3+1, and the formula below agrees: (13)=3. Since 1+3 and 3+1 fill the two containers differently, they count as different sums. Letting r run through 1,2,3 and 4 lists every such sum for n=4.
Notation: There is no standard symbol for Strong Composition; the count is written directly as:
(r−1n−1)
This represents the number of ways to place n identical objects into r labeled bins where each bin must contain at least one object.
Counting 7 identical candies for 3 children as (3−17+3−1)=36 includes splits like 7+0+0, where a child gets nothing. With at least one candy each, the count is (3−17−1)=(26)=15.
Here n is the total number of identical items to distribute into r labeled containers, where each container must receive at least one item and only the count in each container matters.
The requirement changes what is counted, not the items or the containers. One way to see the link with weak composition is to hand one unit to every container first; the remaining n−r units can then be shared out freely, with empty containers allowed. The condition also needs n≥r, since with fewer units than containers some container has to stay empty.
Distribution into Cells works when assigning each distinct item to a specific labeled container, creating a mapping that shows which container each item goes to. Classic examples include assigning students to different classrooms or placing different files into labeled folders.
Property
Distribution into Cells
Order matters
✗
Objects distinct or identical?
Distinct
Select subset or distribute?
Distribute
Cells labeled or unlabeled?
Labeled
Empty cells allowed?
✓
Distribution into Cells — Examples: Assigning students to classrooms, placing different files into labeled folders, allocating distinct products to specific storage bins, or assigning employees to designated offices. This setup focuses on mapping each unique item to a labeled container, making the outcome a mapping of items to containers, where several items may share a container.
Notation: Distribution into Cells doesn't have a standard symbolic notation like (rn) for simple combinations. It's typically just described as "functions from set A to set B" or "mappings" in mathematical notation, but there's no compact symbol specifically for this concept like there is for combinations or permutations.
Assigning 5 employees to 3 projects as 53=125 treats each project as picking one employee. Each employee picks one of 3 projects, so the count is 35=243.
Here n is the total number of distinct items to assign and r is the number of labeled containers, where each item can go into any container and containers can be empty.
The count comes from the multiplication rule applied item by item. The first item has r containers to go to, the second item again has r, and so on, because a container can take any number of items. With n items this is a product of n equal factors r⋅r⋯r, one factor for each item.
Four mistakes come up again and again when a counting formula from this page is put to work. Each is marked where it happens in the sections above; here each is worked through in full, with the wrong and the right working side by side.
Forgetting k! for unnamed groups
The formula n1!n2!⋯nk!n! counts splits into labeled groups. It is used for groups that have no names, so each split is counted once for every way of attaching the names to groups of the same size.
Wrong working: 6 people are to be split into 3 pairs, with no names for the pairs. The count is given as 2!2!2!6!=8720=90.
Right working: the 90 counts named pairs, Pair 1, Pair 2 and Pair 3. Any one split into pairs can be named in 3!=6 ways, so the number of splits is 690=15. Only groups of equal size can be exchanged like this: if all the sizes are different, the sizes already tell the groups apart and no division is needed.
Why it happens: the formula looks complete, and problems rarely say whether the groups have names, so it is easy to miss that the formula assumes they do.
How to check: count directly. Person 1 has 5 possible partners; of the 4 people left, the first has 3 possible partners; the last 2 form the third pair. That gives 5⋅3⋅1=15.
Swapping items and containers
In (r−1n+r−1) the number of items n and the number of containers r do different jobs, and the two are put into the formula the wrong way round.
Wrong working: 7 identical candies are shared among 3 children. With n=3 and r=7, the count is given as (7−13+7−1)=(69)=84.
Right working: the candies are the items and the children are the containers, so n=7 and r=3: (3−17+3−1)=(29)=36.
Why it happens: the top index n+r−1 is the same either way, so the swap only shows in the bottom index. The notation ((nr)) also writes the number of containers on top, the opposite of (rn).
How to check: try a case small enough to list. 2 candies for 3 children: 2+0+0 in 3 orders and 1+1+0 in 3 orders, 6 in all. The correct substitution gives (24)=6; the swapped one gives (14)=4.
Allowing empty containers
Every container must receive at least one unit, but the weak composition formula is used, and it also counts the distributions that leave some containers empty.
Wrong working: 7 identical candies for 3 children, each child getting at least one. The count is given as (3−17+3−1)=(29)=36.
Right working: (3−17−1)=(26)=15. The same number comes from giving each child one candy first and sharing the remaining 4 freely: (3−14+3−1)=(26)=15.
Why it happens: the two problems differ in a single condition, and the weak formula is usually the one learned first.
How to check: the difference 36−15=21 must be the number of distributions with an empty child. Exactly one child gets nothing in 3⋅6=18 ways (choose that child, then split 7 between the other two with at least one each), and two children get nothing in 3 ways. Indeed 18+3=21.
Swapping base and exponent
The count rn for n distinct items in r labeled containers is written as nr.
Wrong working: 5 employees are assigned to 3 projects, and the count is given as 53=125.
Right working: each of the 5 employees chooses one of the 3 projects, so the count is 3⋅3⋅3⋅3⋅3=35=243.
Why it happens: "5 employees to 3 projects" names the numbers in the order base, then exponent. The count 53 answers a different question, in which each project picks one employee and one employee may be picked by several projects.
How to check: try 2 employees and 3 projects. Each employee has 3 choices, giving 9 assignments, which is 32, not 23=8. The exponent is always the number of choices made, one for each item.
Combinations FAQ
What is the difference between a permutation and a combination?
+
Permutations count arrangements where order matters; combinations count selections where it does not. Choosing three people for a podium with ranked places is a permutation, while choosing three for a committee is a combination. The combination count is always smaller, since every selection corresponds to several orderings of the same items.Read more →
Why does the combination formula divide by r factorial?
+
Because the permutation count treats each ordering of the same chosen items as separate, and there are r factorial ways to order r items. Dividing by that number collapses every ordering of a given selection into one. The division is exactly what converts a count of arrangements into a count of selections. Try values on the combinations calculator.Read more →
What is the difference between weak and strong composition?
+
A weak composition allows parts equal to zero, so some recipients may receive nothing. A strong composition requires every part to be at least one, so everyone receives something. The distinction changes the formula, since the strong case is handled by giving each recipient one item first and distributing the remainder weakly.Read more →
How many ways can you split a group into teams?
+
Divide the total arrangements by the factorial of each team size, and divide again by the factorial of the number of teams if the teams are unlabelled and all the same size. That second division catches the case where swapping two whole teams produces the same split, which is the step most often forgotten. See the partition calculator.Read more →
Is nCr the same thing as the binomial coefficient?
+
Yes. The two notations name the same number, counted differently: nCr counts selections of r items from n, while the binomial coefficient counts the coefficient of a term in an expansion. That they coincide is the reason counting and algebra connect through the binomial theorem.Read more →
What are the odds of a perfect bridge deal?
+
About 4.5×10−28 with a fair shuffle. The partition formula gives (13!)452!≈5.36×1028 ways to deal four labeled hands of 13, and only 4!=24 of them hand each seat a complete suit. A reported deal of four whole suits is far more likely a new deck, sorted by suit, that was barely shuffled.Read more →
What is the stars and bars method?
+
A way to count weak compositions. Line up the n identical items as stars and split them among r containers with r−1 bars. Each arrangement of the n+r−1 symbols is one distribution, so the count is the number of ways to place the bars, (r−1n+r−1). For 7 identical candies and 3 children that is (29)=36.Read more →
How many ways can a number be written as an ordered sum of positive integers?
+
2n−1, counting every number of parts. Line up n stars and decide for each of the n−1 gaps whether a bar goes in; each set of choices gives one ordered sum. The number 4 has 8: 4, 1+3, 3+1, 2+2, 1+1+2, 1+2+1, 2+1+1 and 1+1+1+1. Adding the strong composition counts (r−1n−1) over all r gives the same total.Read more →