Counting - Hoang Anh Duc - MIM - HUS - VNU

Work 20.

Prove that ∀n≥0, the sum of the elementsin the n-th row in a Pascal triangle is∑i=0nCni=2n\begin{gather*} \text{Prove that } \forall n \geq 0 \text{, the sum of the elements} \quad \\[5pt] \text{in the } n \text{-th row in a Pascal triangle is} \quad \\[10pt] \sum_{i=0}^n C_n^i = 2^n \quad \end{gather*}
Block
  • Solution:
We prove the proposition with induction:Basis step: n=0  ⟹  ∑i=0nCni=C00=0!0!0!=20Induction step: Let k be an integer such that k>0 andfor all L∣0≤L≤k where L indicates a row in the Pascaltriangle I such that when L∈I, the formula stands true:∑i=0kCki=Ck0+Ck1+…+Ckk=2k(IH)We need to show that: ∑i=0k+1Ck+1i=2k+1By Pascal’s Identity: ∑i=0k+1Ck+1i=∑i=0k+1(Cki+Cki−1)=(∑i=0kCki)+(∑i=1k+1Cki−1)=(∑i=0kCki)+(∑i=0kCki)=2×∑i=0kCki=IH2×2k=2k+1Therefore, by mathematical induction:∑i=0nCni=2n,∀n≥0∣n∈N\begin{align} & \text{We prove the proposition with induction:} \quad \\[5pt] & \text{Basis step: } n = 0 \implies \sum_{i=0}^n C_n^i = C_0^0 = \frac{0!}{0!0!} = 2^0 \quad \\[5pt] & \text{Induction step: Let } k \text{ be an integer such that } k > 0 \text{ and} \quad \\[5pt] & \text{for all } L \mid 0 \leq L \leq k \text{ where } L \text{ indicates a row in the Pascal} \quad \\[5pt] & \text{triangle } I \text{ such that when } L \in I \text{, the formula stands true:} \quad \\[5pt] & \sum_{i=0}^k C_k^i = C_k^0 + C_k^1 + \ldots + C_k^k = 2^k \quad (IH) \quad \\[5pt] & \text{We need to show that: } \sum_{i=0}^{k+1} C_{k+1}^i = 2^{k+1} \quad \\[5pt] & \text{By Pascal's Identity: } \sum_{i=0}^{k+1} C_{k+1}^i = \sum_{i=0}^{k+1} \left( C_k^i + C_k^{i-1} \right) \quad \\[5pt] & = \left( \sum_{i=0}^k C_k^i \right) + \left( \sum_{i=1}^{k+1} C_k^{i-1} \right) = \left( \sum_{i=0}^k C_k^i \right) + \left( \sum_{i=0}^k C_k^i \right) \quad \\[5pt] & = 2 \times \sum_{i=0}^k C_k^i \overset{IH}{\mathrel{=}} 2 \times 2^k = 2^{k+1} \quad \\[5pt] & \text{Therefore, by mathematical induction:} \quad \\[5pt] & \sum_{i=0}^n C_n^i = 2^n, \forall n \geq 0 \mid n \in \mathbb{N} \quad \end{align}
Block

Work 23.

Find the coefficient of(a)x7 in the expansion of (1+x)11(b)x9 in the expansion of (2−x)19(c)xk in the expansion of (1+1x)100\begin{align} & \text{Find the coefficient of} \quad \\[5pt] & (a) \quad x^7 \text{ in the expansion of } (1 + x)^{11} \quad \\[5pt] & (b) \quad x^9 \text{ in the expansion of } (2 - x)^{19} \quad \\[8pt] & (c) \quad x^k \text{ in the expansion of } \left(1 + \frac{1}{x} \right)^{100} \quad \end{align}
Block
  • (a) x7 in the expansion of (1+x)11\quad x^7 \text{ in the expansion of } (1 + x)^{11}
By the binomial theorem, the general term is:C11r⋅111−r⋅xr=C11r⋅xrTo find the coefficient of x7, we set r=7:C117=330=Coefficient of x7\begin{align} & \text{By the binomial theorem, the general term is:} \quad \\[5pt] & C_{11}^r \cdot 1^{11-r} \cdot x^r = C_{11}^r \cdot x^r \quad \\[5pt] & \text{To find the coefficient of } x^7 \text{, we set } r = 7: \quad \\[5pt] & C_{11}^7 = 330 = \text{Coefficient of } x^7 \quad \end{align}
Block
  • (b) x9 in the expansion of (2−x)19\quad x^9 \text{ in the expansion of } (2 - x)^{19}
By the binomial theorem, the general term is:C19r⋅219−r⋅(−x)r=C11r⋅219−r⋅(−1)r⋅xrTo find the coefficient of x9, we set r=9:C199⋅219−9⋅(−1)9=−94 595 072=Coefficient of x9\begin{align} & \text{By the binomial theorem, the general term is:} \quad \\[5pt] & C_{19}^r \cdot 2^{19-r} \cdot (-x)^r = C_{11}^r \cdot 2^{19-r} \cdot (-1)^r \cdot x^r \quad \\[5pt] & \text{To find the coefficient of } x^9 \text{, we set } r = 9: \quad \\[5pt] & C_{19}^9 \cdot 2^{19-9} \cdot (-1)^9 = -94 \space 595 \space 072 = \text{Coefficient of } x^9 \quad \end{align}
Block
  • (c) xk in the expansion of (1+1x)100\quad x^k \text{ in the expansion of } \left(1 + \frac{1}{x} \right)^{100}
By the binomial theorem, the general term is:C100r⋅1100−r⋅(1x)r=C100r⋅x−rTo find the coefficient of xk, we set −r=k or r=−k:C100−k⋅xk, we see that for the proposition to hold, then k≤0Therefore, C100−k=Coefficient of xk,k≤0\begin{align} & \text{By the binomial theorem, the general term is:} \quad \\[5pt] & C_{100}^r \cdot 1^{100-r} \cdot \left(\frac{1}{x}\right)^r = C_{100}^r \cdot x^{-r} \quad \\[5pt] & \text{To find the coefficient of } x^k \text{, we set } -r = k \text{ or } r = -k: \quad \\[5pt] & C_{100}^{-k} \cdot x^k \text{, we see that for the proposition to hold, then } k \leq 0 \quad \\[5pt] & \text{Therefore, } C_{100}^{-k} = \text{Coefficient of } x^k, k \leq 0 \quad \end{align}
Block

Work 27.

Directly count all the integer solutions to the equationx1+x2+x3=11 that satisfy 0≤x1≤2,x2≥0and x3≥0 by considering allcases of x1=0,x1=1,x1=2\begin{gather*} \text{Directly count all the integer solutions to the equation} \quad \\[5pt] x_1 + x_2 + x_3 = 11 \text{ that satisfy } 0 \leq x_1 \leq 2, x_2 \geq 0 \quad \\[5pt] \text{and } x_3 \geq 0 \text{ by considering all} \quad \\[5pt] \text{cases of } x_1 = 0, x_1 = 1, x_1 = 2 \quad \end{gather*}
Block
  • Solution:
1
2
3
4
5
6
7
8
9
10
Case 1: x_1 = 0 => 0 + x_2 + x_3 = 11
There are C_{1}^{11 + 1 - 1} = 11 solutions

Case 2: x_1 = 1 => 1 + x_2 + x_3 = 11
There are C_{1}^{10 + 1 - 1} = 10 solutions

Case 3: x_1 = 2 => 2 + x_2 + x_3 = 11
There are C_{1}^{9 + 1 - 1} = 9 solutions

=> There are 9 + 10 + 11 = 30 solutions
Markdown

Work 29.

Find the coefficient of(a)x3 in the expansion of (1−x)−2(b)xn in the expansion of (1+x)−4(c)xn in the expansion of 1+x(1−2x)5\begin{align} & \text{Find the coefficient of} \quad \\[5pt] & (a) \quad x^3 \text{ in the expansion of } (1 - x)^{-2} \quad \\[5pt] & (b) \quad x^n \text{ in the expansion of } (1 + x)^{-4} \quad \\[8pt] & (c) \quad x^n \text{ in the expansion of } \frac{1 + x}{(1 - 2x)^5} \quad \end{align}
Block
  • Prerequisites: Generalized Binomial Theorem:
For any real number m and ∣x∣<1(1+x)m=∑k=0∞(mk)⋅xk=∑k=0∞m(m−1)(m−2)…(m−k+1)k!xk\begin{gather*} \text{For any real number } m \text{ and } \lvert x \rvert < 1 \quad \\[5pt] (1 + x)^m = \sum_{k=0}^\infty \binom{m}{k} \cdot x^k \quad \\[5pt] = \sum_{k=0}^\infty \frac{m(m-1)(m-2) \ldots (m-k+1)}{k!} x^k \quad \end{gather*}
Block
  • (a) x3 in the expansion of (1−x)−2\quad x^3 \text{ in the expansion of } (1 - x)^{-2}
(1−x)−2=∑k=0∞(−2k)⋅(−x)kThe general term is:(−2k)⋅(−x)k=(−2k)⋅(−1)k⋅xkTo find the coefficient of x3, we set k=3:(−23)⋅(−1)3=4=Coefficient of x3\begin{align} & (1-x)^{-2} = \sum_{k=0}^\infty \binom{-2}{k} \cdot (-x)^k \quad \\[5pt] & \text{The general term is:} \quad \\[5pt] & \binom{-2}{k} \cdot (-x)^k = \binom{-2}{k} \cdot (-1)^k \cdot x^k \quad \\[5pt] & \text{To find the coefficient of } x^3 \text{, we set } k = 3: \quad \\[5pt] & \binom{-2}{3} \cdot (-1)^3 = 4 = \text{Coefficient of } x^3 \quad \end{align}
Block
  • (b) xn in the expansion of (1+x)−4\quad x^n \text{ in the expansion of } (1 + x)^{-4}
(1+x)−4=∑k=0∞(−4k)⋅xkThe coefficient of xn corresponds to k=n(−4n)=(−4)(−5)…(−4−n+1)n!=(−1)n⋅4⋅5…(3+n)n!=(−1)n⋅(4+n−1)!n!3!\begin{align} & (1+x)^{-4} = \sum_{k=0}^\infty \binom{-4}{k} \cdot x^k \quad \\[5pt] & \text{The coefficient of } x^n \text{ corresponds to } k = n \quad \\[5pt] & \binom{-4}{n} = \frac{(-4)(-5)\ldots(-4-n+1)}{n!} \quad \\[5pt] & \qquad \quad = \frac{(-1)^n\cdot 4\cdot 5\ldots(3+n)}{n!} \quad \\[5pt] & \qquad \quad = (-1)^n \cdot \frac{(4+n-1)!}{n!3!} \quad \end{align}
Block
  • (c) xn in the expansion of 1+x(1−2x)5\quad x^n \text{ in the expansion of } \frac{1 + x}{(1 - 2x)^5}

  • Step 1: Expansion of (1−2x)−5(1-2x)^{-5}

(1−2x)−5=∑k=0∞(−5k)⋅(−2x)k=∑k=0∞(−5k)⋅(−2)k⋅xkThe general term is:(−5k)⋅(−2)k⋅xk\begin{align} & (1-2x)^{-5} = \sum_{k=0}^\infty \binom{-5}{k} \cdot (-2x)^k \quad \\[5pt] & = \sum_{k=0}^\infty \binom{-5}{k} \cdot (-2)^k \cdot x^k \quad \\[5pt] & \text{The general term is:} \quad \\[5pt] & \binom{-5}{k} \cdot (-2)^k \cdot x^k \quad \end{align}
Block
  • Step 2: Combine the expressions
We have to multiply the expansionsof (1+x) and (1−2x)−5The general expression for the coefficient of xn:(−5n)⋅(−2)n+(−5n−1)⋅(−2)n−1\begin{align} & \text{We have to multiply the expansions} \quad \\[5pt] & \text{of } (1+x) \text{ and } (1-2x)^{-5} \quad \\[5pt] & \text{The general expression for the coefficient of } x^n: \quad \\[5pt] & \binom{-5}{n} \cdot (-2)^n + \binom{-5}{n-1} \cdot (-2)^{n-1} \end{align}
Block

Work 30.

Use a generating function to count all theinteger solutions to the equationx1+x2+x3=11 that satisfy 0≤x1≤2,x2≥0,x3≥0\begin{gather*} \text{Use a generating function to count all the} \quad \\[5pt] \text{integer solutions to the equation} \quad \\[5pt] x_1 + x_2 + x_3 = 11 \text{ that satisfy } \quad \\[5pt] 0 \leq x_1 \leq 2, x_2 \geq 0, x_3 \geq 0 \quad \end{gather*}
Block
  • Solution:
For x1 the generating function is1+x+x2For x2,x3 the generating function is11−xThus the complete generating function isG(x)=(1+x+x2)1(1−x)2We need to find the coefficient of x11We have: 1(1−x)2=∑n=0∞(n+1)xnG(x)=(1+x+x2)×(∑n=0∞(n+1)xn)G(x)=∑n=0∞(n+1)xn+x⋅∑n=0∞(n+1)xn+x2⋅∑n=0∞(n+1)xnG(x)=∑n=0∞(n+1)xn+∑n=0∞(n+1)xn+1+∑n=0∞(n+1)xn+2For the coefficient of x11, we have:12+11+10=33=coefficient of x11So there are 33 solutions to the equation x1+x2+x3=11that satisfy 0≤x1≤2,x2≥0,x3≥0\begin{align} & \text{For } x_1 \text{ the generating function is} \quad \\[5pt] & \qquad \qquad 1 + x + x^2 \quad \\[5pt] & \text{For } x_2, x_3 \text{ the generating function is} \quad \\[5pt] & \qquad \qquad \frac{1}{1-x} \quad \\[5pt] & \text{Thus the complete generating function is} \quad \\[5pt] & G(x) = (1 + x + x^2) \frac{1}{(1 - x)^2} \quad \\[5pt] & \text{We need to find the coefficient of } x^{11} \quad \\[5pt] & \text{We have: } \frac{1}{(1 - x)^2} = \sum_{n=0}^\infty (n+1)x^n \quad \\[5pt] & G(x) = (1 + x + x^2) \times \left(\sum_{n=0}^\infty (n+1)x^n \right) \quad \\[5pt] & G(x) = \sum_{n=0}^\infty (n+1)x^n + x \cdot \sum_{n=0}^\infty (n+1)x^n + x^2 \cdot \sum_{n=0}^\infty (n+1)x^n \quad \\[5pt] & G(x) = \sum_{n=0}^\infty (n+1)x^n + \sum_{n=0}^\infty (n+1)x^{n+1} + \sum_{n=0}^\infty (n+1)x^{n+2} \quad \\[5pt] & \text{For the coefficient of } x^{11} \text{, we have:} \quad \\[5pt] & 12 + 11 + 10 = 33 = \text{coefficient of } x^{11} \quad \\[5pt] & \text{So there are 33 solutions to the equation } x_1 + x_2 + x_3 = 11 \quad \\[5pt] & \text{that satisfy } 0 \leq x_1 \leq 2, x_2 \geq 0, x_3 \geq 0 \quad \end{align}
Block