Permutations: Arrangements Where Order Matters

April 13, 2026

Problem

How many ways can 5 runners finish 1st, 2nd, and 3rd? Compute P(5,3) = 60. Show the arrangement tree and explain when order matters.

Explanation

What is a permutation?

A permutation is an ordered arrangement of objects. If you care who comes first, second, third, you are counting permutations. Rearranging the same group into a different order counts as a different permutation.

The symbol P(n,r)P(n, r) — sometimes written nPr_nP_r — means "pick rr items from a pool of nn and put them in order."

The formula

P(n,r)=n!(nr)!=n(n1)(n2)(nr+1)P(n, r) = \dfrac{n!}{(n - r)!} = n \cdot (n - 1) \cdot (n - 2) \cdots (n - r + 1)

The expanded product has exactly rr factors, starting at nn and counting down.

Step-by-step solution

Five runners compete. We want to know the number of ways to assign gold, silver, and bronze (so n=5n = 5, r=3r = 3).

Step 1 — Choose 1st place: Any of the 5 runners could win. 5 choices.

Step 2 — Choose 2nd place: One runner is already 1st, so 4 remain. 4 choices.

Step 3 — Choose 3rd place: Two are already placed. 3 choices.

Step 4 — Multiply (counting principle): P(5,3)=543=60P(5, 3) = 5 \cdot 4 \cdot 3 = \boxed{60}

Step 5 — Verify with the factorial formula: P(5,3)=5!(53)!=5!2!=1202=60P(5,3) = \dfrac{5!}{(5-3)!} = \dfrac{5!}{2!} = \dfrac{120}{2} = 60 \checkmark

Why order matters here

Runner Alice finishing 1st with Bob 2nd and Carol 3rd is a different medal ceremony than Bob 1st, Alice 2nd, Carol 3rd. The same three people, different arrangement → counted separately.

Contrast: if the problem said "choose 3 runners for the team" (no ranks), then order would not matter and we would use combinations instead.

Special case: arranging all nn items

When r=nr = n, the formula gives P(n,n)=n!P(n, n) = n!. For example, the number of ways to line up all 5 runners is 5!=1205! = 120.

Common mistakes

  • Forgetting that order matters. If you accidentally use C(n,r)C(n, r) (combinations), you undercount by a factor of r!r!.
  • Using the wrong number of factors. The expanded product n(n1)(n2)n(n-1)(n-2)\cdots has exactly rr terms, not nn. For P(5,3)P(5, 3) it is three factors, not five.
  • Mixing up repetition rules. The formula n!/(nr)!n!/(n-r)! assumes no repeats. If positions can repeat (like a 4-digit PIN where digits can repeat), it is nrn^r instead.

Try it in the visualization

Move the nn and rr sliders and watch the branching tree fill in. Each path from root to leaf is one permutation; the count at the bottom is P(n,r)P(n, r).

Interactive Visualization

Parameters

5.00
3.00
0.00
Horizontal
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Permutations: Arrangements Where Order Matters | MathSpin