2.7.10Statistics & Probability — Intermediate

Permutations — nPr, arrangements with restrictions

1,657 words8 min readdifficulty · medium

WHAT is a permutation?

WHY order matters: ABAB and BABA use the same letters but are different arrangements. If order did NOT matter (like picking a team), we'd be doing combinations, not permutations.


HOW to derive nPrnP_r from scratch

Fill rr positions using nn distinct objects, no repeats.

Position Choices left
1st nn
2nd n1n-1
3rd n2n-2
\dots \dots
rr-th n(r1)=nr+1n-(r-1) = n-r+1

By the multiplication principle, multiply the choices:

nPr=n(n1)(n2)(nr+1)nP_r = n(n-1)(n-2)\cdots(n-r+1)

Why this step? Each position is an independent decision given the earlier ones, and independent-and-then decisions multiply.

Now make it compact. Multiply and divide by the "leftover" factorial (nr)!(n-r)!:

nPr=n(n1)(nr+1)(nr)!(nr)!=n!(nr)!nP_r = \frac{n(n-1)\cdots(n-r+1)\cdot(n-r)!}{(n-r)!} = \boxed{\dfrac{n!}{(n-r)!}}

Figure — Permutations — nPr, arrangements with restrictions

Restrictions — the real skill (80/20)

Almost every exam question is one of these five patterns. Master these and you've covered 80% of the marks.

Pattern 1 — "Fill the restricted position FIRST"

WHY: the tightest constraint should be handled before you run out of freedom.

Pattern 2 — Objects must stay TOGETHER → glue them

Treat the block as one super-object, arrange, then arrange inside the block.

Pattern 3 — Objects must be APART → gaps method

Arrange the others first, then slot the "must-be-apart" ones into the gaps between them.

Pattern 4 — Fixed ends / fixed slots

Place the forced objects, then permute the rest.

Pattern 5 — "At least" / "not allowed" → complement

Count the total, subtract the forbidden.


Worked examples


Common mistakes (Steel-man + fix)


Recall Feynman: explain to a 12-year-old

Imagine lining up your friends for a photo. For the first spot you can pick any of them. Once one stands there, you have one fewer to pick from for the next spot, and so on. You keep multiplying "how many are left." If someone insists on standing on the left end, put them there first, then line up the rest — that's a "restriction." If two best friends want to stand together, tie them with an invisible rope and treat them as one person, but remember they can face two ways (swap). Permutations = counting all the different photo line-ups!


Flashcards

What does nPrnP_r count?
The number of ordered arrangements of rr objects chosen from nn distinct objects, no repetition.
Formula for nPrnP_r
nPr=n!(nr)!nP_r = \dfrac{n!}{(n-r)!}.
Why is nPn=n!nP_n = n!?
Because nPn=n!(nn)!=n!0!=n!nP_n=\frac{n!}{(n-n)!}=\frac{n!}{0!}=n! since 0!=10!=1.
Value of nP0nP_0
11 (one way to arrange nothing).
Difference between permutation and combination?
Permutation counts order (arrangements); combination ignores order (selections). nCr=nPrr!nC_r=\frac{nP_r}{r!}.
"Together" restriction method
Glue the objects into one block, arrange blocks, then multiply by internal r!r! arrangements.
"Apart" restriction method
Use gaps: arrange the others first, then place the must-be-apart items into the gaps between them (or use total − together).
Number of gaps from kk arranged objects
k+1k+1 gaps (including the two ends).
For a restricted position, which slot do you fill first?
The most restricted position first, then fill the free positions.
Even 3-digit numbers from {1,2,3,4,5} no repeats
2×4×3=242\times4\times3=24.

Connections

  • Fundamental Counting Principle — the multiplication rule everything is built on.
  • Combinations — nCr — same objects, order ignored; nCr=nPrr!nC_r=\frac{nP_r}{r!}.
  • Factorials and 0! — why 0!=10!=1.
  • Circular Permutations — arrangements in a ring =(n1)!=(n-1)!.
  • Permutations with Repetition — identical objects divide out over-counts.
  • Probability — Equally Likely Outcomes — permutations often give the denominator.

Concept Map

requires order

apply

gives

special cases

complicated by

handle tightest first

keep adjacent

keep separated

forced slots

forbidden cases

Multiplication principle

Fill positions one by one

Permutation ordered arrangement

nPr = n! / n-r!

nPn = n! and nP0 = 1

Restrictions change choices per step

Pattern 1 restricted position first

Pattern 2 together glue block

Pattern 3 apart gaps method

Pattern 4 fixed ends slots

Pattern 5 at least complement

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, permutation ka matlab hai order-wale arrangement. Jab tum cheezon ko ek line me rakhte ho, to har position ko bhar-te jao aur socho "ab kitne choices bache hain". Pehli jagah ke liye nn choices, doosri ke liye n1n-1, teesri ke liye n2n-2... in sabko multiply kar do. Yahi nPr=n!/(nr)!nP_r = n!/(n-r)! ban jaata hai. Simple funda: har step pe ek option kam ho jaata hai kyunki repeat allowed nahi.

Ab restrictions — yahi exam me marks laate hain. Agar koi position fix hai (jaise "vowel se start"), to wahi constraint pehle solve karo, baaki ko baad me arrange karo. Agar do cheezein saath rehni hain, unko ek rassi se baandh do (glue), ek object maan lo, phir andar ka 2!2! mat bhoolna. Agar do cheezein alag rehni hain, to baaki ko pehle arrange karo aur gaps me daal do — ya seedha "total minus saath-wale" nikaal lo.

Sabse badi galti: order matter karta hai ya nahi, ye check karna. Committee/team choose karni ho to order nahi chalta — wahan combination (nCrnC_r) use hoga, permutation nahi. Aur yaad rakho 0!=10!=1, isliye nPn=n!nP_n=n! aur nP0=1nP_0=1. Bas itna samajh lo — permutation = positions bharo, restriction = jo tight hai use pehle handle karo. Ye 80/20 rule saare sums cover kar deta hai!

Go deeper — visual, from zero

Test yourself — Statistics & Probability — Intermediate