Calculate permutations (nPr) and combinations (nCr) for probability and counting problems.
Permutations and combinations.