Permutations
What You'll Learn
- 1Derive the n-pr-r formula by counting the choices available at each position
- 2Decide from the wording whether repetition is allowed or objects are identical
- 3Handle arrangements of letters with repeated characters such as MISSISSIPPI
- 4Distinguish seatings around a table from beads on a necklace
Rearranging five books on a shelf and picking three of them to carry are different questions even though both name three books, because the shelf question cares about order. Permutations are the counting tool for every question where order matters, and they all reduce to the same elementary observation: multiply the number of choices available at each successive position. This lesson builds the factorial formula from that observation, extends it to repeated letters, circular seatings and unrestricted repetition, and solves five problems in the pattern CBSE uses.
Building the formula from choices
Suppose distinct objects are to be placed into ordered positions, with no object used twice. The first position can be filled in any of ways. Once it is filled, only objects remain, so the second position has choices, the third has , and so on until the -th position, which has choices left. Multiplying the independent choices gives
The product has exactly factors, and writing it with factorials makes it symbolic:
The denominator deletes the factors belonging to the objects never chosen. Setting gives arrangements of everything, and setting gives . The convention makes the formula work for as well, giving a single empty arrangement, which is the consistent answer rather than an arbitrary one.
A useful identity follows immediately: because choosing and then arranging is the same as arranging directly, . That relation is the bridge between this lesson and the next one.
| Situation in the wording | Formula | One worked value |
|---|---|---|
| Arrange of distinct objects in order | ||
| Form a string of length from symbols, repeats allowed | to the power | |
| Arrange all objects | ||
| Arrange objects of repeated types | MISSISSIPPI gives 34650 | |
| Seat people round a table | people give | |
| Thread beads on a flip-symmetric necklace | beads give | |
| Choose then arrange, counted together |
Repetition, identical objects and circles
Three variants cover almost every syllabus question. When repetition is allowed each of the positions can be filled in any of the ways regardless of what came before, so the count is and no factorial appears at all. When objects repeat, distinct-looking arrangements collapse into one another: swapping two identical letters produces no new word, and the fix is to divide the unrestricted count by the factorial of each multiplicity, which removes exactly the overcounting.
Circular arrangements need a different insight. Around a table there is no first seat, so rotating an arrangement does not create a new one. Fix one person's position and arrange the remaining freely, giving . Necklaces and garlands add a further symmetry: turning the object over also leaves it unchanged, so each arrangement is counted twice and the answer halves to .
Three straightforward arrangements
Two arrangements that need a structure
How CBSE frames permutation questions
One mark questions quote a symbol such as and ask for its value, or ask which of four formulas counts a stated situation. Three and four mark questions combine a condition with a structure: letters together, letters never together, vowels in specified positions, or a circular seating with one person designated as the host. Marks are given for recognising the structure before any arithmetic, so labelling a block as a single object earns credit even if the final product slips. The characteristic errors are using when the objects cannot repeat, forgetting to divide by factorials of repeated letters, counting for a necklace without halving, and multiplying by the block's internal arrangements twice.
Checking the counts in Python
The first script computes factorials and the three principal formulas, reproducing Examples 1 to 3.
from math import factorial
def arrangements(n, r):
return factorial(n) // factorial(n - r)
def with_repetition(n, r):
return n ** r
def identical_objects(counts):
total = sum(counts)
result = factorial(total)
for c in counts:
result //= factorial(c)
return result
print("5P3 :", arrangements(5, 3))
print("3 digit strings :", with_repetition(5, 3))
print("MISSISSIPPI :", identical_objects([1, 4, 4, 2]))
print("8P3 :", arrangements(8, 3), " vs 8C3 * 3! =", factorial(8) // factorial(5) * 6)
The second script enumerates permutations of a short word and shows that distinct strings collapse exactly as the formula predicts, then reports the circular counts.
from itertools import permutations
from math import factorial
word = "aab"
distinct = sorted({"".join(p) for p in permutations(word)})
print(f"permutations of {word}: {len(distinct)} strings ->", distinct)
print("formula n!/(n1! n2!):", factorial(len(word)) // (factorial(2) * factorial(1)))
people = 5
print("round table:", factorial(people - 1))
print("necklace :", factorial(people - 1) // 2)
letters = "DAUGHTER"
vowels = [c for c in letters if c in "AEIOU"]
consonants = [c for c in letters if c not in "AEIOU"]
blocks = len(consonants) + 1
print("vowels together:", factorial(blocks) * factorial(len(vowels)))
The enumeration of aab returns exactly two distinct strings, aab and aba, against the formula's , and the block computation returns 4320 for DAUGHTER.
Questions that follow from these problems
Does choosing first and arranging afterwards change the count?
No, and that is the content of the identity . Picking three books from five in ways and then ordering each set in ways gives , which is exactly , so the two routes must and do agree.
Why does equal one?
Consistency with the formula. When the denominator of becomes , and the number of ways to arrange nothing is a single empty arrangement, so must be one for to hold.
Can a circular question ever be answered with directly?
Only when the object keeps its orientation. Round tables, races and committee seats have a fixed frame of reference, while rings, bangles and garlands do not, and the presence or absence of a reflection symmetry is the single question you must ask before choosing between and .
Common Mistakes
Using n to the power r when objects cannot be reused
Fix: Powers count strings with repetition allowed; if every object must be distinct the answer is the falling product n times n minus one down to n minus r plus one.
Forgetting to divide by the factorials of repeated letters
Fix: Every repeated character multiplies the overcount, so divide the unrestricted n factorial by each multiplicity factorial as in 11 factorial over 4 factorial 4 factorial 2 factorial.
Using the circular formula for a flip-symmetric arrangement
Fix: Tables and rounds keep their orientation so the count is n minus one factorial, while necklaces and garlands may be flipped and need that value halved.
Key Takeaways
- The permutation formula falls out of multiplying the number of choices left at each successive position, giving n factorial over n minus r factorial
- Repetition allowed changes the count to n to the power r, while repeated identical objects divide the unrestricted count by factorials of each multiplicity
- Circular seatings fix one person to remove rotational symmetry and give n minus one factorial, halved again for objects that may be flipped
- Choosing then arranging satisfies n Pr equals n Cr times r factorial, which links this lesson directly to combinations