Skip to main content
ExamExplained
NSW Β· Maths Extension 1
Maths Extension 1 study scene
Β§-Syllabus dot point
NSWMaths Extension 1Syllabus dot point

How do we count the number of ordered arrangements of a set of objects?

Use the multiplication principle and the permutation formula to count ordered arrangements, including restrictions and repeated elements

A focused answer to the HSC Maths Extension 1 dot point on permutations. The multiplication principle, the formula n!(nβˆ’r)!\frac{n!}{(n - r)!} for arrangements of rr from nn, permutations of objects with repeats, circular permutations, and counting with restrictions, with stepped diagrams and worked examples.

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

What this dot point is asking

NESA wants you to count ordered arrangements (permutations) of objects, with or without repeats, in circular or linear settings, and to apply the common restrictions: objects that must or must not be adjacent, objects fixed at particular positions, and so on. The whole topic rests on one idea, the multiplication principle, so the real skill is learning to break a counting problem into a sequence of independent choices and then deciding which standard pattern it matches.

The answer

The multiplication principle

If a procedure can be performed in n1n_1 ways at step 1, and (independent of step 1) in n2n_2 ways at step 2, …\dots, and nkn_k ways at step kk, then the total number of ways to complete the procedure is

n1β‹…n2β‹…β‹―β‹…nk.n_1 \cdot n_2 \cdot \dots \cdot n_k.

This is the foundation of every counting problem in the course. The word "independent" is doing real work: the number of options at step 2 must not depend on which option you took at step 1 (the options themselves can change, only the count must stay fixed). When you arrange distinct people in seats, choosing person A for seat 1 versus person B for seat 1 leaves a different set of people for seat 2, but the same number (nβˆ’1n - 1) of them, so the principle applies.

Permutations of nn distinct objects

The number of ways to arrange all nn distinct objects in a row is

n!=nβ‹…(nβˆ’1)β‹…(nβˆ’2)β‹―2β‹…1.n! = n \cdot (n - 1) \cdot (n - 2) \cdots 2 \cdot 1.

Reasoning straight from the multiplication principle: nn choices for the first position, nβˆ’1n - 1 for the second (one object is used up), nβˆ’2n - 2 for the third, and so on down to 11 for the last. By convention 0!=10! = 1, which is what makes the rr from nn formula below work when r=nr = n.

Permutations of rr from nn

The number of ways to choose and arrange rr objects from nn distinct objects (order matters, no repetition) is

nPr=n!(nβˆ’r)!=n(nβˆ’1)(nβˆ’2)β‹―(nβˆ’r+1).{}^{n} P_r = \frac{n!}{(n - r)!} = n(n - 1)(n - 2) \cdots (n - r + 1).

The product form on the right is usually faster by hand: it is just rr descending factors starting at nn. For example 9P4=9β‹…8β‹…7β‹…6{}^{9}P_4 = 9 \cdot 8 \cdot 7 \cdot 6, four factors, with no need to compute 9!9! and 5!5! separately. The notation is sometimes P(n,r)P(n, r) or PrnP^n_r; NESA tends to write nPr^n P_r.

Watch the multiplication principle fill the positions, stage by stage

Counting 5P3{}^{5}P_3 (arrange 33 of the 55 distinct letters A,B,C,D,EA, B, C, D, E) is the clearest way to see why the formula is a product of descending factors. Fill the positions left to right; each time a letter is used it leaves the available pool, so the choice count drops by one.

Stage 1, choose the first position. All 55 letters are available, so there are 55 ways to fill position 1.

Permutation stage 1: five choices for the first positionThree empty slots for arranging three of the five letters A B C D E. The first position has five letters available, so there are five choices.Position 1: 5 choicesposition 15choicesposition 2position 3letters still available:ABCDEAny of the 5 letters can take position 1.

Stage 2, choose the second position. Say AA took position 1. It is now used, so only B,C,D,EB, C, D, E remain: 44 ways to fill position 2.

Permutation stage 2: four choices remain for the second positionThe first slot holds A. Four letters B C D E remain, so the second position has four choices.Position 2: 4 choices leftAposition 15choicesposition 24choicesposition 3Γ—letters still available:BCDEA is used, so 4 letters remain for position 2.

Stage 3, choose the third position. Two letters are now used, so 33 remain for position 3. By the multiplication principle the total is the product of the choice counts: 5Γ—4Γ—3=60=5P35 \times 4 \times 3 = 60 = {}^{5}P_3. Notice this is exactly 5!(5βˆ’3)!=5!2!\frac{5!}{(5 - 3)!} = \frac{5!}{2!}, the descending product stopping after 33 factors.

Permutation stage 3: three choices remain for the third positionThe first two slots hold A and B. Three letters C D E remain, so the third position has three choices. The product five times four times three equals sixty.Position 3: 3 choices leftAposition 15choicesBposition 24choicesposition 33choicesΓ—Γ—letters still available:CDETotal arrangements = 5 Γ— 4 Γ— 3 = 60 = ⁡P₃.

