L13 – Stirling Numbers, Integer Partitions, and Generating Functions

Discrete Mathematics2026年4月16日发布 芮和
262.8K 1270
6,806字
29–43 分钟

Type 3

Problem: distributing nn labeled objects into kk unlabeled boxes

Classifications
n1+n2+⋯+nk=nn_1 + n_2 + \dots + n_k = n
n1,n2,…,nk∈ℕn_1, n_2, \dots, n_k \in \mathbb{N}
n1≥n2≥⋯≥nkn_1 \geq n_2 \geq\dots\geq n_k

EXAMPLE: Assigning 4 employees {a,b,c,d}\{a, b, c, d\} into 3 unlabeled offices. Each office can contain any number of employees.

  • 4 0 04\ 0\ 0: [abcd − −][abcd\ -\ -]
  • 3 1 03\ 1\ 0: [abc d −] [abd c −] [acd b −] [bcd a −][abc\ d\ -]\ [abd\ c\ -]\ [acd\ b\ -]\ [bcd\ a\ -]
  • 2 2 02\ 2\ 0: [ab cd −] [ac bd −] [ad bc −][ab\ cd\ -]\ [ac\ bd\ -]\ [ad\ bc\ -]
  • 2 1 12\ 1\ 1: [ab c d][ac b d][ad b c][bc a d][bd a c][cd a b][ab\ c\ d][ac\ b\ d][ad\ b\ c][bc\ a\ d][bd\ a\ c][cd\ a\ b]

S2(n,j)S_2(n,j)

1730, Stirling (1692-1770)

DEFINITION: S2(n,j)S_2(n,j), the Stirling number of the second kind, is defined as the # of ways of distributing nn labeled objects into jj unlabeled boxes s.t. no box is empty.

  • The number of ways of distributing nn labeled objects into kk unlabeled boxes is ∑j=1kS2(n,j)\sum_{j=1}^k S_2(n,j).

THEOREM: S2(n,j)=1j!∑i=0j−1(−1)i(ji)(j−i)nS_2(n,j) = \frac{1}{j!} \sum_{i=0}^{j-1} (-1)^i \binom{j}{i} (j-i)^n when n≥j≥1n \geq j \geq 1.

  • T(n,j)T(n,j): the # of ways of distributing nn labeled objects into jj labeled boxes such that no box is empty
    • T(n,j)=j!⋅S2(n,j)T(n,j) = j! \cdot S_2(n,j)
  • XX: the set of ways of distributing nn labeled objects into jj labeled boxes.
    • By the product rule, |X|=jn|X| = j^n
  • Xi⊆XX_i \subseteq X: the set of ways where exactly ii boxes are used, i=1,2,…,ji = 1,2, \dots, j
    • {X1,X2,…,Xj}\{X_1, X_2, \dots, X_j\} is a partition of XX and |Xi|=(ji)T(n,i)|X_i| = \binom{j}{i} T(n,i)
    • jn=|X|=∑i=1j|Xi|=∑i=1j(ji)T(n,i)j^n = |X| = \sum_{i=1}^j |X_i| = \sum_{i=1}^j \binom{j}{i} T(n,i) // aj=jn,bj=T(n,j),aj=∑i=1j(ji)bia_j = j^n, b_j = T(n,j), a_j = \sum_{i=1}^j \binom{j}{i} b_i
    • T(n,j)=∑i=1j(−1)j−i(ji)in=∑i=0j−1(−1)i(ji)(j−i)nT(n,j) = \sum_{i=1}^j (-1)^{j-i} \binom{j}{i} i^n = \sum_{i=0}^{j-1} (-1)^i \binom{j}{i} (j-i)^n // inverse binomial transform
  • S2(n,j)=1j!⋅T(n,j)=1j!∑i=0j−1(−1)i(ji)(j−i)nS_2(n,j) = \frac{1}{j!} \cdot T(n,j) = \frac{1}{j!} \sum_{i=0}^{j-1} (-1)^i \binom{j}{i} (j-i)^n

Type 4

Problem: distributing nn unlabeled objects into kk unlabeled boxes

Classifications
n1+n2+⋯+nk=nn_1 + n_2 + \dots + n_k = n
n1,n2,…,nk∈ℕn_1, n_2, \dots, n_k \in \mathbb{N}
n1≥n2≥⋯≥nkn_1 \geq n_2 \geq \dots \geq n_k

EXAMPLE: # of ways of distributing 4 identical books into 3 identical boxes.

  • 4 0 04\ 0\ 0
  • 3 1 03\ 1\ 0
  • 2 2 02\ 2\ 0
  • 2 1 12\ 1\ 1

REMARK: The schemes are determined by {n1,…,nk}\{n_1, \dots, n_k\}


Partitions of Integers

