Skip to main content

Distinct arrangements of objects with repeats: the n! over r1! ... rk! formula and the binary two-type special case

Syllabus dot point

“Count the distinct arrangements of n objects when some are identical: divide n! by the factorial of each repeat count to get n! over r1! r2! ... rk!, and handle the two-type special case where every object is one of two kinds (2^n arrangements in all, or choose the positions of one kind with a combination)”

HSCMaths Extension 1Combinatorics (ME-A1)18 min read

Quick answer

When some objects are identical, plain n!n! overcounts, because swapping identical copies changes nothing. Divide by the factorial of each repeat count: the number of distinct arrangements of nn objects with r1,r2,…,rkr_1, r_2, \dots, r_k alike of each type is n!r1! r2!⋯rk!\dfrac{n!}{r_1! \, r_2! \cdots r_k!}, for example 7!3!×2!=420\dfrac{7!}{3! \times 2!} = 420 for the letters of PRESSES\text{PRESSES}. When every object is one of just two kinds there are 2n2^n patterns in all, and exactly rr of one kind number nCr=n!r!(n−r)!^{n}C_{r} = \dfrac{n!}{r! (n - r)!}, for example 28=2562^8 = 256 traffic-light patterns and 8C3=56^{8}C_{3} = 56 with exactly 33 red; by symmetry 8C5^{8}C_{5} is also 5656. Shorter words split into cases over the omitted letter, and "two identical items separated" is the complement (total)−(together)(\text{total}) - (\text{together}), with no ×2!\times 2! on an identical block.

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. How exam questions ask about this dot point
  4. Practice questions

What this dot point is asking

The multiplication principle and ordered selections page counted arrangements of objects that were all different: nn distinct objects line up in n!n! ways, and you choose and order rr of them in nPr^{n}P_{r} ways. Every one of those counts quietly assumed the objects were distinguishable, so that swapping any two of them produced a genuinely new arrangement. This page removes that assumption. When some of the objects are identical, swapping two of them produces the same arrangement, and the old counts overcount.

The whole dot point is one idea and one formula. Plain n!n! counts every ordering as if the objects were all different; to fix it you divide by the factorial of each repeat count, because the identical copies of one type can be permuted among themselves in that many ways without changing anything. That gives the formula

n!r1! r2!⋯rk!,\frac{n!}{r_1! \, r_2! \cdots r_k!},

where r1,r2,…,rkr_1, r_2, \dots, r_k are how many there are of each repeated type. The second half of the dot point is the two-type special case, where every object is one of just two kinds (heads or tails, on or off, red or green). It has two faces that are really the same count: there are 2n2^n arrangements in all, and the arrangements with exactly rr of one kind number nCr^{n}C_{r}. Reading the wording, naming the repeats, and laying the division out so a marker can follow it is the entire skill.

The answer

Why plain n! overcounts, and the dividing-out fix

Take the word PRESSES\text{PRESSES}. It has 77 letters, so if the letters were all different there would be 7!=50407! = 5040 arrangements. But they are not all different: there are three S\text{S}s and two E\text{E}s. Pick any one arrangement, say PRESSES\text{PRESSES} itself, and imagine the three S\text{S}s wore tiny labels S1,S2,S3\text{S}_1, \text{S}_2, \text{S}_3. Those three labelled S\text{S}s could be permuted among their three positions in 3!=63! = 6 ways, and all six labelled versions spell the same word once the labels come off. So the count 7!7! has counted this one word 66 times over. The same happens with the two E\text{E}s: each word is counted 2!=22! = 2 times because the E\text{E}s can swap. The two overcounts are independent and multiply, so every genuine word has been counted 3!×2!=123! \times 2! = 12 times. Dividing it out,

7!3!×2!=504012=420.\frac{7!}{3! \times 2!} = \frac{5040}{12} = 420.

That is the engine of the whole topic: you are not counting fewer things, you are correcting a count that listed each thing too many times. The number you divide by is exactly "how many ways the identical copies can be shuffled without anyone noticing".

Counting distinct arrangements of PRESSES from its letter typesThe seven letters of PRESSES split into four types: one P, one R, two Es and three Ss. The number of distinct arrangements is seven factorial divided by the product of the repeat factorials, one factorial times one factorial times two factorial times three factorial, which is seven factorial over two factorial times three factorial, equal to 420.PRESSES: divide 7! by the repeats of each letterletter typehow many (r)overcount r!P11! = 1R11! = 1E22! = 2S33! = 6total letters n = 7divide by 3! × 2!arrangements =7!3! × 2!= 420

