Read · 1 min

Generating Functions

** Definition. ** A generating function is a power series f(x)=∑n=0∞anxnf(x) = \sum_{n = 0}^\infty a_nx^n.

Lucas' Theorem

** Definition. ** Let n=(nlnl−1…n0)pn = (n_l n_{l - 1} \dots n_0)_p be the base pp representation of nn. That is, n=∑i=0lnipin = \sum_{i = 0}^l n_i p^i.

** Theorem. ** Lucas' Theorem states that if n=(nlnl−1…n0)pn = (n_l n_{l-1} \dots n_0)_p and k=(klkl−1…k0)pk = (k_l k_{l-1} \dots k_0)_p (for some appropriate value of ll) then (nk)≡p∏i=0l(niki)\binom{n}{k} \equiv_p \prod_{i = 0}^l \binom{n_i}{k_i}.

Read · 1 min

Proof of Lucas' Theorem

Let n=(nlnl−1…n0)pn = (n_l n_{l-1} \dots n_0)_p and k=(klkl−1…k0)pk = (k_l k_{l-1} \dots k_0)_p denote the base pp representations of n,kn, k.

** Definition. ** Let f(x)f(x) be a generating function. Then [xn]f(x)[x^n]f(x) denotes the coefficient of xnx^n in f(x)f(x).

We then have the following: \begin{align*} \binom{n}{k} &= [x^k](1 + x)^n & \text{By the Binomial Theorem}\ &= [x^k] (1 + x)^{n_0 + n_1 p + n_2 p^2 + \dots + n_l p^l}\ &= [x^k]\prod_{i = 0}^l [(1 + x)^{n_i p^i}]\ &= [x^k]\prod_{i = 0}^l [(1 + x)^{p^i}]^{n^i}\ &\equiv_p [x^k] \prod_{i = 0}^l (1 + x^{p^i})^{n^i} & \text{By expanding (x+1)pi(x+1)^{p^i} modulo pp}\ &= [x^k]\prod_{i = 0}^l \sum_{j_i = 0}^{n_i} \binom{n_i}{j_i}(x^{p^i})^{j_i} & \text{By the Binomial Theorem}\ &= [x^k]\prod_{i = 0}^l \sum_{j_i = 0}^{n_i} \binom{n_i}{j_i}(x^{j_ip^i}) \end{align*}

Now this looks pretty ugly, but it'll work out. Since we are only concerned with the coefficients of xkx^k, the only term that matters from the iith product term is (niki)(xkipi)\binom{n_i}{k_i} (x^{k^i p^i}), since the representation of kk in base pp is unique. It then follows that [xk]∏i=0l∑ji=0ni(niji)(xjipi)=∏i=0l(niki)[x^k]\prod_{i = 0}^l \sum_{j_i = 0}^{n_i} \binom{n_i}{j_i}(x^{j_i p^i})= \prod_{i = 0}^l \binom{n_i}{k_i} as desired.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems