Skip to Content
Combinatorics

1. Basic Enumeration

2019-09-04Original-language archivelegacy assets may be incomplete
  • Product Rule: finite set S×T=ST|S\times T|=|S||T|
  • Sum Rule: finite disjoint set ST=S+T|S\cup T|=|S|+|T|
  • Bijection Rule: finite set ϕ:ST\exists\phi:S\rightarrow T onto and 1-1 then S=T|S|=|T|
    • 1-1: \leq
    • onto: \geq
  • [m]={0,1,2,,m1}[m] = \{0,1,2,\cdots,m-1\}
  • 2[m]={SS[n]}2^{[m]}=\{S|S\subseteq [n]\}: Power set
  • (nk)=([n]k){n\choose k}=|{[n]\choose k}|
    • (Sk)={TST=k}{S\choose k}=\{T\subseteq S||T|=k\}
  • (nm1,,mk)=n!m1!mk!{n\choose m_1,\cdots,m_k}=\frac{n!}{m_1!\cdots m_k!}
    • number of assignments such that ii-th bin has mim_i balls in it
    • number of permutations of a multiset MM with M=n|M|=n such that MM has kk distinct elements whose multiplicities are given by m1,m2,,mkm_1,m_2,\cdots,m_k
  • (m)n=(mmn)(m)_n= {m\choose m-n}: mm lower factorial nn
  • Binominal theorem: (1+x)n=k=0n(nk)xk(1+x)^n=\sum_{k=0}^n{n\choose k}x^k
  • Multinominal theorem: (x1++xk)n=m1++mk=n(nm1,,mk)x1m1xkmk(x_1+\cdots+x_k)^n=\sum_{m_1+\cdots+m_k=n}{n\choose m_1,\cdots,m_k}x_1^{m_1}\cdots x_k^{m_k}
  • kk-composition of nn: (n1k1){n-1\choose k-1}
    • ordered sum of positive integers
  • week kk-composition of nn: (n+k1k1){n+k-1\choose k-1}
    • number of nonnegative solutions to x1+x2++xknx_1+x_2+\cdots+x_k\leq n: (n+kk){n+k \choose k}
  • kk-multisets on SS: ((nk))=(n+k1n1)=(n+k1k)({n\choose k})={n+k-1\choose n-1}={n+k-1\choose k}
  • {nk}{n\brace k}: kk-partitions of an nn-set, Stirling number of the second kind
    • {nk}=k{n1k}+{n1k1}{n\brace k}=k{n-1\brace k}+{n-1 \brace k-1}
    • {nm}=1m!k=1m(1)mk(mk)kn\left\{{n \atop m}\right\}={\frac {1}{m!}}\sum _{k=1}^{m}(-1)^{m-k}{m \choose k}k^{n}
  • B(n)=k=1n{nk}B(n)=\sum_{k=1}^n{n\brace k}: partitions of an nn-set, Bell number
  • pk(n)p_k(n): Partitions of a number, a multiset {x1,,xk}\{x_1,\cdots,x_k\} with xi1x_i\geq 1 and i=1kxi=n\sum_{i=1}^kx_i=n
    • pk(n)=pk1(n1)+pk(nk)p_k(n)=p_{k-1}(n-1)+p_k(n-k)
    • pk(n)nk1k!(k1)!,np_k(n)\sim\frac{n^{k-1}}{k!(k-1)!},n\rightarrow\infty
      • (n1k1)k!pk(n)(n+k(k1)21k1){n-1\choose k-1}\leq k!p_k(n)\leq {n+\frac{k(k-1)}{2}-1\choose k-1}
  • p(n)=k=1npk(n)p(n)=\sum_{k=1}^np_k(n): partition number
  • Ferrers diagram(Young diagram)
    • Conjugate partition
    • The number of partitions of nn which have largest summand kk is pk(n)p_k(n)
    • pk(n)=j=1kpj(nk)p_k(n)=\sum_{j=1}^kp_j(n-k)

Function f:NMf:N\rightarrow M

elements of NN elements of MM any ff 1-1(1\leq 1) on-to(1\geq 1)
distinct distinct mnm^nnn-tuples of mm things (m)n(m)_nnn-permutations of mm things m!{nm}m!{n\brace m}partition [n][n] into mm ordered parts
identical distinct ((mn))({m\choose n})nn-combinations of [m][m] with repitation (mn)m\choose nnn-combinations of [m][m] without repetitions (n1m1){n-1\choose m-1}mm-compositions of nn
distinct identical k=1m{nk}\sum_{k=1}^m{n\brace k}partitions of [n][n] into m\leq m parts [nm][n\leq m]nn pigeons into mm holes {nm}{n \brace m}partitions of [n][n] into mm parts
identical identical k=1mpk(n)=pm(n+m)\sum_{k=1}^mp_k(n)=p_m(n+m)partitions of nn into m\leq m parts [nm][n\leq m]nn pigeons into mm holes pm(n)p_m(n)partitions of nn into mm parts