Sub topic 3
Permutations: Arrangements When Order Matters
What this chapter assumes
You should be comfortable with the addition and multiplication principles and with factorial notation. In particular, you should know that n! is the product n × (n−1) × … × 1 and that 0! = 1. This chapter builds the permutation formula from those ideas, then covers the cases that CAT questions test most: repetition, position-based counts, and restricted slots.
The core idea
A permutation is an arrangement of objects in which order matters. Choosing Anil as president and Bela as secretary is a different outcome from choosing Bela as president and Anil as secretary.
Suppose you must fill r ordered positions using objects from a set of n distinct objects, and no object can be used twice. Fill the positions one at a time:
- Position 1 can be filled in n ways.
- Position 2 can be filled in n − 1 ways, because one object is used.
- Position 3 can be filled in n − 2 ways.
- Position r can be filled in n − r + 1 ways.
By the multiplication principle, the total is:
nPr = n × (n−1) × … × (n−r+1) = n! / (n−r)!
Check the edge cases:
- nP0 = 1. There is exactly one way to fill no positions.
- nP1 = n.
- nPn = n!. Arranging all n objects uses every object.
- If r > n, nPr = 0, because you run out of objects.
Permutations versus combinations
Combinations are covered in the next chapter, but the link is worth seeing now. Pick 3 objects from 5, then arrange the chosen 3 in order. The 3 chosen objects can be ordered in 3! ways. So:
nPr = nCr × r!
The code below confirms this relationship.
import math
n, r = 5, 3
print(math.factorial(n)) # 120
print(math.perm(n, r)) # 60 -> 5! / (5-3)!
print(math.comb(n, r)) # 10 -> 5! / (3! * 2!)
print(math.perm(n, r) == math.comb(n, r) * math.factorial(r)) # TrueHere nPr counts ordered selections and nCr counts unordered ones, so nPr is always at least as large as nCr.
Deciding whether order matters
Ask this question: if I swap two of the chosen objects, do I get a different outcome? If yes, use a permutation. Typical signals:
| Situation | Order matters? | Method |
|---|---|---|
| Assign president, secretary, treasurer | Yes, roles differ | Permutation |
| Choose a committee of 3 | No, members are equal | Combination |
| Form a 4-digit code | Yes | Permutation or multiplication |
| Seat people in a row | Yes | Permutation |
| Choose 2 fruits from a basket | No | Combination |
Repetition allowed versus not allowed
The formula nPr assumes no repetition. When objects can be reused, each position has the same number of choices.
- Without repetition: n × (n−1) × … × (n−r+1) = nPr.
- With repetition: n × n × … × n = n^r.
For example, a 3-letter code from the 26 letters has 26³ = 17,576 possibilities if letters may repeat, and 26P3 = 26 × 25 × 24 = 15,600 if they may not.
Many CAT problems are not phrased as "permutations" at all. Wording such as "how many ways can 4 prizes be given to 6 students" is the signal to check whether one student can win more than one prize. If yes, each prize has 6 choices, giving 6⁴. If no, the count is 6P4 = 360.
Direction of the exponent
A frequent slip is writing r^n instead of n^r. Count the positions to be filled, then ask how many options each position has. The options go in the base and the number of positions is the exponent. Giving 4 prizes to 6 students gives 6⁴, since each of the 4 prizes has 6 choices. Giving 6 prizes to 4 students gives 4⁶.
Worked examples
Example 1: Arranging a subset
In how many ways can 3 books be arranged on a shelf, chosen from 7 distinct books?
This is 7P3 = 7 × 6 × 5 = 210.
Example 2: Positions with a condition on one slot
How many 3-digit numbers can be formed from the digits 1 to 6 with no repetition, if the number must be even?
Fill the most restricted position first. The units digit must be 2, 4 or 6, which gives 3 choices. The tens digit has 5 choices left, and the hundreds digit has 4. The total is 3 × 5 × 4 = 60.
If you fill the hundreds digit first, the number of choices for the units digit depends on what you chose earlier, and the count becomes messy. Starting with the restricted slot avoids this.
Example 3: Equation involving nPr
If nP2 = 56, find n.
Write nP2 = n(n−1) = 56. This is n² − n − 56 = 0, which factors as (n − 8)(n + 7) = 0. Since n must be positive, n = 8. You can also find 8 × 7 = 56 by inspection, which is faster in the exam.
Example 4: Words that use all the letters
How many arrangements of the letters of the word CAT are possible, and where does the word CAT fall when they are listed alphabetically?
All three letters are distinct, so there are 3! = 6 arrangements. In dictionary order they are ACT, ATC, CAT, CTA, TAC, TCA, so CAT is third. The rank technique is the subject of a later chapter. The function below previews it.
import math
def word_rank(word):
# Rank of a word with all distinct letters, counting from 1
n = len(word)
rank = 1
for i, ch in enumerate(word):
smaller_after = sum(1 for c in word[i + 1:] if c < ch)
rank += smaller_after * math.factorial(n - i - 1)
return rank
print(word_rank("CAT")) # 3 (ACT, ATC, CAT)Common errors
- Using nPr when order does not matter. If swapping two chosen objects gives the same outcome, divide by r! and use nCr.
- Forgetting that positions can be filled in different orders. The multiplication principle works in any fixed order of slots, but the choice counts must be consistent with that order. Fill restricted slots first.
- Treating r > n as possible. nPr is 0 when r > n if no repetition is allowed. A problem that seems to demand it often allows repetition, or has a different structure.
- Mixing up n^r and r^n. Count positions and options carefully, as above.
- Computing factorials in full. Cancel before multiplying. For 10P3, write 10 × 9 × 8 = 720 instead of expanding 10! / 7!.
Quick reference
| Case | Count |
|---|---|
| Arrange all n distinct objects | n! |
| Arrange r of n distinct objects, no repetition | nPr = n!/(n−r)! |
| Fill r positions from n objects, repetition allowed | n^r |
| One restricted slot | Fill that slot first, then the rest |
Exercise
A club has 8 members. In how many ways can a president, a vice-president and a treasurer be chosen if no member holds more than one post? How many ways are there if the same member may hold several posts?
Show answer
Without repetition the count is 8P3 = 8 × 7 × 6 = 336. If one member may hold several posts, each post has 8 choices, giving 8³ = 512.
Exercise
How many 4-digit numbers with no repeated digit can be formed from the digits 0, 1, 2, 3, 4, 5 so that the number is divisible by 5?
Show answer
A number divisible by 5 ends in 0 or 5. Case 1, units digit 0: the other three places are filled from the remaining 5 digits, giving 5P3 = 60. Case 2, units digit 5: the thousands digit cannot be 0 and cannot be 5, so it has 4 choices (1, 2, 3, 4). The hundreds digit has 4 choices (0 and the three digits left), and the tens digit has 3, giving 4 × 4 × 3 = 48. The total is 60 + 48 = 108.
Exercise
If nP3 = 6 × nP2, find n.
Show answer
nP3 = n(n−1)(n−2) and nP2 = n(n−1). Dividing gives n − 2 = 6, so n = 8. Check: 8P3 = 336 and 6 × 8P2 = 6 × 56 = 336.