The table is the layout to copy into an exam. List every letter type, its repeat count rr, and the overcount r!r! it causes; the bottom row reads off n=7n = 7 and the divisor 3!×2!3! \times 2!. A type that appears once, like P\text{P} and R\text{R} here, contributes 1!=11! = 1 and so changes nothing; you can leave it in or out of the divisor, but listing it stops you from miscounting nn.

Key fact

The identical-elements formula. If nn objects consist of r1r_1 alike of one type, r2r_2 alike of another, and so on up to rkr_k alike of the last type (so r1+r2+⋯+rk=nr_1 + r_2 + \cdots + r_k = n), the number of distinct arrangements of all of them is

n!r1! r2!⋯rk!.\frac{n!}{r_1! \, r_2! \cdots r_k!}.

Plain n!n! would count each arrangement r1! r2!⋯rk!r_1! \, r_2! \cdots r_k! times, once for every way the identical copies could be permuted without changing it; dividing removes the overcount. Any type with ri=1r_i = 1 contributes 1!=11! = 1 and may be omitted from the divisor.

A mix of some distinct and some repeated

The formula does not need every letter to repeat; it just divides by the repeats that exist. Consider arranging the 66 letters of TOMATO\text{TOMATO}. There are two T\text{T}s and two O\text{O}s, while M\text{M} and A\text{A} appear once each. With n=6n = 6 and repeat counts 22 and 22,

6!2!×2!=7204=180.\frac{6!}{2! \times 2!} = \frac{720}{4} = 180.

If a question changes one object to make it distinct, the divisor loses a factor and the count grows. Cambridge's wine-glass example is the model: three identical wine glasses and five identical tumblers in a row give 8!3!×5!=56\dfrac{8!}{3! \times 5!} = 56 patterns, because there are only two types. But if one wine glass becomes clearly chipped and two of the five tumblers are replaced by a matching different pair, the eight objects split into types of sizes 2,1,3,22, 1, 3, 2 (two plain wine glasses, one chipped glass, three original tumblers, two replacement tumblers), and the count rises to

8!2!×1!×3!×2!=1680.\frac{8!}{2! \times 1! \times 3! \times 2!} = 1680.

Making objects more distinct always increases the count, because there is less to divide out. The extreme is all eight different, giving the full 8!=40 3208! = 40\,320.

Words that omit or include a letter: split into cases

A common twist asks for words shorter than the full set, for example "how many six-letter words use the letters of PRESSES\text{PRESSES}?" Now you are not arranging all seven letters, so you cannot write a single 7!…\dfrac{7!}{\dots}. The clean route is to split into cases by which letter is left out, count each case with the formula, and add. Omitting one letter leaves six letters to arrange, and the available repeats depend on which type you dropped.

  • Omit an S\text{S}: the six letters are P,R,E,E,S,S\text{P}, \text{R}, \text{E}, \text{E}, \text{S}, \text{S} (two E\text{E}s, two S\text{S}s), giving 6!2!×2!=180\dfrac{6!}{2! \times 2!} = 180.
  • Omit an E\text{E}: the six letters are P,R,E,S,S,S\text{P}, \text{R}, \text{E}, \text{S}, \text{S}, \text{S} (three S\text{S}s), giving 6!3!=120\dfrac{6!}{3!} = 120.
  • Omit the P\text{P}: the six letters are R,E,E,S,S,S\text{R}, \text{E}, \text{E}, \text{S}, \text{S}, \text{S} (two E\text{E}s, three S\text{S}s), giving 6!2!×3!=60\dfrac{6!}{2! \times 3!} = 60.
  • Omit the R\text{R}: by the same shape, 6!2!×3!=60\dfrac{6!}{2! \times 3!} = 60.

The cases drop different letters and so cannot overlap, so you add: 180+120+60+60=420180 + 120 + 60 + 60 = 420. (It is a pleasant coincidence that this equals the full seven-letter count; the two questions are different and the equality is not a rule.) The lesson is that a short-word question over a multiset is a cases question: dropping a repeated letter changes the divisor, so you must treat each dropped type separately.

The two-type special case: 2^n and choosing positions

When every object is one of just two kinds, the topic has a particularly clean shape that the next sections of the course lean on heavily. Picture a motorist passing 88 sets of traffic lights, each red or green; or an opinion poll of 88 yes/no questions; or 88 switches each up or down. Each setup is a "word" of length 88 in a two-letter alphabet.