DEFINITION: n=a1+a2+⋯+ajn = a_1 + a_2 + \dots + a_j is called an nn-partition with exactly jj parts if a1≥a2≥⋯≥aja_1 \geq a_2 \geq \dots \geq a_j are all positive integers.

  • pj(n)=|{(a1,…,aj):a1+⋯+aj=n,a1≥a2≥⋯≥aj≥1 are integers}|p_j(n) = \left|\left\{\left(a_1, \dots, a_j\right): a_1 + \dots + a_j = n, a_1 \geq a_2 \geq \dots \geq a_j \geq 1 \text{ are integers}\right\}\right|
    • pj(n)p_j(n): the # of ways of writing nn as the sum of jj positive integers.
    • p1(n)=1p_1(n) = 1, pn(n)=1p_n(n) = 1

EXAMPLE: The integer 4 has 4 different partitions into ≤3\leq 3 parts

  • 4=44 = 4
  • 4=3+14 = 3 + 1
  • 4=2+24 = 2 + 2
  • 4=2+1+14 = 2 + 1 + 1

REMARK: solution to the type 4 problem =∑j=1kpj(n)= \sum_{j=1}^k p_j(n)

THEOREM: For n∈ℤ+n \in \mathbb{Z}^+, j∈[n]j \in [n], pj(n+j)=∑i=1jpi(n)p_j(n + j) = \sum_{i=1}^j p_i(n)

  • Let Si=S_i = the set of nn-partitions with exactly ii parts, i∈[j]i \in [j]
  • Let S=⋃i=1jSiS = \bigcup_{i=1}^j S_i. Then |S|=|S1|+⋯+|Sj|=p1(n)+⋯+pj(n)|S| = |S_1| + \dots + |S_j| = p_1(n) + \dots + p_j(n). // right-hand side
  • Let T=T = the set of (n+j)(n+j)-partitions with exactly jj parts. Then |T|=pj(n+j)|T| = p_j(n+j). // left-hand side
  • f:S→T(n1,…,ni)↦(n1+1,…,ni+1,1,…,1)f: S \to T\quad (n_1, \dots, n_i) \mapsto (n_1 + 1, \dots, n_i + 1, 1, \dots, 1)
    • ff is bijective
    • |T|=|S||T| = |S|

EXAMPLE: determine p3(6)p_3(6) and p4(6)p_4(6) with the above theorem

  • p3(6)=p3(3+3)=p1(3)+p2(3)+p3(3)=1+1+1=3p_3(6) = p_3(3+3) = p_1(3) + p_2(3) + p_3(3) = 1 + 1 + 1 = 3
  • p4(6)=p4(2+4)=p1(2)+p2(2)+p3(2)+p4(2)=1+1+0+0=2p_4(6) = p_4(2+4) = p_1(2) + p_2(2) + p_3(2) + p_4(2) = 1 + 1 + 0 + 0 = 2

Computing pj(n)p_j(n) Recursively


Generating Functions

Catalan number: Cn+1=∑k=0nCkCn−kC_{n+1} = \sum_{k=0}^n C_k C_{n-k}, C0=1C_0 = 1// there is a new tool to solve it

DEFINITION: The generating function of a sequence {ar}r=0∞\{a_r\}_{r=0}^\infty is G(x)=∑r=0∞arxrG(x) = \sum_{r=0}^\infty a_r x^r.

  • Generating functions are formal power series; we do not discuss their convergence.

EXAMPLE: generating functions of sequences

  • ar=3a_r = 3, G(x)=3(1+x+⋯+xr+…)G(x) = 3(1 + x + \dots + x^r + \dots)
  • ar=2ra_r = 2^r, G(x)=1+2x+⋯+(2x)r+…G(x) = 1 + 2x + \dots + (2x)^r + \dots
  • ar=(nr)a_r = \binom{n}{r}, G(x)=(n0)+(n1)x+⋯+(nn)xnG(x) = \binom{n}{0} + \binom{n}{1}x + \dots + \binom{n}{n}x^n

DEFINITION: Let A(x)=∑r=0∞arxrA(x) = \sum_{r=0}^\infty a_r x^r, B(x)=∑r=0∞brxrB(x) = \sum_{r=0}^\infty b_r x^r.

  • A(x)=B(x)A(x) = B(x) if ar=bra_r = b_r for all r=0,1,2,…r = 0,1,2, \dots

Operations

DEFINITION: Let A(x)=∑r=0∞arxrA(x) = \sum_{r=0}^\infty a_r x^r, B(x)=∑r=0∞brxrB(x) = \sum_{r=0}^\infty b_r x^r.

  • A(x)+B(x)=∑r=0∞(ar+br)xrA(x) + B(x) = \sum_{r=0}^\infty (a_r + b_r) x^r
  • A(x)−B(x)=∑r=0∞(ar−br)xrA(x) – B(x) = \sum_{r=0}^\infty (a_r – b_r) x^r
  • A(x)⋅B(x)=∑r=0∞(∑j=0rajbr−j)xrA(x) \cdot B(x) = \sum_{r=0}^\infty \left(\sum_{j=0}^r a_j b_{r-j}\right) x^r
  • λ⋅A(x)=∑r=0∞λarxr\lambda \cdot A(x) = \sum_{r=0}^\infty \lambda a_r x^r for any constant λ∈ℝ\lambda \in \mathbb{R}
  • We say that B(x)B(x) is an inverse of A(x)A(x) if A(x)B(x)=1A(x)B(x) = 1.
    • The inverse of A(x)A(x) is denoted as A−1(x)A^{-1}(x)
    • When A(x)A(x) has an inverse, define C(x)A(x)=A−1(x)⋅C(x)\frac{C(x)}{A(x)} = A^{-1}(x) \cdot C(x)