Permutations with repeats (identical objects)

If you have nn objects of which n1n_1 are alike, n2n_2 are alike, …\dots, nkn_k are alike (with n1+n2+β‹―+nk=nn_1 + n_2 + \dots + n_k = n), the number of distinct arrangements is

n!n1! n2!β‹―nk!.\frac{n!}{n_1! \, n_2! \cdots n_k!}.

Here is why you divide. Pretend for a moment the identical objects are labelled and distinct: then there are n!n! arrangements. But swapping the n1n_1 identical objects among themselves does not produce a new arrangement, and there are n1!n_1! such swaps; likewise n2!n_2! for the second group, and so on. So n!n! over-counts each genuinely different arrangement by a factor of n1! n2!β‹―nk!n_1!\, n_2! \cdots n_k!, and dividing corrects it. This "divide out the over-count" move is exactly the same idea that turns permutations into combinations on the next dot point.

Circular permutations

The number of distinct circular arrangements of nn distinct objects is

(nβˆ’1)!.(n - 1)!.

Reasoning: around a round table there is no fixed "first seat", so every arrangement looks the same under rotation. There are nn rotations of each seating, so the n!n! linear arrangements over-count by a factor of nn, giving n!n=(nβˆ’1)!\frac{n!}{n} = (n - 1)!. The standard way to do a circular problem is to fix one person in a seat to kill the rotational symmetry, then arrange the remaining nβˆ’1n - 1 people linearly in the other seats. If reflections are also counted as the same (turning a bracelet or necklace over), divide by a further 22 to get (nβˆ’1)!2\frac{(n - 1)!}{2}.

Restrictions: the standard moves

Two (or more) objects must be together
Glue them into a single block and arrange the block among the other objects: if there were nn objects, you now arrange nβˆ’1n - 1 items, giving (nβˆ’1)!(n - 1)!, then multiply by the internal arrangements of the block (2!2! for two glued objects, m!m! for a block of mm). "All the vowels together" is the same move: glue every vowel into one block.
Two objects must not be together
Do not try to count this directly. Use the complement: (not together) == (total) βˆ’- (together). This is almost always faster and is what markers expect.
A particular object in a fixed position
Lock that object in place and arrange the rest. With one object fixed, you arrange the remaining nβˆ’1n - 1 in (nβˆ’1)!(n - 1)! ways.

Some objects in particular kinds of slots (for example, an arrangement must start with a vowel, or the sexes must alternate). Count the restricted positions first, then fill the rest, multiplying the stage counts together.

Summary recipe

  1. Decide whether order matters. Yes for permutations; no for combinations (the next dot point).
  2. Decide whether repetition is allowed. With unlimited repeats and rr slots the count is nrn^r (each slot independently has nn options); without repeats use nPr{}^{n}P_r.
  3. Decide whether you arrange all nn or only rr of them.
  4. Apply restrictions by gluing (together), subtracting (not together) or locking (fixed position), and handle circles by fixing one object.

How exam questions ask about permutations

  • "In how many ways can ... be arranged in a row / a line / on a shelf?": a straight n!n! (all distinct) or nPr{}^{n}P_r (only rr of them).
  • "How many arrangements of the letters of the word ...?": check for repeated letters; if any, use n!n1!β‹―nk!\dfrac{n!}{n_1! \cdots n_k!}.
  • "... seated around a circular / round table?": circular, answer (nβˆ’1)!(n - 1)! (fix one person).
  • "... if [two named people] sit together / are next to each other?": glue into a block, (nβˆ’1)!Γ—2!(n-1)! \times 2!.
  • "... if [two named people] do not sit together / must be separated?": complement, total minus together.
  • "... if it must begin with [a vowel / a specific object] / [object] is in a fixed seat?": lock that position, then arrange the rest.
  • "How many [codes / numbers / arrangements] with no repeated [digit / letter]?": nPr{}^{n}P_r. If repeats are allowed it is nrn^r instead.
  • The word "different" or "distinct" is the cue to divide out repeats; its absence when identical objects are present is the classic trap.

Exam-style practice questions

Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

2021 HSC Q62 marksHow many five-letter arrangements of the letters in the word "CHAIR" are there?
Show worked answer β†’

All five letters are distinct. The number of arrangements of 55 distinct letters is 5!=1205! = 120.

Markers reward identifying distinct objects and applying n!n! directly.

2020 HSC Q233 marksIn how many different ways can the letters of the word "BANANAS" be arranged?
Show worked answer β†’

Letters: B, A, N, A, N, A, S. Total 77 letters. Repeats: 33 A's, 22 N's.

Number of distinct arrangements: 7!3!β‹…2!=504012=420\frac{7!}{3! \cdot 2!} = \frac{5040}{12} = 420.

Markers reward identifying the multiset structure, applying the formula for permutations of objects with repeats, and clean arithmetic.

ExamExplained