There are two counts to know, and they are two views of the same arrangements.

All patterns: 2n2^n. Each of the nn positions is filled independently with one of two symbols, so by the multiplication principle the number of patterns is 2×2×⋯×2=2n2 \times 2 \times \cdots \times 2 = 2^n. For the eight lights, 28=2562^8 = 256.

Exactly rr of one kind: a combination. Fix how many are red, say rr, and a pattern is determined entirely by which rr of the nn positions are red; the rest are green. That is a selection of positions, nCr^{n}C_{r}. Equivalently it is the identical-elements formula for a word of rr reds and n−rn - r greens,

n!r! (n−r)!=nCr.\frac{n!}{r! \, (n - r)!} = {}^{n}C_{r}.

For exactly 33 red out of 88, this is 8C3=8!3!×5!=56^{8}C_{3} = \dfrac{8!}{3! \times 5!} = 56.

The two-type special case: 8 lights each red or greenEight positions each filled with one of two symbols, red or green. Allowing every pattern gives two to the power eight, which is 256. Fixing exactly three of the eight positions to be red is choosing 3 of the 8 positions, eight choose three, which equals 56.Two types only: 8 lights, each red or greenRGGRGRGGeach position is one of 2 choices → a pattern like R G G R G R G Gany pattern2⁸ = 2562 choices, 8 timesexactly 3 red⁸C₃ = 56choose 3 of 8 positionsr reds in n lights = n! ÷ (r! (n−r)!)

Two facts fall straight out of this picture and are worth carrying forward. First, symmetry: choosing the rr reds is the same as choosing the n−rn - r greens, so nCr=nCn−r^{n}C_{r} = {}^{n}C_{n-r}. That is why "exactly 33 of 88 red" and "exactly 55 of 88 red" give the same answer, 5656; a Cambridge exercise asks precisely this. Second, the row adds to 2n2^n: summing the exact-rr counts over every rr from 00 to nn recovers the total, ∑r=0nnCr=2n\sum_{r=0}^{n} {}^{n}C_{r} = 2^n, since every pattern has some number of reds. For n=8n = 8 the eight-plus-one counts 1,8,28,56,70,56,28,8,11, 8, 28, 56, 70, 56, 28, 8, 1 sum to 256256. You meet nCr^{n}C_{r} formally on the combinations page; here it is just "how many words of rr of one letter and n−rn - r of the other".

Key fact

The two-type (binary) special case. When each of nn objects is one of exactly two kinds:

all patterns=2n,exactly r of one kind=nCr=n!r! (n−r)!.\text{all patterns} = 2^n, \qquad \text{exactly } r \text{ of one kind} = {}^{n}C_{r} = \frac{n!}{r! \, (n - r)!}.

These are one set of arrangements seen two ways: nCr=nCn−r^{n}C_{r} = {}^{n}C_{n-r} (choosing the rr of one kind is choosing the n−rn - r of the other), and summing over all rr gives ∑r=0nnCr=2n\sum_{r=0}^{n} {}^{n}C_{r} = 2^n.

Separating identical items, using the complement

"Must be separated" works exactly as it does for distinct items, with one simplification: an identical pair has no internal order to track. To count arrangements where two identical items are apart, count the total, then subtract the arrangements where they are together (found by gluing them into one block), because "apart" is the complement of "together".

Take BANANA\text{BANANA}, with A\text{A} three times and N\text{N} twice. The total number of arrangements is 6!3!×2!=60\dfrac{6!}{3! \times 2!} = 60. For the unwanted "two N\text{N}s together", glue the two N\text{N}s into a single block; the items to arrange are that block plus A,A,A,B\text{A}, \text{A}, \text{A}, \text{B}, that is 55 items with A\text{A} repeated three times, giving 5!3!=20\dfrac{5!}{3!} = 20. The key subtlety is that the N\text{N} block contributes no internal 2!2!, because the two N\text{N}s are identical, so swapping them inside the block changes nothing. Subtracting,

6!3!×2!−5!3!=60−20=40\frac{6!}{3! \times 2!} - \frac{5!}{3!} = 60 - 20 = 40

arrangements have the N\text{N}s apart. Compare this with the distinct-letter version on the grouping, complement and cases page, where a together-block of two distinct letters does carry a ×2!\times 2!. Identical items drop that factor; distinct items keep it.

