Skip to content

Mathematics · Ch 5 — Permutations and Combinations

Derivation of the Formula for nPr

5.3.3

Derivation of the Formula for nPr

From the Product Form to the Factorial Form

The earlier formula for the number of permutations of nn different objects taken rr at a time was a product of rr decreasing factors:

nPr=n(n−1)(n−2)⋯(n−r+1)^{n}P_{r} = n(n-1)(n-2)\cdots (n-r+1)

This form is correct but not compact. To turn it into a neat factorial expression, multiply and divide by the product of all the integers from (n−r)(n-r) down to 11.

Note

Why multiply by that particular string?

The product (n−r)(n−r−1)⋯3⋅2⋅1(n-r)(n-r-1)\cdots 3\cdot 2\cdot 1 is exactly (n−r)!(n-r)!. Multiplying numerator and denominator by it does not change the value — it simply fills in the missing factors so that the numerator becomes a complete factorial.

Write the numerator as:

n(n−1)(n−2)⋯(n−r+1)×(n−r)(n−r−1)⋯3⋅2⋅1n(n-1)(n-2)\cdots (n-r+1) \times (n-r)(n-r-1)\cdots 3\cdot 2\cdot 1

The whole numerator is now the product of all integers from nn down to 11, which is n!n!. The denominator is (n−r)!(n-r)!. Therefore:

nPr=n!(n−r)!^{n}P_{r} = \frac{n!}{(n-r)!}

This holds for 0<r≤n0 < r \le n.

The Special Case r=nr = n

When r=nr = n, the formula gives:

nPn=n!(n−n)!=n!0!^{n}P_{n} = \frac{n!}{(n-n)!} = \frac{n!}{0!}

Since 0!=10! = 1 by definition, we get nPn=n!^{n}P_{n} = n!, which matches the number of ways to arrange all nn objects.

Extending the Formula to r=0r = 0

What about arranging no objects at all? There is exactly one way to do nothing — leave all objects untouched. So nP0^{n}P_{0} should equal 11.

Check the factorial formula for r=0r = 0:

nP0=n!(n−0)!=n!n!=1^{n}P_{0} = \frac{n!}{(n-0)!} = \frac{n!}{n!} = 1

The formula works perfectly for r=0r = 0 as well. Hence the complete, universally valid statement is:

nPr=n!(n−r)!,0≤r≤n^{n}P_{r} = \frac{n!}{(n-r)!}, \quad 0 \le r \le n

When Repetition Is Allowed …

Theorem 2

Theorem 2 (Permutations with Repetition Allowed)

nrn^{r}

The number of permutations of nn different objects taken rr at a time, where repetition of any object is allowed, is nrn^{r}.

Hypotheses:

  • The nn objects are all distinct from one another.
  • We are selecting rr objects in order (a permutation, not a combination).
  • After each selection, the chosen object is returned to the pool, so it can be chosen again in the next position.
  • rr can be any non‑negative integer; there is no restriction r≤nr \leq n because repetition makes it possible to use the same object more than once.

When is this used?

Whenever you are counting ordered arrangements (like passwords, PIN codes, or words) where the same item can appear multiple times — for example, the number of 3‑letter words you can form from the letters of the word NUMBER if repetition is allowed is 63=2166^{3} = 216.


›Proof

Proof.

We have nn different objects, and we need to fill rr positions in a sequence.

Step 1 – First position.

There are nn choices for the object that goes in the first place.

Step 2 – Second position.

Because repetition is allowed, the object we used in the first position is still available. So for the second position we again have nn choices.

Step 3 – Third position.

The same reasoning applies: the object used in the first two positions is not removed from the pool, so we still have nn choices for the third position.

Continuing in this way for all rr positions, each position independently offers nn possibilities.

Step 4 – Applying the multiplication principle.

The total number of ways to fill all rr positions is the product of the number of choices for each position:

n×n×n×⋯×n(r factors)=nr.n \times n \times n \times \cdots \times n \quad (r \text{ factors}) = n^{r}.

This completes the proof. ∎ …