Chapter

Permutations and Arrangements

The module develops permutations, arrangements, repeated objects, circular seating, blocks, adjacency restrictions, and first inclusion-exclusion problems.
Log in to track solved progress and bookmarks.

Theory

Key Idea

A permutation is an arrangement of objects in order. The key difference from simple selection is that order is part of the object. If all objects are distinct, \(n\) objects can be arranged in \(n!\) ways. If some objects are identical, overcounting from permuting identical copies must be removed.

Olympiad permutation problems rarely reduce to one formula. More often, one needs the right device: glue a block, subtract forbidden adjacencies, fix a rotation in circular seating, or split by positions.

Basic Facts

  • \(n\) distinct objects can be arranged in a line in \(n!\) ways.
  • If \(k\) objects are chosen and ordered from \(n\) distinct objects, the number of ways is \(n(n-1)\cdots(n-k+1)\).
  • If among \(n\) objects there are identical groups of sizes \(a,b,c,\ldots\), the number of distinct permutations is \(n!/(a!b!c!\cdots)\).
  • In circular seating, rotations are considered the same, so \(n\) distinct people can be seated at a round table in \((n-1)!\) ways.
  • If several objects must be together, glue them into one block and then count the internal order of the block.

When to Use This Method

  • You need to arrange people, books, letters, digits, or objects in a row or around a circle.
  • The statement contains “next to”, “not next to”, “in a certain order”, or “in fixed positions”.
  • There are repeated letters or repeated objects.
  • It is easier to count all arrangements and subtract forbidden ones.

How to Recognise the Method

If objects must be together, try a block. If objects must not be together, it is often easier to subtract cases where they are together. If the arrangement is circular, first fix one object or use \((n-1)!\). If there are identical letters, first count as if they were distinct and then divide by permutations of identical copies.

For forbidden positions, ask whether the restrictions are independent or overlap. If they overlap, inclusion-exclusion may be needed.

Typical Mistakes

  • Counting circular seating as linear seating.
  • Forgetting the internal order of a glued block.
  • Subtracting forbidden cases but forgetting that several restrictions can hold at once.
  • Dividing by factorials of repeated objects when the objects were already treated as indistinguishable.
  • Confusing “\(A\) before \(B\)” with “\(A\) next to \(B\)”.

Mini-Checklist

  • Are the objects distinct or are some identical?
  • Is the arrangement linear or circular?
  • Are there blocks that must stay together?
  • Is “not adjacent” easier directly or by complement?
  • Does order inside the chosen group matter?
  • Can forbidden conditions overlap?

Examples

Example 1. Permuting Distinct Objects

Basic technique: each next choice reduces the number of options.

Problem. In how many ways can \(6\) different books be arranged on a shelf?

Solution.

The first position has \(6\) choices, the second \(5\), then \(4,3,2,1\). Total: \(6!=720\).

Comment. This is a linear arrangement of distinct objects.

Example 2. Repeated Letters

Identical letters create overcounting.

Problem. How many distinct words can be obtained by rearranging the letters of \(BANANA\)?

Solution.

There are \(6\) letters. The letter \(A\) appears \(3\) times and \(N\) appears \(2\) times. If all copies are treated as distinct, there are \(6!\) arrangements, but each word is counted \(3!\cdot2!\) times. Answer: \(6!/(3!\cdot2!)=60\).

Comment. Divide only by permutations of identical letters.

Example 3. Adjacent Block

If two objects must stand together, glue them.

Problem. In how many ways can \(6\) people stand in a row if Anton and Boris must stand together?

Solution.

Glue Anton and Boris into a block. Then there are \(5\) objects: the block and \(4\) other people. They can be arranged in \(5!\) ways. Inside the block there are \(2\) orders. Answer: \(2\cdot5!=240\).

Comment. Do not forget the internal order of the block.

Example 4. Not Adjacent by Complement

A prohibition is often easier as all minus bad.

Problem. In how many ways can \(6\) people stand in a row if Anton and Boris must not stand together?

Solution.

There are \(6!=720\) total arrangements. They stand together in \(2\cdot5!=240\) ways. Therefore the number not together is \(720-240=480\).

Comment. This is the complement of the previous problem.

Example 5. Circular Seating

In a circle, rotations are considered the same.

Problem. In how many ways can \(5\) distinct people sit at a round table?

Solution.

Fix one person. The remaining \(4\) people can be arranged around that person in \(4!\) ways. Answer: \(24\).

Comment. Fixing one person removes rotation.

Example 6. Circle and Adjacency

Blocks also work at a round table.

Problem. In how many ways can \(6\) people sit at a round table if two specified people must sit together?

Solution.

Glue the two people into a block. We get \(5\) objects around a circle, which can be arranged in \((5-1)!=24\) ways. The block has \(2\) internal orders. Answer: \(48\).

Comment. First handle the circle, then the block order.