Key fact

Separating identical items. To count arrangements of a multiset with two identical items kept apart, use the complement:

(apart)=(total)−(together).(\text{apart}) = (\text{total}) - (\text{together}).

The "together" count glues the identical pair into one block and arranges the resulting smaller multiset; because the pair is identical, the block has 1!=11! = 1 internal order, so there is no ×2!\times 2! factor (unlike a block of two distinct items).

How exam questions ask about this dot point

The wording tells you which form of the count to use. Match the phrase to the move:

  • "...arrangements of the letters of the word …\dots", "rearrange", "how many distinct words". The base case: write n!r1!⋯rk!\dfrac{n!}{r_1! \cdots r_k!} with one factor for each repeated letter.
  • "...how many different numbers from the digits …\dots", "patterns of identical and different objects". The same formula; the "letters" are digits or objects, and identical objects are the repeats.
  • "...each is red or green / yes or no / on or off", "how many possible answer sheets / patterns". Two-type case, all patterns: 2n2^n.
  • "...exactly rr are red / yes / heads", "rr of one kind and the rest the other". Two-type case, fixed count: nCr=n!r!(n−r)!^{n}C_{r} = \dfrac{n!}{r! (n - r)!}.
  • "...what other number gives the same answer", "exactly rr versus exactly n−rn - r". Symmetry nCr=nCn−r^{n}C_{r} = {}^{n}C_{n-r}; the complementary count is identical.
  • "...mm-letter words from a word of nn letters" with m<nm < n. Cases by which letter type is omitted; arrange the remaining multiset and add the disjoint cases.
  • "...the two O\text{O}s (or two identical items) are separated / not together". Complement: total minus the "together" block count, with no internal 2!2! on the identical block.
  • "...vowels and consonants alternate" with repeats. Fix the alternating slot pattern, then apply the formula to each group separately and multiply.
Worked examples

Count the arrangements of a word with two repeated letters

How many distinct arrangements are there of all seven letters of the word PRESSES\text{PRESSES}?

Count the letters and find the repeats. There are 77 letters. The repeats are S\text{S} three times and E\text{E} twice; P\text{P} and R\text{R} appear once each.

Write plain n!n! first. If the letters were all different there would be

7!=5040 arrangements.7! = 5040 \text{ arrangements.}

Divide by each repeat factorial. The three identical S\text{S}s can be permuted in 3!3! ways and the two identical E\text{E}s in 2!2! ways without changing the word, so each genuine word was counted 3!×2!=123! \times 2! = 12 times:

7!3!×2!=504012=420.\frac{7!}{3! \times 2!} = \frac{5040}{12} = 420.

Final answer. There are 420420 distinct arrangements. The single letters P\text{P} and R\text{R} contribute 1!1! each, so they do not change the divisor.


Arrange a mix of identical and distinct objects

Eight objects are placed in a row: three identical wine glasses and five identical tumblers. (i) How many distinct patterns are there? (ii) One wine glass is now clearly chipped, and two of the tumblers are replaced by a matching pair different from the other three. How many patterns are there now?

Part (i): two types only. The eight objects are 33 alike of one type and 55 alike of another, so

8!3!×5!=40 320720=56.\frac{8!}{3! \times 5!} = \frac{40\,320}{720} = 56.

Part (ii): re-sort into the new types. The chipped glass is now its own type, and the replacement tumblers are a new type. The eight objects split into sizes 22 (plain glasses), 11 (chipped glass), 33 (original tumblers) and 22 (replacement tumblers).

Apply the formula with the new repeats.

8!2!×1!×3!×2!=40 32024=1680.\frac{8!}{2! \times 1! \times 3! \times 2!} = \frac{40\,320}{24} = 1680.

Final answer. (i) 5656 patterns; (ii) 16801680. Making objects more distinct removes factors from the divisor, so the count rises from 5656 towards the all-different maximum 8!=40 3208! = 40\,320.


Count shorter words by cases over the omitted letter

How many six-letter words can be formed using six of the seven letters of PRESSES\text{PRESSES}?

See that exactly one letter is omitted. A six-letter word uses six of the seven letters, so one letter is left out. The remaining six are then arranged, and the repeats depend on which letter type was dropped, so split into cases.

Case 1, omit an S\text{S}. The remaining letters are P,R,E,E,S,S\text{P}, \text{R}, \text{E}, \text{E}, \text{S}, \text{S} (two E\text{E}s, two S\text{S}s):

