Drawing with replacement gives nʳ
Each of the r positions is filled independently from all n options. This is the product rule with no shrinkage.
Two different situations share this name. Choosing r items from n with repetition allowed and order mattering gives nʳ. Arranging a multiset divides by the factorials of the repetition counts.
Core ideas
Repetition appears in two guises, and they need different formulas. Distinguishing them is the lesson.
Each of the r positions is filled independently from all n options. This is the product rule with no shrinkage.
Arranging n objects of which some are indistinguishable gives n! divided by the factorial of each repetition count.
Swapping two identical letters produces the same word, so each distinct word was counted once for every such swap — exactly the circular-arrangement argument of “Permutations”.
The material
Both counts, derived, and the connection to binomial coefficients.
The number of sequences of length r from an n-element set, with repetition allowed, is nʳ.
Each position is filled independently, with all n options available every time. The product rule gives n · n ⋯ n = nʳ.
□
This is the count of functions from an r-set to an n-set, and of strings of length r over an alphabet of size n. {0,1}ⁿ has 2ⁿ elements for exactly this reason.
If n objects consist of k distinct types with n₁, …, n_k copies (n₁ + ⋯ + n_k = n), the number of distinguishable arrangements is n! / (n₁! n₂! ⋯ n_k!).
Label the identical copies temporarily so all n objects are distinct; there are n! arrangements. Each distinguishable arrangement arises from exactly n₁! n₂! ⋯ n_k! of them, one for each way of permuting the labels within each type. Dividing gives the count.
□
Eleven letters: one M, four I, four S, two P. The number of distinguishable arrangements is 11!/(1!·4!·4!·2!) = 39 916 800 / 1152 = 34 650, rather than 11! = 39 916 800.
C(n, r) is a special case: arranging r copies of "in" and n − r copies of "out" gives n!/(r!(n−r)!), which is exactly C(n,r). Choosing a subset and arranging a two-type multiset are the same problem.
n! / (n₁! ⋯ n_k!) is written binom(n; n₁, …, n_k) and counts both the arrangements of the multiset and the ways to distribute n distinct objects into k labelled boxes with prescribed sizes. It is the coefficient in the multinomial theorem of “The Binomial Theorem”.
Deal 52 cards to four players, 13 each: 52!/(13!)⁴ ≈ 5.36 × 10²⁸. The formula is the same because assigning each card a player is arranging a multiset of 13 copies of each of four labels.
A path from (0,0) to (m,n) using unit right and up steps is an arrangement of m R's and n U's, so there are (m+n)!/(m! n!) = C(m+n, m) of them — the same answer “Combinations” gave, now visible as a multiset arrangement.
Interactive
Enumerated while enumeration is possible
Method
Decide which of the two situations you are in.
Drawing gives nʳ; arranging gives the factorial quotient. They are different questions with different answers.
n options at every one of the r positions, with no shrinkage.
The divisor is the product of the factorials of those counts. Missing a repeated letter inflates the answer.
n₁ + ⋯ + n_k must equal the total number of objects. If it does not, a type has been miscounted.
How many arrangements of BANANA have no two A's adjacent?
The gap method is the standard device for "no two adjacent" constraints: arrange the unconstrained objects, then insert the constrained ones into the gaps between them. It works because choosing distinct gaps guarantees no two of the inserted objects touch.
Count the arrangements of MISSISSIPPI with no two S's adjacent. Arrange the other seven letters, count the gaps, and choose four of them. Both halves — the multiset arrangement and the gap choice — are this lesson.
Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.
No recommendations yet for this lesson.