This glossary organizes 22 combinatorics terms into four categories that build from the foundational counting rules through arrangements, selections, and the algebraic structure of the binomial coefficient.
Counting Principles covers the 6 logical rules that govern how counts combine: the addition rule and multiplication rule (the foundational pair distinguished by "or" versus "and"), complementary counting (count the failures and subtract), double counting (count the same set two ways to produce an identity), the pigeonhole principle (more items than containers forces a repeat), and the inclusion-exclusion principle (the systematic correction for overlapping sets).
Permutations contains 8 entries on arrangements where order matters: factorial (the foundational operation n!), the general concept of permutation, and the five permutation scenarios (full, partial, with repetition, with identical items, and circular), plus derangements (permutations with no fixed point).
Combinations & Distributions covers 5 entries on selections and distributions where order does not matter: simple combination, partition into groups (distinct items into unlabeled subsets), weak composition (identical items into labeled bins, empties allowed), strong composition (identical items into labeled bins, no empties), and distribution into cells (distinct items into labeled containers).
Binomial Structure addresses 3 entries on the algebraic objects that organize combinatorial counts: the binomial coefficient (kn), its generalization to the multinomial coefficient, and Pascal's triangle as the visual organization of all binomial coefficients.
Each definition includes a precise formal statement, notation conventions, key properties, worked examples, and links to detailed lesson pages. Use the search bar or category filters above to navigate.
The addition rule states that if a count splits into k mutually exclusive cases with m1,m2,…,mk outcomes each, the total number of outcomes is m1+m2+⋯+mk.
The addition rule applies whenever a choice is made by selecting one option from several disjoint groups. The linguistic marker is the word "or" — pick method 1 OR method 2 OR method 3. Each "or" between mutually exclusive cases contributes its own count to the sum.
In set-theoretic language, the rule is the cardinality identity ∣A∪B∣=∣A∣+∣B∣ when A∩B=∅, generalized to any number of pairwise disjoint sets.
↑ Back to top
Multiplication Rule
The multiplication rule states that if an outcome is built from k independent steps with m1,m2,…,mk options each, the combined sequence has m1×m2×⋯×mk possible outcomes.
The multiplication rule applies whenever an outcome requires completing a sequence of independent steps. The linguistic marker is the word "and" — choose step 1 AND step 2 AND step 3. Each "and" between independent steps multiplies the count.
In set-theoretic terms, the rule is the cardinality of the Cartesian product, ∣A×B∣=∣A∣⋅∣B∣, extended to any finite number of factors.
↑ Back to top
Complementary Counting
Complementary counting computes the size of a set by subtracting the size of its complement from the universe: if U is the universe and A⊆U, then ∣A∣=∣U∣−∣U∖A∣.
Some counting problems are easier to solve in reverse. Counting the cases that fail a condition can be significantly simpler than counting the cases that satisfy it, especially when the condition has the form "at least one" — its negation, "none", often collapses into a single tractable count.
The strategy is: count the total, count the complement, subtract.
↑ Back to top
Double Counting
Double counting is a proof technique in which the same set is enumerated by two different strategies; the resulting expressions both equal the size of the set, so they equal each other: if ∣S∣=f(n) by one argument and ∣S∣=g(n) by another, then f(n)=g(n).
Double counting produces identities rather than numerical counts. A combinatorial object is counted in two genuinely different ways — typically by selecting members directly versus by partitioning the selection into stages — and the two expressions for the same total are equated.
Many binomial coefficient identities, including Vandermonde's identity and the hockey stick identity, are most naturally proved by double counting.
↑ Back to top
Pigeonhole Principle
The pigeonhole principle states that if n items are distributed among k containers and n>k, then at least one container holds at least two items. The generalized form: if n items are distributed among k containers, at least one container holds at least ⌈n/k⌉ items.
The pigeonhole principle does not count outcomes — it guarantees the existence of a particular kind of outcome. The statement is existential: it certifies that something must occur without identifying where.
The basic form is the case n=k+1 of the generalized form, which forces ⌈n/k⌉=2.
↑ Back to top
Inclusion-Exclusion Principle
The inclusion-exclusion principle computes the size of a union of n sets by alternately adding the sizes of k-fold intersections: ∣⋃i=1nAi∣=∑k=1n(−1)k+1∑1≤i1<⋯<ik≤n∣Ai1∩⋯∩Aik∣.
The addition rule computes the size of a union by adding the sizes of its pieces — but only when those pieces are mutually exclusive. The moment two sets share elements, simply adding their sizes counts the shared elements twice.
Inclusion-exclusion is the systematic correction: add the sizes of individual sets, subtract pairwise intersections to remove double-counting, add back triple intersections to compensate for over-correction, and continue with alternating signs.
↑ Back to top
Permutations
(8 items)
Factorial
The factorial of a non-negative integer n, written n!, is the product of all positive integers from 1 up to n: n!=n⋅(n−1)⋅(n−2)⋯2⋅1, with the convention 0!=1.
The exclamation mark ! written after a non-negative integer denotes the factorial: 5!=120, 10!=3,628,800. The convention 0!=1 is required for formulas such as (0n)=1 to behave correctly.
↑ Back to top
Permutation
A permutation is an arrangement of objects in a definite order. The defining property is that order matters — different sequences of the same objects count as different permutations.
A permutation answers the question "in how many ways can these items be arranged in order?" Each distinct ordering is a separate permutation. Reordering the same items produces a different permutation, even though the underlying set of items is unchanged. This is the property that distinguishes permutations from combinations, where order is irrelevant.
A full permutation is an arrangement of all n distinct items in a linear sequence, with each item appearing exactly once. The number of full permutations of n items is P(n)=n!.
All items are used: no item is left out and no item is reused. Each item appears exactly once in the arrangement.
Order matters: rearranging items produces a different full permutation.
The count n! follows from the multiplication rule: n choices for the first position, n−1 for the second, decreasing to 1 for the last position.
↑ Back to top
Partial Permutation
A partial permutation is a selection of r distinct items from n available items followed by their arrangement into a linear sequence, with no item reused. The number of partial permutations is P(n,r)=(n−r)!n!.
Several notations are in use for the same count: P(n,r), nPr, Anr, and nPr — the last is the form most calculator displays use.
↑ Back to top
Permutation with Repetition
A permutation with repetition is an arrangement of r positions where each position is filled independently from n available items, with the same item allowed to appear in multiple positions. The number of such arrangements is Prep(n,r)=nr.
Order matters and items may be reused. Each of the r positions is filled independently from the same pool of n items.
The count nr follows from the multiplication rule: every one of the r positions has all n items available, so the total is the product of r factors of n.
This is the only permutation scenario where the count can exceed n! — the formula nr grows without bound as r increases past n.
↑ Back to top
Permutation with Identical Items
A permutation with identical items is an arrangement of n objects in a linear sequence where some objects are indistinguishable from one another, counting only distinct orderings. If the objects split into groups of sizes n1,n2,…,nk with n1+n2+⋯+nk=n, the count is n1!n2!⋯nk!n!.
(n1,n2,…,nkn) or P(n;n1,n2,…,nk) — both denote the same count, equal to the multinomial coefficient.
↑ Back to top
Circular Permutation
A circular permutation is an arrangement of n distinct items around a circle, where two arrangements are considered identical if one is a rotation of the other. The number of circular permutations is Pcirc(n)=(n−1)!.
Order matters along the circle, but absolute position does not. Fixing the position of one item removes the rotational redundancy, leaving the remaining n−1 items to be arranged linearly in (n−1)! ways.
Equivalently: the n! linear arrangements of n items partition into groups of n rotationally equivalent versions, so dividing by n gives nn!=(n−1)!.
Reflections (clockwise vs counterclockwise) are typically considered distinct in this definition. If reflections are also identified, the count becomes 2(n−1)!.
↑ Back to top
Derangement
A derangement is a permutation of a set in which no element appears in its original position. The number of derangements of an n-element set, written !n or Dn, is !n=n!∑k=0nk!(−1)k.
!n — the subfactorial notation, with the exclamation mark preceding the number (in contrast to n! for the factorial).
Dn — alternative notation common in older texts.
↑ Back to top
Combinations & Distributions
(5 items)
Combination
A combination is a selection of items from a collection where order does not matter. The number of ways to select r items from n distinct items is the binomial coefficient(rn)=r!(n−r)!n!.
Several notations denote the same quantity: (rn) — the standard modern form, read "n choose r"; C(n,r) — common in introductory texts; Cnr — an alternative form; nCr — the form most calculator displays use.
↑ Back to top
Partition into Groups
A partition into groups divides n distinct items into k unlabeled subsets where only the grouping matters, not the order within groups or names of the groups. When the group sizes n1,n2,…,nk are specified and distinct, the count is n1!n2!⋯nk!n!.
Items are distinct, but groups are unlabeled — only which items share a group matters, not which group is called "Group 1" versus "Group 2".
When groups of equal size are present, the formula divides further by the factorial of the count of equal-sized groups to remove the redundancy of interchangeable group labels.
The formula coincides with the multinomial coefficient when the groups are treated as labeled by their size signature.
↑ Back to top
Weak Composition
A weak composition is a distribution of n identical items into r labeled containers where some containers may remain empty. The number of weak compositions is (r−1n+r−1).
((rn)) — the double-parenthesis notation specifically indicating a weak composition. The same count is also written (r−1n+r−1) as an ordinary binomial coefficient.
↑ Back to top
Strong Composition
A strong composition is a distribution of n identical items into r labeled containers where every container must receive at least one item. The number of strong compositions is (r−1n−1).
⟨(rn)⟩ — the angle-bracket notation specifically indicating a strong composition. The same count is also written (r−1n−1) as an ordinary binomial coefficient.
↑ Back to top
Distribution into Cells
A distribution into cells assigns each of n distinct items to one of r labeled containers, producing a mapping from items to containers. The number of distributions is rn.
Items are distinct and containers are labeled. Each item independently chooses one of the r containers, and containers may receive any number of items including zero.
The count rn follows from the multiplication rule: each of the n items has r choices, so the total is r⋅r⋯r=rn.
Equivalently, a distribution into cells is a function from an n-element domain to an r-element codomain. Counting functions: rn.
This differs from permutation with repetition only in framing — the formula is the same with the roles of the parameters swapped.
↑ Back to top
Binomial Structure
(3 items)
Binomial Coefficient
The binomial coefficient (kn), read "n choose k", is the number of k-element subsets of an n-element set. For non-negative integers n and k with 0≤k≤n, (kn)=k!(n−k)!n!.
(kn) — the standard modern form, used throughout mathematics.
C(n,k) — common in introductory texts.
Cnk or Ckn — used in some European traditions; the position of the subscript and superscript varies by source.
nCk — the form most calculator displays use.
↑ Back to top
Multinomial Coefficient
The multinomial coefficient counts the number of ways to partition n distinct items into r labeled groups of specified sizes k1,k2,…,kr with k1+k2+⋯+kr=n. Its value is (k1,k2,…,krn)=k1!k2!⋯kr!n!.
The multinomial coefficient generalizes the binomial coefficient to more than two groups. The binomial case is r=2: (kn)=(k,n−kn).
Combinatorial interpretation: the count of distinct arrangements of n items in which k1 are of type 1, k2 are of type 2, and so on. This is the same count that arises in permutations with identical items — the two viewpoints (partitioning into labeled groups versus arranging with repetition of types) describe the same enumeration.
The multinomial coefficient is the coefficient of x1k1x2k2⋯xrkr in the expansion of (x1+x2+⋯+xr)n.
↑ Back to top
Pascal's Triangle
Pascal's triangle is the triangular array of binomial coefficients in which row n (indexed from 0) contains the n+1 values (0n),(1n),…,(nn), and each interior entry equals the sum of the two entries directly above it.
The recursive rule generating the triangle is Pascal's rule: (kn)=(k−1n−1)+(kn−1).
Symmetry: each row reads the same forwards and backwards, reflecting the identity (kn)=(n−kn).
Row sums: the entries of row n sum to 2n, the number of subsets of an n-element set.
Diagonals: the first diagonal contains 1,1,1,…; the second contains the natural numbers 1,2,3,…; the third contains the triangular numbers 1,3,6,10,…; the fourth contains the tetrahedral numbers 1,4,10,20,…. Sums along shallow diagonals produce the Fibonacci numbers.