HOW IT WORKS
Permutations (nPr) vs. combinations (nCr)
Both count ways to select r items from a set of n items. The key difference is whether the order of selection matters.
Permutations Without Repetition: P(n, r)
Order matters (e.g., race podiums or PIN codes without repeats):
P(n, r) = n! ÷ (n − r)!Combinations Without Repetition: C(n, r)
Order does not matter (e.g., lottery tickets or committee selection):
C(n, r) = n! ÷ [ r! · (n − r)! ]With Repetition Allowed
When items can be reused, ordered arrangements equal nʳ and unordered multisets equal C(n + r − 1, r).