What is the key difference between permutation and combination?
Order. In a permutation, arrangement matters (ABC is different from CBA); in a combination, grouping matters (ABC and CBA are the exact same group).
nPr and nCr for a given set size and selection size.
Calculates Permutations nPr (where order matters) and Combinations nCr (where order does not matter) for choosing r items from n distinct items.
Permutations: nPr = n! / (n - r)! | Combinations: nCr = n! / [r! × (n - r)!]
Permutations count ordered arrangements (passwords, race podiums); combinations count unordered groups (lottery picks, card hands).
Inputs: Total items n = 8 | Chosen items r = 3
Summary: n = 8, r = 3 | Combinations nCr = 56 | Permutations nPr = 336
Order. In a permutation, arrangement matters (ABC is different from CBA); in a combination, grouping matters (ABC and CBA are the exact same group).
Because the order of digits matters (e.g. 1-2-3 is not 3-2-1), making it mathematically a permutation lock.
A triangular array where each entry corresponds to a combination nCr, with rows representing n and columns representing r.