Skip to Content

1. Basic Enumeration

2019-09-04·Combinatorics
  • Product Rule: finite set ∣S×T∣=∣S∣∣T∣|S\times T|=|S||T|
  • Sum Rule: finite disjoint set ∣S∪T∣=∣S∣+∣T∣|S\cup T|=|S|+|T|
  • Bijection Rule: finite set ∃ϕ:S→T\exists\phi:S\rightarrow T onto and 1-1 then ∣S∣=∣T∣|S|=|T|
    • 1-1: ≤\leq
    • onto: ≥\geq
  • [m]={0,1,2,⋯ ,m−1}[m] = \{0,1,2,\cdots,m-1\}
  • 2[m]={S∣S⊆[n]}2^{[m]}=\{S|S\subseteq [n]\}: Power set
  • (nk)=∣([n]k)∣{n\choose k}=|{[n]\choose k}|
    • (Sk)={T⊆S∣∣T∣=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=(mm−n)(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)x1m1⋯xkmk(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: (n−1k−1){n-1\choose k-1}
    • ordered sum of positive integers
  • week kk-composition of nn: (n+k−1k−1){n+k-1\choose k-1}
    • number of nonnegative solutions to x1+x2+⋯+xk≤nx_1+x_2+\cdots+x_k\leq n: (n+kk){n+k \choose k}
  • kk-multisets on SS: ((nk))=(n+k−1n−1)=(n+k−1k)({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{n−1k}+{n−1k−1}{n\brace k}=k{n-1\brace k}+{n-1 \brace k-1}
    • {nm}=1m!∑k=1m(−1)m−k(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 xi≥1x_i\geq 1 and ∑i=1kxi=n\sum_{i=1}^kx_i=n
    • pk(n)=pk−1(n−1)+pk(n−k)p_k(n)=p_{k-1}(n-1)+p_k(n-k)
    • pk(n)∼nk−1k!(k−1)!,n→∞p_k(n)\sim\frac{n^{k-1}}{k!(k-1)!},n\rightarrow\infty
      • (n−1k−1)≤k!pk(n)≤(n+k(k−1)2−1k−1){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(n−k)p_k(n)=\sum_{j=1}^kp_j(n-k)

Function f:N→Mf:N\rightarrow M

elements of NNelements of MMany ff1-1(≤1\leq 1)on-to(≥1\geq 1)
distinctdistinctmnm^n
nn-tuples of mm things
(m)n(m)_n
nn-permutations of mm things
m!{nm}m!{n\brace m}
partition [n][n] into mm ordered parts
identicaldistinct((mn))({m\choose n})
nn-combinations of [m][m] with repitation
(mn)m\choose n
nn-combinations of [m][m] without repetitions
(n−1m−1){n-1\choose m-1}
mm-compositions of nn
distinctidentical∑k=1m{nk}\sum_{k=1}^m{n\brace k}
partitions of [n][n] into ≤m\leq m parts
[n≤m][n\leq m]
nn pigeons into mm holes
{nm}{n \brace m}
partitions of [n][n] into mm parts
identicalidentical∑k=1mpk(n)=pm(n+m)\sum_{k=1}^mp_k(n)=p_m(n+m)
partitions of nn into ≤m\leq m parts
[n≤m][n\leq m]
nn pigeons into mm holes
pm(n)p_m(n)
partitions of nn into mm parts