IB Maths AA HL Topic 1 โ€” Number & Algebra Paper 1 & 2 HL only ~10 min read

Permutations

A permutation is a fancy word for a rearrangement โ€” and the key feature is that order matters. Imagine three runners crossing the finish line: gold to Aisha, silver to Ben, bronze to Cara is a different result from gold to Ben, silver to Aisha, bronze to Cara. Same three people, different order, different outcome. This note teaches you the small toolkit you need for arranging objects in a row: factorials, the nPr formula, and a few clever tricks for handling restrictions like “these two must sit together” or “those two cannot be next to each other”. Once you’ve seen each trick once, the same patterns show up in almost every exam question.

๐Ÿ“˜ What you need to know

What’s a permutation?

Suppose you’ve got three letters โ€” A, B, C โ€” and you want to count how many different rows you can make. Let’s just list them all: ABC, ACB, BAC, BCA, CAB, CBA. That’s six. Each one is a different permutation of the three letters. The same letters appear in each row, but the order changes โ€” and the order matters.

A “rearrangement” or “arrangement” means the same thing as a permutation. Watch out for the word “selection” โ€” that’s different. Selection just means you’re choosing some objects out of a bigger pool, and it’s not always clear whether order matters. We’ll deal with selection (combinations) in the next note.

Factorials โ€” the engine behind permutations

Before any of this works, you need to be comfortable with factorials. The factorial of a positive integer n, written n!, just means multiply n by every smaller positive integer down to 1.

Factorial n! = n ร— (n โˆ’ 1) ร— (n โˆ’ 2) ร— โ€ฆ ร— 2 ร— 1

So 5! = 5 ร— 4 ร— 3 ร— 2 ร— 1 = 120, and 7! = 5040, and 10! = 3 628 800 (numbers grow fast). And one strange convention worth memorising:

0! = 1

Why? It looks weird, but it makes the nPr formula behave properly when r = n. Just accept it for now.

Use your calculator!   Every IB-approved GDC has a factorial button (usually labelled “!” or “x!”). For anything bigger than 5! or 6!, use it.

Rearranging n different objects

Here’s the cleanest result in the topic. If you have n different objects and you want to arrange them all in a row, the number of arrangements is just n!.

Why? Because of the slot-filling logic from the previous note. You have n choices for the first slot, then n โˆ’ 1 left for the second, then n โˆ’ 2 for the third, and so on, down to 1 for the last slot. Multiply: n ร— (n โˆ’ 1) ร— (n โˆ’ 2) ร— โ€ฆ ร— 1 = n!.

Why arranging 5 different objects gives 5!
5 different letters โ†’ 5 positions to fill “how many choices in each slot?” 5 choices Position 1 any letter ร— 4 choices Position 2 one used ร— 3 choices Position 3 two used ร— 2 choices Position 4 three used ร— 1 left Pos 5 5 ร— 4 ร— 3 ร— 2 ร— 1 = 5! = 120 120 different arrangements of 5 objects
This slot-filling picture is the secret behind all permutation problems. Whenever you see “how many waysโ€ฆ”, draw the slots, fill in how many choices each one has, and multiply. The factorial is just a shortcut name for what you’re already doing.

The nPr formula โ€” when you don’t use them all

What if you’ve got n different objects, but you only want to arrange some of them โ€” say r of them โ€” in a row? That’s where nPr comes in.

Permutations of r from n nPr = n!(n โˆ’ r)!   (where 0 โ‰ค r โ‰ค n) โœ“ in the formula booklet

The formula looks intimidating but it’s just doing the slot-filling for you. Want to arrange 4 paintings out of 8 different ones in a row? You’ve got 8 choices for slot 1, 7 for slot 2, 6 for slot 3, 5 for slot 4 โ€” total 8 ร— 7 ร— 6 ร— 5 = 1680. The factorial form simply says 8P4 = 8! รท 4! = 1680.

๐Ÿค” Why does the formula use (n โˆ’ r)!?

Because dividing n! by (n โˆ’ r)! is exactly the cancellation needed to leave only the first r factors. Think of 8P4: 8! = 8 ร— 7 ร— 6 ร— 5 ร— 4!, so dividing by 4! gives just 8 ร— 7 ร— 6 ร— 5 โ€” the four “slot counts” you wanted. The factorial form is just a tidy way of saying “stop multiplying after r terms”.

Permutations don’t allow repeats.   Once an object is placed in a slot, it can’t appear again. So nPr is for selecting different objects โ€” not for things like passwords where digits can repeat.
The formula and a calculator button (usually labelled nPr or “nPr”) will both give you the answer instantly. Use whichever feels faster, but be ready to show working if a Paper 1 question demands it.

Trick #1 โ€” when two (or more) must be together

Now we move into the techniques that exam questions love. The first scenario: you’re rearranging some objects and a couple of them have to sit next to each other.

๐Ÿงญ Recipe โ€” “must be together”

  1. Glue them together. Treat the pair (or trio) as a single combined object โ€” call it X.
  2. Count the arrangements of the new shorter list (which now has one fewer object).
  3. Multiply by the internal arrangements of the glued pair. If two letters are glued, that’s 2!. If three are glued, it’s 3!.

For example, suppose you’ve got the letters PIANO (5 different letters), and you want P and I to be together (in either order). Treat PI as a single block X. Now you’re arranging X, A, N, O โ€” that’s 4 objects, so 4! = 24 ways. Then the block PI itself can be PI or IP โ€” that’s 2! = 2 ways. Multiply: 24 ร— 2 = 48.