Example 7. Before, Not Necessarily Adjacent

Half of all permutations have \(A\) before \(B\).

Problem. How many permutations of \(1,2,3,4,5\) have \(1\) before \(2\)?

Solution.

In all \(5!\) permutations, the numbers \(1\) and \(2\) are symmetric: in exactly half, \(1\) comes before \(2\), and in half the reverse happens. Answer: \(5!/2=60\).

Comment. This is not an adjacency condition.

Example 8. First Inclusion-Exclusion

Forbidden fixed points overlap.

Problem. How many permutations of \(1,2,3,4\) leave no number in its own position?

Solution.

There are \(4!=24\) total permutations. Subtract those with at least one fixed point: \(4\cdot3!\). Add back intersections of two fixed points: \(6\cdot2!\). Subtract three: \(4\cdot1!\). Add four: \(1\). Answer: \(24-24+12-4+1=9\).

Comment. This is the first derangement problem.

Problems

Problems

#2.1
#2.1

Five Books

Permutations Grade 7 Grade 8 ★☆☆☆☆

In how many ways can \(5\) different books be arranged on a shelf?

Details
Problem: COM-B1-M02-P001
Difficulty: Level 1 of 5
Tag: Permutations
Grade: Grade 7, Grade 8
#2.2
#2.2

Letters of \(MAMA\)

Multiset Permutation Grade 7 Grade 8 ★☆☆☆☆

How many distinct words can be obtained by rearranging the letters of \(MAMA\)?

Details
Problem: COM-B1-M02-P002
Difficulty: Level 1 of 5
Tag: Multiset Permutation
Grade: Grade 7, Grade 8
#2.3
#2.3

Ordered Triple

Arrangements Grade 7 Grade 8 ★☆☆☆☆

In how many ways can \(3\) different students be chosen and ordered from \(7\)?

Details
Problem: COM-B1-M02-P003
Difficulty: Level 1 of 5
Tag: Arrangements
Grade: Grade 7, Grade 8
#2.4
#2.4

Round Table

Circular Arrangement Grade 7 Grade 8 ★☆☆☆☆

In how many ways can \(5\) different people sit at a round table?

Details
Problem: COM-B1-M02-P004
Difficulty: Level 1 of 5
Tag: Circular Arrangement
Grade: Grade 7, Grade 8
#2.5
#2.5

Two Together

Block method Grade 7 Grade 8 ★☆☆☆☆

In how many ways can \(6\) people stand in a row if two specified people must stand together?

Details
Problem: COM-B1-M02-P005
Difficulty: Level 1 of 5
Tag: Block method
Grade: Grade 7, Grade 8
#2.6
#2.6

Two Not Together

Complement method Grade 7 Grade 8 ★★☆☆☆

In how many ways can \(6\) people stand in a row if two specified people must not stand together?

Details
Problem: COM-B1-M02-P006
Difficulty: Level 2 of 5
Tag: Complement method
Grade: Grade 7, Grade 8
#2.7
#2.7

The Word \(BANANA\)

Multiset Permutation Grade 7 Grade 8 ★★☆☆☆

How many distinct permutations of the letters of \(BANANA\) are there?

Details
Problem: COM-B1-M02-P007
Difficulty: Level 2 of 5
Tag: Multiset Permutation
Grade: Grade 7, Grade 8
#2.8
#2.8

Two Students Not Adjacent

Complement method Grade 7 Grade 8 ★★☆☆☆

Seven students stand in a row. In how many ways can this be done if two specified students must not stand next to each other?

Details
Problem: COM-B1-M02-P008
Difficulty: Level 2 of 5
Tag: Complement method
Grade: Grade 7, Grade 8
#2.9
#2.9

Books by Subject

Permutations Grade 8 Grade 9 ★★☆☆☆

On a shelf there are \(3\) math books, \(2\) physics books, and \(2\) history books, all distinct. In how many ways can they be arranged so that books of each subject stand together?

Details
Problem: COM-B1-M02-P009
Difficulty: Level 2 of 5
Tag: Permutations
Grade: Grade 8, Grade 9
#2.10
#2.10

Neighbors at a Round Table

Block method Grade 8 Grade 9 ★★☆☆☆

In how many ways can \(6\) people sit at a round table if two specified people must sit together?

Details
Problem: COM-B1-M02-P010
Difficulty: Level 2 of 5
Tag: Block method
Grade: Grade 8, Grade 9
#2.11
#2.11

Derangements of Four

Inclusion-exclusion Grade 8 Grade 9 ★★☆☆☆

How many permutations of \(1,2,3,4\) leave no number in its original position?

Details
Problem: COM-B1-M02-P011
Difficulty: Level 2 of 5
Tag: Inclusion-exclusion
Grade: Grade 8, Grade 9
#2.12
#2.12

One Before Another

Permutations Grade 8 Grade 9 ★★☆☆☆

