Counting with Restrictions and the Inclusion-Exclusion Principle | OCR A Level Further Maths notes

Free preview: Counting with Restrictions and the Inclusion-Exclusion Principle

Arrangements with Rules: Together and Apart

Year 1 (AS) for OCR A, which lists counting in its AS Discrete Mathematics content (7.01). Some parts may be A level only, so check your own specification.

Let's start with a row of chairs. Five boys and three girls sit in a row. How many ways are there if the girls must sit together? If no two girls may sit next to each other?

  • Listing is hopeless: there are 8!=40320 arrangements altogether.
  • Instead we use a few clever tricks, each built on the basic rules you know from GCSE and A Level Maths.

The basic rules

  • n distinct items in a row: n! arrangements. (n choices for the first place, then n−1 for the next, and so on.)
  • Repeated items: divide by the factorial of each repeat. BANANA has 6 letters with three As and two Ns: 6!3!2!=60. Why: swapping the identical As among themselves gives the same word, so each word was counted 3!2! times.
  • Choosing r from n when order does not matter: (nr).

โœ๏ธ YOUR TURN 1

Try this first:

How many different arrangements are there of the letters of LETTER?

Answer:

  • 6 letters with E twice and T twice.
  • 6!2!2!=7204=180.

Items together: glue them

  1. Glue the items that must be together into one block. Why: then they can't be separated.
  2. Arrange the block with the other items.
  3. Arrange the items inside the block, and multiply.

๐Ÿ‘€ Watch me do it: the three girls sit together

What I writeWhy I do it
Treat the three girls as one block.Step 1.
5 boys + 1 block = 6 items: 6!=720 ways.Arrange the 6 items in a row.
Girls inside the block: 3!=6 ways.The girls can swap places within the block.
Total 6!×3!=720×6=4320.Multiply: the two steps happen one after another.

Items apart: use the gaps

  1. Arrange the unrestricted items first.
  2. Count the gaps, including one at each end.
  3. Choose different gaps for the restricted items, and order them if they are different. Why: one item per gap means none are next to each other.

๐Ÿ‘€ Watch me do it: no two girls next to each other

What I writeWhy I do it
Arrange the 5 boys: 5!=120 ways.The unrestricted items first.
6 gaps: _B_B_B_B_B_.One at each end and 4 between.
Choose 3 gaps and order the girls: (63)×3!=20×6=120.Different girls, so their order matters.
Total 120×120=14400.Multiply.

Diagram: Seat the 5 boys first. That makes 6 gaps, including one at each end.

What the picture shows

  • Seat the 5 boys first. That makes 6 gaps, including one at each end.
  • Each girl goes into a different gap, so there is always at least one boy between two girls.
  • Choose 3 of the 6 gaps, then order the girls in them: (63)×3!=120.
  • Multiply by the 120 ways to seat the boys: 120×120=14400.

๐Ÿ’ก In plain words

  • Together: glue into one block, then arrange inside the block.
  • Apart: place the others first, then drop the restricted items into separate gaps.

๐Ÿ“ "Apart" is not "total minus together"

  • โœ— Wrong: "no two girls together" = 8!−4320. That subtraction only removes the cases where all three are together; it leaves cases with exactly two girls side by side.
  • โœ“ Right: use the gaps method. (Total minus together does work when only two items must be apart.)

โœ๏ธ YOUR TURN 2

Try this first:

Four boys and three girls sit in a row. Find the number of arrangements if (a) the girls sit together, (b) no two girls sit together.

Answer:

  1. Block of girls + 4 boys = 5 items: 5!×3!=120×6=720.
  2. Boys first: 4!=24, making 5 gaps. (53)×3!=60. Total 24×60=1440.

Circles and "At Least One"

Circular arrangements

  • n people round a table, where only the order round the table matters (rotations count as the same): (n−1)!.
  • Why: fix one person's seat to remove the rotations, then arrange the other n โˆ’ 1 in a row.
  • Picture it: if everyone moves one seat to the left, each person still has the same neighbours, so it is the same arrangement.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in ยท Subscribe ยท Start free trial

All notes in Counting and Combinatorial Preliminaries

  1. Counting Foundations: Problem Types, Sets, Partitions and the Pigeonhole Principle
  2. Counting with Restrictions and the Inclusion-Exclusion Principle

What's inside for this topic

2 teacher notes, 76 practice questions, 50 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Previous note: Counting Foundations: Problem Types, Sets, Partitions and the Pigeonhole Principle

All OCR A Level Further Maths topics ยท A Level Further Maths