Processing math: 100%

Sunday, May 29, 2011

Section 2.3 - Combinations

Given n distinct items, there are P(n,k) permutations of 0kn items. Each permutation of k items can be re-arranged k! ways. If item order doesn’t matter, there are
P(n,k)k!=n!k!(nk)!=C(n,k)
orderless permutations, or combinations. Sanity check: C(n,n)=n!/(n!(nn)!)=1/0!=1.

Combinations are fun to play with. First, C(n,k)=C(n,nk).? Then
C(n,k+1)=n!(k+1)!(nk1)!=n!(nk)(k+1)k!(nk)(nk1)!=nkk+1C(n,k)
C(n,k+1) is largest when (nk)/(k+1) is closest to 1, which occurs when k is closest to (n1)/2. Similarly
C(n+1,k)=(n+1)!k!(n+1k)!=(n+1)n!k!(n+1k)(nk)!=n+1n+1kC(n,k)