Tutorials › Introduction to Statistics › Arrangements With Repeated Letters

Probability Rules and Counting · Tutorial 315 of 996

Arrangements With Repeated Letters

Use factorials and letter multiplicities to count distinct strings, and check that repeated arrangements have not been counted more than once.

Beginner 9 min read

What You'll Learn

  • Identify the total number of letters and the multiplicity of each repeated letter.
  • Apply the repeated-object arrangement formula to a word or string.
  • Explain why temporarily labeling identical letters causes overcounting.
  • Check a count by choosing positions for each group of repeated letters.
  • Avoid treating indistinguishable copies as different arrangements.

Why Repeated Letters Change the Count

If every letter in a string is different, arranging its \(n\) letters gives \(n!\) possible orders. When some letters repeat, however, exchanging two copies of the same letter does not produce a visibly different string. Counting all \(n!\) orders as distinct would therefore overcount. The key is to identify the repeated letters and divide out the number of exchanges that leave the string unchanged.

For this tutorial, an arrangement means a string formed by using every letter exactly as many times as it appears in the starting collection. We count different visible strings, not different ways of labeling identical copies. The resulting strings need not be dictionary words. Unless stated otherwise, case is ignored, and spaces or punctuation are not included as letters.

Definition: Suppose there are \(n\) objects in total, of which \(r_1\) are identical copies of one type, \(r_2\) are identical copies of another type, and so on through \(r_k\) types. The multiplicities satisfy \(r_1+r_2+\cdots+r_k=n\). The number of distinct arrangements using all the objects is $$ \frac{n!}{r_1!r_2!\cdots r_k!}. $$ For letters, each type is one letter, and its multiplicity is the number of times that letter occurs.

A letter appearing only once has multiplicity 1, and \(1!=1\), so it does not change the denominator. It is still useful to keep track of such letters when checking that the multiplicities add to the total number of letters. Factorials count ordered arrangements of distinct objects; the denominator corrects that count for exchanges among identical copies.

Why the Formula Works

Temporarily imagine that identical letters have been given labels. For instance, two copies of A could be called \(A_1\) and \(A_2\). With all labels in place, there are \(n!\) orders. Removing the labels turns these labeled orders into visible strings, and many labeled orders become the same visible string.

For any one visible string, its \(r_1\) copies of the first letter can be assigned their labels in \(r_1!\) ways. Independently, its \(r_2\) copies of the second letter can be labeled in \(r_2!\) ways, and likewise for every other type. Thus every visible string comes from exactly \(r_1!r_2!\cdots r_k!\) labeled orders. Dividing the total labeled orders by this common number gives the formula:

$$ \text{number of distinct visible strings} = \frac{\text{number of labeled orders}}{\text{labeled orders per visible string}} = \frac{n!}{r_1!r_2!\cdots r_k!}. $$

The division is exact because the labeled orders are partitioned into groups: each group consists of all labelings that produce one particular visible string, and every such group has the same size. This also explains why dividing by \(r_i!\) is necessary for each repeated letter, not just for one of the repeated letters.

Worked Example: Arrangements of BANANA

How many distinct strings can be made by rearranging all the letters of BANANA?

There are 6 letters. A occurs 3 times, N occurs 2 times, and B occurs once. The multiplicities add to the total: \(3+2+1=6\). Because the three As can exchange places without changing the visible string, and the two Ns can also exchange places without changing it, divide \(6!\) by \(3!2!\):

$$ \frac{6!}{3!2!1!} = \frac{720}{6\cdot2\cdot1} = \frac{720}{12} = 60. $$

There are 60 distinct arrangements. The \(1!\) for B can be omitted numerically, but writing it makes clear that every letter type is accounted for.

A check by choosing positions gives the same count. Choose the 3 of the 6 positions for A in \(\binom{6}{3}=20\) ways, then choose 2 of the remaining 3 positions for N in \(\binom{3}{2}=3\) ways. The final position must hold B, so the total is \(20\cdot3=60\).

Several Letters Can Repeat

The same procedure applies when several different letters repeat. Make a frequency list first, check that its counts sum to the total length, and include one factorial in the denominator for each letter type. It is not enough to notice only the most frequent letter: every repeated group creates its own overcount.

Worked Example: Arrangements of BALLOON

Count the distinct arrangements of the letters in BALLOON.

The word has 7 letters. L appears twice and O appears twice; B, A, and N each appear once. The multiplicities sum to \(2+2+1+1+1=7\). Therefore:

