How to use
- Enter n, the number of different items you can choose from.
- Enter r, how many items you pick each time. It can be anything from 0 up to n.
- Read nPr when the order of the picks matters (a lineup, a PIN, a batting order) and nCr when only the chosen group matters (a committee, a hand of cards).
- Open the formula lines to see the factorials written out, and the last block for the case where an item may be picked again.
Formula
Permutations nPr = n! / (n - r)!. Combinations nCr = n! / (r! x (n - r)!), so nCr = nPr / r!. If items may repeat: ordered picks = n^r, unordered picks = (n + r - 1)! / (r! x (n - 1)!).Example
From a cricket squad of 15, picking a captain and a vice-captain in that order gives 15P2 = 210 ways. Picking any 2 players for a committee gives 15C2 = 105, exactly half as many, because the order of the two names no longer counts.
n and r must be whole numbers up to 999,999. Very long answers are shown as a ten-digit approximation with their number of digits, so the page stays quick. Items are treated as all different from each other.