6!2!×2!=180.\frac{6!}{2! \times 2!} = 180.

Case 2, omit an E\text{E}. The remaining letters are P,R,E,S,S,S\text{P}, \text{R}, \text{E}, \text{S}, \text{S}, \text{S} (three S\text{S}s):

6!3!=120.\frac{6!}{3!} = 120.

Case 3, omit the P\text{P}. The remaining letters are R,E,E,S,S,S\text{R}, \text{E}, \text{E}, \text{S}, \text{S}, \text{S} (two E\text{E}s, three S\text{S}s):

6!2!×3!=60.\frac{6!}{2! \times 3!} = 60.

Case 4, omit the R\text{R}. By the same shape as Case 3, 6!2!×3!=60\dfrac{6!}{2! \times 3!} = 60.

Add the disjoint cases. The cases omit different letters and cannot overlap:

180+120+60+60=420.180 + 120 + 60 + 60 = 420.

Final answer. There are 420420 six-letter words. Each case has its own divisor because dropping a repeated letter changes how many repeats remain.


Count a two-type arrangement two ways

A motorist drives through 88 sets of traffic lights, each of which is red or green. (i) In how many ways can the colours come up? (ii) In how many of those is the motorist stopped at exactly 33 red lights? (iii) What other number of red lights gives the same answer as part (ii)?

Part (i): two choices, eight times. Each set is independently red or green, so

28=256.2^8 = 256.

Part (ii): choose which positions are red. A pattern with exactly 33 reds is fixed by choosing which 33 of the 88 positions are red:

8C3=8!3!×5!=56.^{8}C_{3} = \frac{8!}{3! \times 5!} = 56.

Check with the two-type formula
Reading the lights as a word of 33 reds and 55 greens gives 8!3!×5!=56\dfrac{8!}{3! \times 5!} = 56, the same value.
Part (iii): use symmetry
Choosing the 33 red positions is the same as choosing the 55 green positions, so 8C3=8C5^{8}C_{3} = {}^{8}C_{5}. Exactly 55 red lights also gives 5656.
Final answer
(i) 256256; (ii) 5656; (iii) exactly 55 red lights, also 5656.

Arrange with vowels and consonants alternating

In how many distinct arrangements of the nine letters of DECISIONS\text{DECISIONS} do the vowels and consonants alternate?

Split into vowels and consonants
The vowels are E,I,I,O\text{E}, \text{I}, \text{I}, \text{O} (44 vowels, I\text{I} repeated), and the consonants are D,C,S,N,S\text{D}, \text{C}, \text{S}, \text{N}, \text{S} (55 consonants, S\text{S} repeated).
Fix the only possible alternating pattern
With 55 consonants and 44 vowels, the alternation across nine places must start and end on a consonant: C V C V C V C V C\text{C V C V C V C V C}. The other start would need 55 vowels, which do not exist, so there is exactly 11 slot pattern.
Arrange each group with its repeats
The five consonants (with S\text{S} twice) fill the consonant slots in 5!2!=60\dfrac{5!}{2!} = 60 ways, and the four vowels (with I\text{I} twice) fill the vowel slots in 4!2!=12\dfrac{4!}{2!} = 12 ways.
Multiply the independent choices

5!2!×4!2!=60×12=720.\frac{5!}{2!} \times \frac{4!}{2!} = 60 \times 12 = 720.

Final answer. There are 720720 alternating arrangements. The single slot pattern is what makes this a clean product; if the two groups were equal in size there would be two patterns to add.


Separate two identical letters using the complement

In how many distinct arrangements of the six letters of BANANA\text{BANANA} are the two N\text{N}s separated by at least one other letter?

Recognise "separated" as a complement. Count the total, then subtract the arrangements where the two N\text{N}s are together.

Count the total. With A\text{A} three times and N\text{N} twice,

6!3!×2!=72012=60.\frac{6!}{3! \times 2!} = \frac{720}{12} = 60.

Count the unwanted (the N\text{N}s together). Glue the two N\text{N}s into one block. The items to arrange are the block plus A,A,A,B\text{A}, \text{A}, \text{A}, \text{B}, that is 55 items with A\text{A} repeated three times. Because the two N\text{N}s are identical, the block has only 11 internal order:

5!3!=20.\frac{5!}{3!} = 20.

Subtract.

60−20=40.60 - 20 = 40.