$$ \frac{7!}{2!2!1!1!1!} = \frac{5{,}040}{2\cdot2} = \frac{5{,}040}{4} = 1{,}260. $$

There are 1,260 distinct strings. As a check, choose 2 of the 7 positions for L, then 2 of the remaining 5 positions for O. The remaining 3 positions are filled by the distinct letters B, A, and N in \(3!\) orders:

$$ \binom{7}{2}\binom{5}{2}3! = 21\cdot10\cdot6 = 1{,}260. $$

This check makes the roles of the letter types explicit: the repeated letters are placed by choosing sets of positions, while the three remaining distinct letters can be permuted freely.

Worked Example: Arrangements of MISSISSIPPI

How many distinct arrangements use all the letters in MISSISSIPPI?

The word contains 11 letters: M appears once, I appears 4 times, S appears 4 times, and P appears twice. Check the total: \(1+4+4+2=11\). The repeated groups contribute \(4!\), \(4!\), and \(2!\) to the denominator:

$$ \frac{11!}{4!4!2!} = \frac{39{,}916{,}800}{24\cdot24\cdot2} = \frac{39{,}916{,}800}{1{,}152} = 34{,}650. $$

So there are 34,650 distinct arrangements. This is a useful example of why a frequency list matters: dividing only by one \(4!\), for instance, would correct for identical Is but still count exchanges of the four Ss and two Ps as if they produced new strings.

A Systematic Method and a Small-String Check

For a new word or character string, use a fixed sequence of checks. This helps prevent both incorrect totals and missing denominator factors.

1
Count the total length.
Let \(n\) be the number of letters or symbols being arranged. Count each occurrence, including repeats.
2
Record every multiplicity.
For each distinct letter, record how many copies occur. Verify that the multiplicities sum to \(n\).
3
Substitute into the formula.
Put \(n!\) in the numerator and the factorial of every multiplicity in the denominator.
4
Evaluate and interpret.
Compute the quotient and state that it counts distinct visible arrangements using all the letters.

A short string makes the distinction between labeled and visible arrangements easy to inspect. Take AABBC, with 5 letters: A occurs twice, B occurs twice, and C occurs once. The formula gives:

$$ \frac{5!}{2!2!1!} = \frac{120}{4} = 30. $$

A direct position check confirms this count. Choose 2 of the 5 positions for A, then 2 of the remaining 3 positions for B. The remaining position is C, giving \(\binom{5}{2}\binom{3}{2}=10\cdot3=30\). The two approaches agree because each arrangement is determined completely by the positions occupied by each letter type.

Common Mistakes and Why the Count Matters

Common mistake: A student sees four copies of one letter and reasons that the number of arrangements is \(n!/4!\), even though another letter is also repeated. That division corrects only for exchanging the first set of identical copies. Exchanges within every other repeated group still create overcounting.

Correction: List all letter multiplicities before calculating. If a word has 10 letters with multiplicities 3, 3, 2, 1, and 1, use \(10!/(3!3!2!1!1!)\), not \(10!/3!\). The multiplicities must sum to 10, and each repeated letter type supplies a denominator factor.

Another error is treating identical copies as distinguishable because they occupy different positions. Positions matter in describing a final string, but exchanging two copies of the same letter leaves the displayed string unchanged. For example, labeling the As in AAB as \(A_1\) and \(A_2\) creates two labeled versions of each visible arrangement, not two different visible arrangements. That is exactly the overcount the denominator removes.

These counts are useful whenever possible outcomes are strings formed from a fixed collection of symbols. The formula gives a precise total without listing each arrangement, and that total can then serve as a denominator in a probability calculation when the relevant outcomes are equally likely. The count alone does not establish that outcomes are equally likely; that must come from the way the random process is defined.

Key takeaway: Count the total number of symbols, find the multiplicity of every repeated symbol, and divide \(n!\) by the product of their multiplicity factorials. This counts visible arrangements, so exchanges among identical copies are not counted as new outcomes.

Check Your Understanding

For each question, identify the multiplicities before applying the formula.

  1. How many distinct arrangements can be made from the letters of LEVEL? Show the total length, the multiplicities, and the calculation.
  2. A six-character string contains three Xs, two Ys, and one Z. How many distinct arrangements use all six characters?
  3. Explain why the count for AABC is not \(4!\). What factorials must be used to correct the count?
  4. A word has 9 letters with multiplicities 3, 2, 2, 1, and 1. Write the arrangement formula, and check that the multiplicities account for all 9 letters.
  5. For BALLOON, describe how choosing positions for the repeated letters provides a check on the repeated-object formula.