Combinatorics
Counting the ways…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Combinatorics
Counting the ways…
An arrangement is a choice for every slot, in order. Without repetition each choice uses an item up, so the options shrink — n, then n − 1, then n − 2 — and the product is n! / (n − k)!.
Five runners, A to E, race for gold, silver and bronze. A podium is an ordered list of three different runners: A-B-C and B-A-C are different podiums. Fill the medals one at a time.
All 60 arrangements, in dictionary order: