How it works
Use combinations when order does not matter, such as lottery numbers or a hand of cards, and permutations when it does, such as race finishing positions or a PIN. Repetition means the same item can be chosen more than once. All four counts are calculated exactly with whole-number arithmetic; very large results are summarised in scientific notation.