4D

Arrangements with identical elements

Count arrangements of objects where some are identical by dividing by the arrangements of each identical group, including words with repeated letters and patterns of two kinds of object.

How many different "words" can be made from the letters of BANANA? It isn't $6!$, because swapping two of the A's gives the same word. This section fixes the overcount, and the formula it produces is the one behind combinations in the next section.

Dividing out the repeats

Pretend for a moment the letters are all different: $\text{B}\,\text{A}_1\,\text{N}_1\,\text{A}_2\,\text{N}_2\,\text{A}_3$. There are $6! = 720$ arrangements. Now take any real word, such as ANABAN. The three A's can be labelled in $3! = 6$ ways and the two N's in $2! = 2$ ways, all giving the same word. So every real word was counted $3! \times 2! = 12$ times.

$$\text{words from BANANA} = \frac{6!}{3!\,2!} = \frac{720}{12} = 60$$

Arrangements with identical objects
$$\frac{n!}{r_1!\,r_2!\cdots r_k!}$$

Here $n$ is the total number of objects, and $r_1, r_2, \ldots$ are the sizes of the groups of identical objects. A single letter contributes $1! = 1$, so it can be left out.

Example 1●

How many arrangements are there of the letters of COMMITTEE?

$\dfrac{9!}{2!\,2!\,2!}$
9 letters: M, T and E each appear twice. C, O and I appear once.
$= \dfrac{362\,880}{8} = 45\,360$

Restrictions still work

All the principles from 4B and 4C still apply: fix the restricted letters first, or tie letters together, then use the formula on what's left.

Example 2●●

How many arrangements of BANANA (a) begin with B, (b) have all three A's together?

(a) $\dfrac{5!}{3!\,2!} = 10$
Fix B in front. Arrange the other five letters: A, A, A, N, N.
(b) $\dfrac{4!}{2!} = 12$
Tie AAA into one block. The block is the same however you order the A's inside it, so there is no extra factor. Now arrange B, N, N and the block: 4 objects, two alike.

Just two kinds of object

Patterns of two kinds, such as heads and tails, or yes and no answers, come up all the time.

  • A row of $n$ places, each filled with one of two kinds: $2^n$ patterns (two choices in each box).
  • Exactly $r$ of one kind and $n - r$ of the other: $\dfrac{n!}{r!\,(n - r)!}$ patterns.
Example 3●●

A coin is tossed $10$ times. How many sequences of results are there? How many have exactly $4$ heads?

$2^{10} = 1024$ sequences
Each toss has 2 outcomes.
$\dfrac{10!}{4!\,6!} = 210$
A sequence with 4 heads is an arrangement of HHHHTTTTTT: 10 letters, 4 alike and 6 alike.

The same count gives the number of shortest paths on a grid. To go $5$ blocks east and $3$ blocks north, every route is an arrangement of EEEEENNN, so there are $\dfrac{8!}{5!\,3!} = 56$ routes.

Using only some of the letters

When you use only some of the letters, the repeats you end up with depend on which letters you choose. So split into cases by which letters are used.

Example 4●●●

How many 4-letter words can be made from the letters of BANANA?

AAAN, AAAB, AANN, AANB, ANNB
List the possible sets of 4 letters, using at most 3 A's, 2 N's and 1 B.
$\dfrac{4!}{3!} + \dfrac{4!}{3!} + \dfrac{4!}{2!\,2!} + \dfrac{4!}{2!} + \dfrac{4!}{2!} = 4 + 4 + 6 + 12 + 12$
Arrange each set, dividing by its repeats.
$= 38$

Your turn

The letters of PARALLEL are arranged in a row. How many arrangements start and end with L?

Show the working

Put an L at each end. The six letters left are P, A, R, A, L, E: two A's alike. So $\dfrac{6!}{2!} = 360$.

Flashcards
Arrangements of $n$ objects with groups of $r_1, r_2, ldots$ alike
$\dfrac{n!}{r_1!\,r_2!\cdots}$
Patterns of $r$ of one kind and $n - r$ of another
$\dfrac{n!}{r!\,(n - r)!}$
Patterns of two kinds in $n$ places
$2^n$
Practice
  1. How many arrangements are there of the letters of BANANA?

  2. How many arrangements are there of the letters of ELEVEN?

  3. The number of arrangements of MISSISSIPPI is:

  4. A coin is tossed $10$ times. How many sequences have exactly $4$ heads?

  5. How many shortest routes are there on a grid from one corner to a point $5$ blocks east and $3$ blocks north?

  6. How many arrangements of BANANA begin with B?

  7. How many arrangements of BANANA have all three A's together?

  8. How many arrangements of ELEVEN do not start with E?

  9. Exam style: the letters of PARALLEL are arranged in a row. How many arrangements start and end with L?

  10. Exam style: how many 4-letter words can be made using letters of BANANA (no letter used more often than it appears)?

Formula sheet