What if the order of the pair is fixed?   If the question says “P must come before I” (or “in the order PI”), don’t multiply by 2! โ€” there’s only one way to internally arrange them.

Trick #2 โ€” when two cannot be together

This sounds like the opposite, and the technique is too โ€” but with a twist. Instead of counting “not together” directly, count the opposite (together) and subtract from the unrestricted total.

(not together) = (all arrangements) โˆ’ (together)

๐Ÿงญ Recipe โ€” “must NOT be together”

  1. Calculate the total unrestricted arrangements โ€” usually n!.
  2. Calculate the “together” count using Trick #1.
  3. Subtract: not-together = total โˆ’ together.

๐Ÿค” Why do we count the opposite?

Because counting “not together” directly is messy โ€” you’d have to think about gaps and positions. The “together” version is much cleaner thanks to the gluing trick. Subtracting from the total is a classic mathematician’s move: when one thing is hard, see if its opposite is easy.

Trick #3 โ€” when objects must be in specific places

Sometimes the question pins certain objects to certain positions: “the first letter must be a vowel”, “the last seat must be Aisha”, “the middle digit must be even”. The fix is the same as in counting principles โ€” fill the restricted slots first, then arrange the rest.

๐Ÿงญ Recipe โ€” fixed positions

  1. Place the restricted objects first. Multiply the number of valid choices in each restricted slot.
  2. Arrange the remaining objects in the remaining slots โ€” usually a smaller factorial.
  3. Multiply the two parts.

Worked examples

WE 1

Arranging books on a shelf

How many ways can 6 different books be arranged in a row on a shelf?

Step 1: Spot the structure โ€” 6 different objects, all in a row use n! with n = 6 Step 2: Compute 6! = 6 ร— 5 ร— 4 ร— 3 ร— 2 ร— 1 = 720 720 different arrangements whenever you arrange n different objects in a row, the answer is just n!
WE 2

Hanging paintings โ€” using nPr

A gallery has 8 different paintings, but only 4 spots on the main wall. How many ways can the curator choose and hang 4 of the 8 paintings, given that the order on the wall matters?

Step 1: Identify the structure selecting r = 4 out of n = 8, order matters โ†’ use 8P4 Step 2: Apply the formula 8P4 = 8! / (8 โˆ’ 4)! = 8! / 4! = (8 ร— 7 ร— 6 ร— 5 ร— 4!) / 4! = 8 ร— 7 ร— 6 ร— 5 = 56 ร— 30 = 1680 1680 ways to arrange 4 paintings out of 8 slot logic gives the same: 8 ร— 7 ร— 6 ร— 5 = 1680. The formula is just a tidy version of this.
WE 3

Two letters must be together

How many ways can the letters of the word WORLD be rearranged so that the W and the O are next to each other (in either order)?

Step 1: Glue W and O into a single block X treat WO as one unit โ†’ arranging X, R, L, D = 4 objects Step 2: Count arrangements of the new list 4! = 24 arrangements Step 3: Multiply by internal arrangements of WO block can be WO or OW โ†’ 2! = 2 total = 24 ร— 2 = 48 48 arrangements if the question said “W must come before O”, drop the 2! โ€” only one internal order is allowed
WE 4

Two letters must NOT be together

How many ways can the letters of TUESDAY (7 different letters) be rearranged so that the T and U are never next to each other?

Step 1: Find the unrestricted total total = 7! = 5040 Step 2: Find arrangements where T and U ARE together glue TU into one block โ†’ 6 objects to arrange = 6! block can be TU or UT โ†’ ร— 2! together = 6! ร— 2! = 720 ร— 2 = 1440 Step 3: Subtract not-together = 5040 โˆ’ 1440 = 3600 3600 arrangements it’s much easier to count “together” and subtract than to count “apart” directly
WE 5

Letters in specific positions

How many ways can the letters of FRIEND (6 different letters) be rearranged so that F is the first letter and D is the last letter?

Step 1: Place the restricted letters first position 1: F (1 choice โ€” fixed) position 6: D (1 choice โ€” fixed) Step 2: Arrange the remaining 4 letters in positions 2โ€“5 letters left: R, I, E, N (4 different) arrangements = 4! = 24 Step 3: Multiply total = 1 ร— 24 ร— 1 = 24 24 arrangements when an object is fixed in a slot, that slot contributes a “1” to the multiplication โ€” handle the restrictions before the free positions
WE 6

Vowels at both ends

How many ways can the letters of MONDAY (6 different letters) be rearranged if the two vowels (O and A) must be at the two ends?

Step 1: Place the vowels at the ends vowels: O, A โ†’ 2! = 2 ways to arrange them at positions 1 and 6 (could be Oโ€ฆA or Aโ€ฆO) Step 2: Arrange the other 4 letters in the middle letters left: M, N, D, Y โ†’ 4! = 24 ways in positions 2โ€“5 Step 3: Multiply (AND, so multiply) total = 2 ร— 24 = 48 48 arrangements always do the restricted parts first โ€” vowels at ends, then the unrestricted middle

๐Ÿ’ก Top tips

โš  Common mistakes

Permutations questions reward students who slow down. The big mistake isn’t the algebra โ€” it’s reading too quickly and missing whether two things must be together, or apart, or fixed in specific seats. Underline the conditions, draw the slots, and pick the right trick. Once you’ve done five or six of these, the patterns become obvious. Up next: combinations, where order suddenly stops mattering and the formulas shift slightly.

Need help with Permutations?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session โ†’