How many permutations of \(1,2,3,4,5\) have \(1\) before \(2\)?

Details
Problem: COM-B1-M02-P012
Difficulty: Level 2 of 5
Tag: Permutations
Grade: Grade 8, Grade 9
#2.13
#2.13

Girls Not Adjacent

No Adjacent Grade 8 Grade 9 ★★★☆☆

In how many ways can \(5\) boys and \(4\) girls stand in a row so that no two girls are adjacent?

Details
Problem: COM-B1-M02-P013
Difficulty: Level 3 of 5
Tag: No Adjacent
Grade: Grade 8, Grade 9
#2.14
#2.14

Letters \(AABBCC\)

Inclusion-exclusion Grade 8 Grade 9 ★★★☆☆

How many permutations of \(A,A,B,B,C,C\) have no two equal adjacent letters?

Details
Problem: COM-B1-M02-P014
Difficulty: Level 3 of 5
Tag: Inclusion-exclusion
Grade: Grade 8, Grade 9
#2.15
#2.15

Four-Digit Multiples of \(5\)

Digits Grade 8 Grade 9 ★★★☆☆

How many four-digit numbers with distinct digits can be formed from \(0,1,\ldots,6\) if the number is divisible by \(5\)?

Details
Problem: COM-B1-M02-P015
Difficulty: Level 3 of 5
Tag: Digits
Grade: Grade 8, Grade 9
#2.16
#2.16

Not Neighbors Around a Circle

Complement method Grade 8 Grade 9 ★★★☆☆

In how many ways can \(8\) people sit at a round table if two specified people must not sit together?

Details
Problem: COM-B1-M02-P016
Difficulty: Level 3 of 5
Tag: Complement method
Grade: Grade 8, Grade 9
#2.17
#2.17

Three Books in a Prescribed Order

Permutations Grade 8 Grade 9 ★★★☆☆

There are \(8\) distinct books on a shelf. In how many ways can they be arranged so that books \(A,B,C\) appear in the order \(A\) before \(B\) before \(C\), not necessarily consecutively?

Details
Problem: COM-B1-M02-P017
Difficulty: Level 3 of 5
Tag: Permutations
Grade: Grade 8, Grade 9
#2.18
#2.18

Even Numbers in Even Positions

Permutations Grade 8 Grade 9 ★★★☆☆

How many permutations of \(1,2,\ldots,7\) have the even numbers exactly in even positions?

Details
Problem: COM-B1-M02-P018
Difficulty: Level 3 of 5
Tag: Permutations
Grade: Grade 8, Grade 9
#2.19
#2.19

Two \(A\)'s Not Adjacent

Strings Grade 8 Grade 9 ★★★☆☆

How many words of length \(5\) over \(\{A,B,C,D\}\) contain exactly two \(A\)'s, and they are not adjacent?

Details
Problem: COM-B1-M02-P019
Difficulty: Level 3 of 5
Tag: Strings
Grade: Grade 8, Grade 9
#2.20
#2.20

Exactly One Person Between Two

Casework Grade 8 Grade 9 ★★★☆☆

In how many ways can \(5\) people sit at a round table if exactly one person must sit between Anton and Boris?

Details
Problem: COM-B1-M02-P020
Difficulty: Level 3 of 5
Tag: Casework
Grade: Grade 8, Grade 9
#2.21
#2.21

Derangements of Five

Inclusion-exclusion Grade 8 Grade 9 ★★★★☆

How many permutations of \(1,2,3,4,5\) leave no number in its original position?

Details
Problem: COM-B1-M02-P021
Difficulty: Level 4 of 5
Tag: Inclusion-exclusion
Grade: Grade 8, Grade 9
#2.22
#2.22

Alternating Around a Table

Circular Arrangement Grade 8 Grade 9 ★★★★☆

In how many ways can \(6\) boys and \(6\) girls sit around a round table so that boys and girls alternate?

Details
Problem: COM-B1-M02-P022
Difficulty: Level 4 of 5
Tag: Circular Arrangement
Grade: Grade 8, Grade 9
#2.23
#2.23

Three Numbers Not Adjacent

No Adjacent Grade 8 Grade 9 ★★★★☆

How many permutations of \(1,2,\ldots,8\) have the property that no two of \(1,2,3\) are adjacent?

Details
Problem: COM-B1-M02-P023
Difficulty: Level 4 of 5
Tag: No Adjacent
Grade: Grade 8, Grade 9
#2.24
#2.24

Five Pairs of Letters Without Adjacency

Inclusion-exclusion Grade 9 ★★★★★

How many permutations of \(A,A,B,B,C,C,D,D,E,E\) have no two identical adjacent letters?

Details
Problem: COM-B1-M02-P024
Difficulty: Level 5 of 5
Tag: Inclusion-exclusion
Grade: Grade 9

Ladders

No published ladders were found.
Previous Chapter
Next Chapter