Calculate the number of permutations (ordered arrangements) of r items selected from a set of n items. A permutation is an arrangement where order matters.
A permutation is an ordered arrangement of objects. The number of permutations of r items selected from n items is calculated using the formula:
P(n, r) = n! / (n - r)!
Where n! (n factorial) means n × (n-1) × (n-2) × ... × 2 × 1
The key difference between permutations and combinations is that permutations consider order while combinations do not. For example, selecting items A, B, C in that order is different from selecting C, B, A in permutations, but they are the same in combinations.