Permutation formula
The permutation formula P(n,r) = n! / (n−r)! counts ordered arrangements. It multiplies n × (n−1) × … for r terms. For example, P(10,3) = 10 × 9 × 8 = 720 different sequences of 3 items from 10.
Use permutations when order matters: ranking finishers in a race, assigning distinct roles, or creating codes where digit position matters.
P(n, r) = n! / (n − r)!
The number of ordered arrangements of r items from n items.