THEOREM: A(x)=∑r=0∞arxrA(x) = \sum_{r=0}^\infty a_r x^r has an inverse if and only if a0≠0a_0 \neq 0.

EXAMPLE: Let A(x)=∑r=0∞xrA(x) = \sum_{r=0}^\infty x^r. Find A−1(x)A^{-1}(x).

  • a0=1≠0a_0 = 1 \neq 0: A−1(x)A^{-1}(x) exists
  • Denote A−1(x)=∑r=0∞brxrA^{-1}(x) = \sum_{r=0}^\infty b_r x^r; b0,b1,…b_0, b_1, \dots are undetermined coefficients
  • A(x)A−1(x)=1A(x)A^{-1}(x) = 1:
    • (1+x+x2+…)(b0+b1x+b2x2+…)=1+0⋅x+0⋅x2+…(1 + x + x^2 + \dots)(b_0 + b_1 x + b_2 x^2 + \dots) = 1 + 0 \cdot x + 0 \cdot x^2 + \dots
      • Coefficient of x0x^0: b0=1b_0 = 1
      • Coefficient of x1x^1: b1+b0=0b_1 + b_0 = 0
      • Coefficient of x2x^2: b2+b1+b0=0b_2 + b_1 + b_0 = 0
      • Coefficient of xrx^r: br+br−1+⋯+b0=0b_r + b_{r-1} + \dots + b_0 = 0
        • b1=−1b_1 = -1, b2=0b_2 = 0, …, br=0b_r = 0
        • A−1(x)=1−xA^{-1}(x) = 1 – x

DEFINITION: A(x)=∑n=0∞anxnA(x) = \sum_{n=0}^\infty a_n x^n

  • A′(x)=∑n=1∞nanxn−1A'(x) = \sum_{n=1}^\infty n a_n x^{n-1}
    • A(0)(x)=A(x)A^{(0)}(x) = A(x)
    • A(k)(x)=(A(k−1)(x))′A^{(k)}(x) = (A^{(k-1)}(x))’ for all integers k≥1k \geq 1
  • ∫A(x)dx=∑n=0∞1n+1anxn+1+C\int A(x) dx = \sum_{n=0}^\infty \frac{1}{n+1} a_n x^{n+1} + C, where CC is a constant

THEOREM: Let A(x)=∑n=0∞anxnA(x) = \sum_{n=0}^\infty a_n x^n and B(x)=∑n=0∞bnxnB(x) = \sum_{n=0}^\infty b_n x^n.

  • (αA(x)+βB(x))′=αA′(x)+βB′(x)(\alpha A(x) + \beta B(x))’ = \alpha A'(x) + \beta B'(x)
  • (A(x)B(x))′=A′(x)B(x)+A(x)B′(x)(A(x)B(x))’ = A'(x)B(x) + A(x)B'(x)
  • (Ak(x))′=kAk−1(x)A′(x)\left(A^k(x)\right)’ = k A^{k-1}(x) A'(x)

(1+αx)u(1+\alpha x)^u

DEFINITION: Let u∈ℝu \in \mathbb{R} and n∈ℕn \in \mathbb{N}. The extended binomial coefficient

(un)={u(u−1)⋯(u−n+1)n!n>01n=0\binom{u}{n} =\begin{cases}\frac{u(u-1)\cdots(u-n+1)}{n!} & n > 0 \\1 & n = 0\end{cases}

THEOREM: Let xx be a real number with |x|<1|x| < 1 and let uu be a real number. Then (1+x)u=∑n=0∞(un)xn(1 + x)^u = \sum_{n=0}^\infty \binom{u}{n} x^n.

EXAMPLE:

  • (1−αx)−1=∑n=0∞αnxn(1 – \alpha x)^{-1} = \sum_{n=0}^\infty \alpha^n x^n // (−1n)=(−1)(−1−1)⋯(−1−n+1)n!=(−1)n\binom{-1}{n} = \frac{(-1)(-1-1)\cdots(-1-n+1)}{n!} = (-1)^n
  • (1−αx)−u=∑n=0∞(n+u−1n)αnxn(1 – \alpha x)^{-u} = \sum_{n=0}^\infty \binom{n + u – 1}{n} \alpha^n x^n // (−un)=(−u)(−u−1)⋯(−u−n+1)n!=(−1)n(n+u−1n)\binom{-u}{n} = \frac{(-u)(-u-1)\cdots(-u-n+1)}{n!} = (-1)^n \binom{n + u – 1}{n}
© 版权声明

相关文章

127 条评论

none
暂无评论...