Library/Combinatorics/Classical combinatorics/Combinations and arrangements

Combinations and arrangements

Practice
Overview
Important

Given nn distinct objects, the number of ways to arrange rr of them in order (arrangements or permutations) is P(n,r)=nimes(n1)imesext...imes(nr+1)=n!(nr)!.P(n, r) = n imes (n-1) imes ext{...} imes (n-r+1) = \frac{n!}{(n-r)!}. The number of ways to choose rr objects from nn without caring about order (combinations) is C(n,r)=(nr)=n!r!(nr)!.C(n, r) = \binom{n}{r} = \frac{n!}{r!(n-r)!}.

Important properties

  • Arrangements (permutations) count ordered selections.

  • Combinations count unordered selections.

  • For each combination, there are r!r! arrangements.

  • The sum of all combinations for r=0r = 0 to nn is 2n2^n.