Final answer. There are 4040 arrangements with the N\text{N}s apart. The block carries no ×2!\times 2! here, because swapping the two identical N\text{N}s inside it changes nothing; that factor only appears when the paired items are distinct.

Common traps
Forgetting to divide by the repeats
Writing 7!7! for PRESSES\text{PRESSES} instead of 7!3!×2!\dfrac{7!}{3! \times 2!} overcounts by a factor of 1212. Always scan for repeated objects before you commit to n!n!.
Dividing by the wrong factorials
The divisor uses the repeat counts, not the number of types. For TOMATO\text{TOMATO} (two T\text{T}s, two O\text{O}s) the divisor is 2!×2!2! \times 2!, not 4!4! and not 2!×4!2! \times 4!. List each type with its own rir_i.
Putting a ×2!\times 2! on an identical block
When two identical items must be together, the block has only one internal order, so there is no ×2!\times 2!. That factor belongs to a block of two distinct items, not identical ones.
Treating an mm-letter word as one formula
If the word is shorter than the full multiset, one or more letters are omitted; the available repeats change with which type you drop. Split into cases by the omitted letter and add.
Mixing up 2n2^n and nCr^{n}C_{r}
"How many possible answer sheets" wants every pattern, 2n2^n. "How many with exactly rr yes" wants nCr^{n}C_{r}. Read whether the count of one kind is fixed.
Missing the symmetry shortcut
Exactly rr of one kind and exactly n−rn - r of that kind give the same count, nCr=nCn−r^{n}C_{r} = {}^{n}C_{n-r}. A "what other number gives the same answer" question is asking for n−rn - r.
Exam technique

Markers reward seeing nn, the repeats, and the division laid out so each piece is checkable. Lock in the marks like this:

  • State nn and every repeat count first. Write "77 letters: S×3\text{S} \times 3, E×2\text{E} \times 2" before the fraction, so the method mark is secured even if the arithmetic slips. A small type/count table is fast and persuasive.
  • Show the fraction, not just the answer. Write 7!3!×2!\dfrac{7!}{3! \times 2!} and then its value 420420; a bare number earns less and is hard to follow.
  • Name the two-type form you are using. Write "2n2^n for all patterns" or "nCr^{n}C_{r} for exactly rr", so it is clear which count the wording asked for.
  • For short words, declare the cases. Write "omit each letter type in turn" and list the four sub-counts; state that the cases are disjoint before you add.
  • For separation, write the complement line. (apart)=(total)−(together)(\text{apart}) = (\text{total}) - (\text{together}), then evaluate each piece, and note explicitly that the identical block has no internal 2!2!.
  • Keep one source of truth. If a sub-count (a total, a block count) appears twice, compute it once and reuse it, so a slip cannot creep into only one place.

Practice questions

Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.

foundation2 marks
How many distinct arrangements are there of all the letters of the word COMMITTEE\text{COMMITTEE}?
Show worked solution →

Count the letters and the repeats. COMMITTEE\text{COMMITTEE} has 99 letters. The repeats are M\text{M} twice, T\text{T} twice and E\text{E} twice; C\text{C}, O\text{O} and I\text{I} appear once each.

Divide n!n! by each repeat factorial. With n=9n = 9 and repeat counts 2,2,22, 2, 2,

9!2!×2!×2!=362 8808=45 360.\frac{9!}{2! \times 2! \times 2!} = \frac{362\,880}{8} = 45\,360.

Answer. There are 45 36045\,360 distinct arrangements. Forgetting any one of the three 2!2! factors would multiply the answer by 22.

foundation2 marks
The six digits 2,2,5,5,5,82, 2, 5, 5, 5, 8 are used to form a six-digit number (every digit used once). How many different numbers can be formed?
Show worked solution →

Identify the repeats among the six digits. There are 66 digits, with 55 appearing three times and 22 appearing twice; 88 appears once.

Apply the formula. With n=6n = 6 and repeat counts 33 and 22,

6!3!×2!=72012=60.\frac{6!}{3! \times 2!} = \frac{720}{12} = 60.

Answer. There are 6060 different six-digit numbers. No digit is 00, so there is no leading-zero case to remove.

core3 marks
A row of 1010 identical light switches is set up, and each switch is flicked either up or down. (i) In how many ways can the whole row be set? (ii) In how many of those settings are exactly 44 switches up?
Show worked solution →

Part (i): two choices at each of ten positions. Each switch is independently up or down, so by the multiplication principle the number of settings is

