Permutations and combinations
Counting arrangements of objects in a line, with repeated objects and with restrictions such as people standing together or apart, and counting selections, including committees with conditions.
What the syllabus says
5.2 (Paper 5)
- understand the terms permutation and combination, and solve simple problems involving selections
- solve problems about arrangements of objects in a line, including those involving - repetition (e.g. the number of ways of arranging the letters of the word ‘NEEDLESS’) - restriction (e.g. the number of ways several people can stand in a line if two particular people must, or must not, stand next to each other).
Notes and examples
- Questions may include cases such as people sitting in two (or more) rows.
- Questions about objects arranged in a circle will not be included.
Quoted from the Cambridge International AS and A Level Mathematics 9709 syllabus (2026-2027 and 2028-2030 editions, which share this content).
Permutations and combinations: what the words mean
Counting questions ask "in how many ways?". The first decision is always whether order matters.
- A permutation is an arrangement: the order matters. ABC and CAB are different arrangements of the same three letters.
- A combination is a selection: the order does not matter. Choosing Ali, Ben and Cara for a team is the same selection as choosing Cara, Ali and Ben.
Everything in this topic rests on the multiplication principle: if one choice can be made in ways and then, whatever happened, a second choice can be made in ways, the two together can be made in ways. When a problem splits into separate cases that cannot happen together, you add the counts for the cases.
Factorials. , and . Factorials grow very fast: . Your calculator has an key, and also keys for and . Answers are exact whole numbers: never round them.
Arranging objects in a line
To arrange different objects in a line, fill the positions one at a time. The first position can take any of the objects, the second any of the left, and so on, down to 1 for the last. So there are
arrangements. Five people can stand in a queue in ways.
If only of the objects are placed in a line, stop after positions:
For example, the number of 4-digit codes using four different digits from 1 to 9 is .
When a position has a condition (the number must be even, so the last digit is restricted), fill the restricted position first, then fill the others from what is left.
Arrangements with repeated objects
If some of the objects are identical, counts too many arrangements. Take the letters of NEEDLESS, the syllabus example. It has 8 letters: N, D, L, three Es and two Ss. If the three Es were labelled , , , there would be arrangements. But each real arrangement, such as NEEDLESS itself, appears times in that list (once for each order of the labelled Es), and each of those appears times for the Ss. So
In general, objects of which are alike, others are alike, and so on, can be arranged in ways.
Always list the letters and count each repeat before you start: one missed repeat is the commonest way to lose every mark in the question.
Worked example 1
Find the number of different arrangements of the 7 letters of the word PEPPERS in which (a) there are no restrictions, (b) the arrangement begins with P, (c) the two Es are next to each other, (d) the two Es are not next to each other.
The letters are P, P, P, E, E, R, S: three Ps and two Es.
(a) .
(b) Put a P first. The other 6 letters are P, P, E, E, R, S, which can be arranged in ways.
(c) Glue the two Es into one block [EE]. Now arrange 6 items: P, P, P, [EE], R, S. That gives . The Es inside the block are identical, so there is no extra factor of 2.
(d) Not together = total minus together: .
Answer: (a) 420 (b) 180 (c) 120 (d) 300
Check yourself
Find the number of different arrangements of the letters of the word LETTER.
Answer it in the portal, where your answer is checked as you type →
Arrangements with restrictions
Objects that must be together. Treat them as a single block. Arrange the block with the other objects, then multiply by the number of ways to arrange the objects inside the block. Why multiply? For every arrangement of the blocks, each internal order gives a different line.
So if 8 people stand in a line and A and B must stand next to each other, arrange 7 items (the block [AB] and 6 others) in ways, and the block itself in ways: .
Objects that must not be together. For two objects, it is quickest to subtract: arrangements with A and B apart .
For several objects of which no two may be next to each other, use the gaps method. Arrange the other objects first, then place the restricted objects in the gaps between them and at the ends, at most one per gap. For example, 5 boys and 3 girls stand in a line with no two girls next to each other. Arrange the boys: . That leaves 6 gaps (including the two ends), so place the girls in 3 of them in order: . Total . Subtracting "girls together" from the total would be wrong here: it removes only the cases where all three girls are together, but two girls next to each other is also forbidden.
Objects in particular positions (at the ends, in the middle): fill those positions first, then arrange the rest.
Worked example 2
Eight people, including Anna and Ben, stand in a line. Find the number of arrangements in which (a) Anna and Ben stand next to each other, (b) Anna and Ben do not stand next to each other, (c) Anna stands at one end of the line.
(a) Block [Anna Ben] plus 6 others is 7 items: ways. The block can be [Anna Ben] or [Ben Anna]: . Total .
(b) Total , so apart .
(c) Anna has 2 choices of end. The other 7 people fill the remaining places in ways: .
Answer: (a) 10 080 (b) 30 240 (c) 10 080
Check yourself
Six different books are placed on a shelf. Find the number of arrangements in which two particular books are next to each other.
Answer it in the portal, where your answer is checked as you type →
Two or more rows
The syllabus includes people sitting in two (or more) rows. Questions about objects arranged in a circle are not included.
Rows need no new formula: treat each seat as a position. If 9 people sit in 9 seats arranged as a front row of 4 and a back row of 5, there are still ways, because each seat is a distinct place.
The care is needed with conditions. "Next to each other" means in the same row and in adjacent seats: a person at the end of the front row is not next to a person at the start of the back row. Count the possible pairs of adjacent seats in each row (a row of 4 seats has 3 adjacent pairs), and remember each pair can be filled in 2 orders.
When a condition says some people must sit in a particular row, place them first: choose their seats in order, then let everyone else fill the remaining seats.
Worked example 3
Nine people sit in a minibus that has a front row of 4 seats and a back row of 5 seats. Two of the people, Chen and Dev, must sit in the front row. (a) Find the number of possible seating arrangements. (b) Find the number of arrangements in which Chen and Dev sit next to each other in the front row.
(a) Chen and Dev take 2 of the 4 front seats, in order: ways.
The other 7 people fill the remaining 7 seats in ways.
Total .
(b) A row of 4 seats has 3 adjacent pairs of seats, and Chen and Dev can sit in each pair in 2 orders: ways.
Total .
Answer: (a) 60 480 (b) 30 240
Selections
The number of ways of selecting objects from different objects, when order does not matter, is
Why the extra ? There are ordered choices, and every selection of objects appears times among them, once for each order. Notice that : choosing 3 people to go is the same as choosing the 7 who stay.
Selections with conditions are handled by thinking in groups.
- Exactly from one group: choose those from that group and the rest from the others, and multiply. From 7 women and 5 men, a committee of 5 with exactly 3 women: .
- At least or at most: list the cases and add, or use the complement, "total minus the cases you do not want". For "at least one", the complement is nearly always quickest.
- Must include a particular person: put them in, then choose the rest from the others.
- Two people who refuse to serve together: total minus the selections containing both.
If you add cases, make sure they do not overlap and that none is missed.
Worked example 4
A committee of 5 is chosen from 7 women and 5 men. Find the number of committees that contain at least 3 women.
At least 3 women means 3, 4 or 5 women. These cases cannot overlap, so add them.
3 women, 2 men: .
4 women, 1 man: .
5 women: .
Total .
Answer: 546
Check yourself
Find the number of ways of choosing 4 people from a group of 10.
Answer it in the portal, where your answer is checked as you type →
Permutation or combination?
Ask: if I swap two of the chosen objects, do I get a different outcome?
- Yes (a different queue, a different number, a different seating): it is an arrangement, so use , or .
- No (the same team, the same hand of cards, the same set of letters): it is a selection, so use .
Some problems need both. "Choose 3 of the 8 runners for a relay team, then decide the running order" is .
Selections from objects that are not all different, such as choosing 4 letters from CALCULUS, cannot be done with a single , because choosing the first C or the second C gives the same selection. Split into cases by how many repeated letters are chosen, and count each case separately.
These counts also give probabilities when every arrangement or selection is equally likely: divide the number of favourable ones by the total number. You will use this in the next topic.
Key points
Arrangements (order matters): for different objects, for of them.
With repeats: divide by the factorial of each repeat count, .
Together: glue into a block, arrange, then multiply by the arrangements inside the block.
Not together: total minus together for two objects; the gaps method for several objects that must all be apart.
Restricted positions are filled first. Rows of seats are just positions; 'next to' means in the same row.
Selections (order does not matter): . Use cases or the complement for 'at least'.
Answers are exact integers: never round them.
Where marks are lost
Missing a repeated letter, or dividing by for a letter that appears three times (it should be ).
Forgetting to multiply by the arrangements inside a block, or multiplying by 2 when the objects in the block are identical.
Using 'total minus all together' when the question says no two of several objects may be next to each other.
Using for a selection, which counts each selection times.
Adding cases that overlap, or missing a case, in 'at least' questions.
Treating the end of one row and the start of the next as 'next to each other'.
Related AS & A Level Mathematics 9709 lessons
An original lesson written to the Cambridge International AS & A Level Mathematics 9709 syllabus (2026 to 2027 and 2028 to 2030). The worked examples and questions are our own, not Cambridge questions. Back to every AS & A Level Mathematics 9709 lesson.