Recommended resources
The freely available resources this lesson will direct you to.
Hello! Last lesson, you counted sequences in which a symbol could be reused without limit. Now the supply is fixed: you might have two s, one , and one , and must arrange all four symbols. The positions still matter, but exchanging the two s does not produce a new arrangement.
This lesson develops a reliable way to count such arrangements, proves the formula behind it, and shows how to distinguish a fixed inventory from unrestricted reuse. Allow about 35–40 minutes, including the video and reading.
When a swap changes nothing
Consider the four symbols . If the s were distinguishable—temporarily call them and —there would be ways to arrange the four objects. But the labelled arrangements and both appear as once the subscripts are erased. Every visible arrangement has exactly two labelled versions, so the number of distinct arrangements is
The image makes this overcount visible. Compare its columns by asking which swaps you can still detect after balls of the same color become indistinguishable.

Watch Eddie Woo’s Permutations: how do we account for repetitions? for the transition from one repeated type to several. His examples use letter strings; they need not be dictionary words to count as distinct arrangements.
Permutations: how do we account for repetitions?
Eddie Woo derives the correction to an ordinary factorial count by identifying the arrangements that become indistinguishable.
Watch two identical letters, where swapping the two Ls leaves the visible string unchanged. Continue through multiple repeated letters; focus on why three identical letters contribute a factor of 3!, and why separate repeated types contribute separate factors.
The important word is each: division is justified because each distinct visible arrangement corresponds to the same number of arrangements with artificial labels. We can establish that number in general.
The multiset arrangement rule
A multiset records types of objects and how many copies of each type are present. Suppose there are distinct types, with respective multiplicities , and every object is used. The total number of positions is
The number of distinct linear arrangements is
To prove it, temporarily give every copy a unique label. All objects are then distinguishable, so there are labelled arrangements. Take any one arrangement after the labels have been erased. Its positions occupied by the first type can receive that type’s labels in ways; its positions occupied by the second type can receive their labels in ways; and so on. The multiplication principle gives exactly labelled arrangements for every visible arrangement. Dividing by this common overcount proves the rule.
Notice the limiting cases. If all objects have different types, every denominator factor is , and the answer is . If all objects have the same type, the answer is . The formula moves between these extremes as more copies become indistinguishable.
Read the example in MIT OpenCourseWare’s Counting, II course notes. It counts arrangements of BOOKKEEPER and then applies the same reasoning to a sequence of walking directions. The notes express an arrangement as sets of positions occupied by each letter; that is another way to describe the visible string, not an additional ordering within a type.
Counting, II. 1 Counting Subsets
Read the MIT OpenCourseWare course notes to see the general rule applied to several repeated types and to a problem that does not initially look like a word arrangement.
On p. 7, find Section 3.2, “Sequences over an alphabet.” Begin with the two examples, starting at the BOOKKEEPER question. Read through the displayed count for the 20-mile walk, then stop before Section 3.3, “A Word about Words,” on p. 8. Check the multiplicity of each letter in BOOKKEEPER, and notice why each walking direction is treated as a repeated symbol.
BOOKKEEPER contains ten letters: one , two s, two s, three s, one , and one . Thus its count is
The factorials in the denominator correspond to types of letter, not to positions in the original word. A repeated letter can occupy nonadjacent positions; those positions are still part of the same visible arrangement.
Recognizing an arrangement in a different setting
In the notes’ walking example, a route consists of 20 recorded moves: five north, five east, five south, and five west. Writing down the directions in order specifies the walk completely. Each direction appears five times, but the individual northward moves, for example, carry no separate identities. The count is therefore
This way of representing an outcome is useful beyond literal objects. Suppose five successive observations are classified as high, moderate, or low, with exactly two high, two moderate, and one low. There is only one stated collection of counts——but there are
possible time-ordered classification sequences with those counts. The formula counts the sequences, not the collection of counts. This distinction will matter when counting outcomes for probability calculations later in the course.
The method has two checks worth making before you use it:
- Are positions distinguishable? Day 1 versus day 2, or the first letter versus the second, must matter. The rule counts linear arrangements.
- Is the multiplicity of every type fixed, with the whole inventory used? If so, the denominator records which exchanges are invisible. Extra restrictions on positions require further reasoning; the quotient alone does not enforce them.
Fixed multiplicities are not unlimited reuse
The previous lesson’s and today’s factorial quotient answer different questions. With three available symbols , unrestricted reuse in four positions gives sequences. If the specification instead requires exactly two s, one , and one , the count is .
Both questions concern ordered sequences, and both permit a repeated symbol to appear in the result. The distinction is whether you have unrestricted choices at each position or prescribed totals across all positions. Writing down the inventory before choosing a formula is often enough to prevent a miscount.
Key takeaways
For objects comprising indistinguishable copies of each type, with all objects used, the number of distinct linear arrangements is . The proof starts with artificially labelled arrangements and divides by the number of labelings that produce each identical visible arrangement.
Next, you will count unordered selections. Instead of arranging an entire fixed inventory, you will decide which objects to take when the order of selection does not matter.