210=1024.2^{10} = 1024.

Part (ii): choose which positions are up. A setting with exactly 44 ups is fixed once you choose which 44 of the 1010 positions are up; the rest are down. That is a selection of positions,

10C4=10!4!×6!=210.^{10}C_{4} = \frac{10!}{4! \times 6!} = 210.

Same answer the two-type way. Treating the row as a word of 44 ups and 66 downs gives 10!4!×6!=210\dfrac{10!}{4! \times 6!} = 210, the identical count.

Answer. (i) 10241024 settings; (ii) 210210 of them.

core3 marks
How many five-letter words can be formed using five of the six letters of the word BANANA\text{BANANA}? (A 'word' is any arrangement; it need not be in a dictionary.)
Show worked solution →

See that one letter must be left out. BANANA\text{BANANA} has letters A\text{A} three times, N\text{N} twice and B\text{B} once. A five-letter word uses five of the six letters, so exactly one letter is omitted. Split into cases by which letter type is dropped.

Case: omit an A\text{A}. The remaining letters are B,A,A,N,N\text{B}, \text{A}, \text{A}, \text{N}, \text{N} (22 As, 22 Ns),

5!2!×2!=30.\frac{5!}{2! \times 2!} = 30.

Case: omit an N\text{N}. The remaining letters are B,A,A,A,N\text{B}, \text{A}, \text{A}, \text{A}, \text{N} (33 As),

5!3!=20.\frac{5!}{3!} = 20.

Case: omit the B\text{B}. The remaining letters are A,A,A,N,N\text{A}, \text{A}, \text{A}, \text{N}, \text{N} (33 As, 22 Ns),

5!3!×2!=10.\frac{5!}{3! \times 2!} = 10.

Add the disjoint cases. The three cases drop different letters, so they cannot overlap:

30+20+10=60.30 + 20 + 10 = 60.

Answer. There are 6060 such five-letter words.

exam4 marks
Consider all distinct arrangements of the letters of the word BANANA\text{BANANA}. (i) How many are there in total? (ii) In how many of them are the two N\text{N}s separated (not next to each other)?
Show worked solution →

Part (i): divide n!n! by the repeats. BANANA\text{BANANA} has 66 letters, with A\text{A} three times and N\text{N} twice,

6!3!×2!=72012=60.\frac{6!}{3! \times 2!} = \frac{720}{12} = 60.

Part (ii): count the complement (the N\text{N}s together). Counting "separated" directly is awkward, so count the arrangements with the two N\text{N}s together and subtract. Glue the two N\text{N}s into one block. The items to arrange are then the block plus A,A,A,B\text{A}, \text{A}, \text{A}, \text{B}, that is 55 items with A\text{A} repeated three times,

5!3!=20.\frac{5!}{3!} = 20.

Because the two N\text{N}s are identical, the block has only 11 internal order, so there is no extra 2!2! factor here.

Subtract from the total.

60−20=40.60 - 20 = 40.

Answer. (i) 6060 arrangements; (ii) 4040 with the N\text{N}s apart.

exam5 marks
In how many distinct arrangements of the nine letters of the word DECISIONS\text{DECISIONS} do the vowels and consonants alternate?
Show worked solution →
Separate the letters into vowels and consonants
DECISIONS\text{DECISIONS} has 99 letters. The vowels are E,I,I,O\text{E}, \text{I}, \text{I}, \text{O} (44 vowels, with I\text{I} repeated), and the consonants are D,C,S,N,S\text{D}, \text{C}, \text{S}, \text{N}, \text{S} (55 consonants, with S\text{S} repeated).
Fix the alternating pattern
With 55 consonants and 44 vowels, the only way to alternate across nine places is consonant, vowel, consonant, …\dots, consonant, that is C V C V C V C V C\text{C V C V C V C V C}. There is exactly 11 such pattern of slots (starting and ending on a consonant); the other start, V C V C…\text{V C V C} \dots, would need 55 vowels.
Arrange the consonants in their five slots
Five consonants with S\text{S} repeated twice give

5!2!=60.\frac{5!}{2!} = 60.

Arrange the vowels in their four slots. Four vowels with I\text{I} repeated twice give

4!2!=12.\frac{4!}{2!} = 12.

Multiply (independent choices).

60×12=720.60 \times 12 = 720.

Answer. There are 720720 alternating arrangements.

Practise this

Sources & how we know this

ExamExplained