Salta al contenuto
Note per Studenti Induction, Sums and the Binomial Theorem Report

Induction, Sums and the Binomial Theorem

In questa pagina 4

Prerequisites: Logic and Proof TechniquesPropositions, connectives, predicates and quantifiers with the rules for negating them, and the three basic proof techniques (direct, contrapositive, contradiction).Logic and Proof Techniques →, Sets and Set OperationsWays of describing a set, subsets and equality, the power set, finite and infinite sets, union, intersection, difference, complement, De Morgan laws and the Cartesian product.Sets and Set Operations →.

The principle of induction

Many statements concern all natural numbers, e.g. "for every n∈Nn \in \mathbb{N}, 2n>n2^n > n". Checking n=0,1,2,…n = 0, 1, 2, \dots never ends and proves nothing (it might fail for a huge nn). Induction proves all cases with finitely many steps.

The domino idea. Infinitely many dominoes numbered 0,1,2,…0, 1, 2, \dots all fall if (1) the first falls, and (2) whenever one falls, the next falls. "Domino nn falls" = "the statement holds for nn"; (1) is the base step, (2) the inductive step.

Theorem (principle of induction). Let n0∈Nn_0 \in \mathbb{N} and p(n)p(n) a predicate on naturals. "∀n≥n0:p(n)\forall n \ge n_0 : p(n)" is true iff

  1. p(n0)p(n_0) is true;
  2. p(n)⇒p(n+1)p(n) \Rightarrow p(n+1) for every n≥n0n \ge n_0.

How to write a proof.

  1. Base step: substitute n0n_0 and check.
  2. Inductive step: fix n≥n0n \ge n_0. Assume p(n)p(n) (the inductive hypothesis: not circular, we only say "if it held, then ..."). Write the thesis p(n+1)p(n+1) and prove it, using the inductive hypothesis somewhere (if you never use it, something is wrong).
  3. Conclusion: by the principle of induction, p(n)p(n) holds for all n≥n0n \ge n_0.

Proof of the theorem. "⇒\Rightarrow" is easy: if p(n)p(n) holds for all n≥n0n \ge n_0, then p(n0)p(n_0) holds and p(n)⇒p(n+1)p(n) \Rightarrow p(n+1) is an implication between true statements. "⇐\Leftarrow" by contradiction: assume 1 and 2 and suppose "∀n≥n0:p(n)\forall n \ge n_0 : p(n)" false. Then there is nˉ≥n0\bar n \ge n_0 with p(nˉ)p(\bar n) false. nˉ≠n0\bar n \ne n_0 since p(n0)p(n_0) is true, so nˉ−1≥n0\bar n - 1 \ge n_0. Also p(nˉ−1)p(\bar n - 1) is false: otherwise 2 would give p(nˉ)p(\bar n) true. Repeating, p(nˉ−2)p(\bar n - 2) is false, and so on; after the finitely many steps nˉ−n0\bar n - n_0 we reach p(n0)p(n_0) false, contradicting 1. ■\blacksquare

It rests on two properties of N\mathbb{N}: every nn has a successor n+1n+1, every n≥1n \ge 1 has a predecessor n−1n - 1.

Example. For every n≥1n \ge 1: 1+2+⋯+n=n(n+1)21 + 2 + \dots + n = \frac{n(n+1)}{2}.

  • Base (n=1n = 1): left side 11, right side 1⋅22=1\frac{1 \cdot 2}{2} = 1.
  • Step. Hypothesis: 1+⋯+n=n(n+1)21 + \dots + n = \frac{n(n+1)}{2}. Thesis: 1+⋯+n+(n+1)=(n+1)(n+2)21 + \dots + n + (n+1) = \frac{(n+1)(n+2)}{2}. The first nn terms equal n(n+1)2\frac{n(n+1)}{2} by hypothesis, so 1+⋯+n+(n+1)=n(n+1)2+(n+1)=(n+1)(n2+1)=(n+1)(n+2)2.1 + \dots + n + (n+1) = \frac{n(n+1)}{2} + (n+1) = (n+1)\Big(\frac n2 + 1\Big) = \frac{(n+1)(n+2)}{2}.

Induction also lets us define by recursion, e.g. 0!=10! = 1, (n+1)!=(n+1) n!(n+1)! = (n+1)\,n!. If the claim is only for n≥n0n \ge n_0, start the base step at n0n_0.

Mistakes: forgetting the base step ("n=n+1n = n + 1" has a working-looking inductive step but is false for every nn); proving only the base step; using the thesis to prove the thesis; never using the inductive hypothesis; wrong substitution of n+1n+1 (watch parentheses); a step that fails for the first value.

Summation notation

A sum ∑\sum is just shorthand: ∑k=1nxk=x1+x2+⋯+xn,∑k=n0nxk=xn0+⋯+xn.\sum_{k=1}^{n} x_k = x_1 + x_2 + \dots + x_n, \qquad \sum_{k=n_0}^{n} x_k = x_{n_0} + \dots + x_n. kk is the index (a dummy variable: ∑k\sum_k, ∑j\sum_j, ∑i\sum_i give the same sum), n0n_0 and nn are the first and last values (inclusive), xkx_k the general term. To compute, write it out: ∑k=15(2k+1)=3+5+7+9+11=35\sum_{k=1}^{5}(2k+1) = 3 + 5 + 7 + 9 + 11 = 35; ∑k=14k2=1+4+9+16=30\sum_{k=1}^4 k^2 = 1 + 4 + 9 + 16 = 30; ∑k=36k=18\sum_{k=3}^{6} k = 18. The number of terms from aa to bb is b−a+1b - a + 1. Careful: 1k+1\frac{1}{k+1} is "one over k+1k+1", not 1k+1\frac1k + 1.

Change of index (shift). Put j=k+1j = k + 1 (say), recompute the limits, rewrite the term. ∑k=11001k+1=∑j=21011j\sum_{k=1}^{100}\frac{1}{k+1} = \sum_{j=2}^{101} \frac1j (k=1→j=2k=1 \to j=2, k=100→j=101k=100 \to j=101). To start from 00, with h=k−n0h = k - n_0: ∑k=n0nxk=∑h=0n−n0xh+n0.\sum_{k=n_0}^{n} x_k = \sum_{h=0}^{n-n_0} x_{h+n_0}. Reflection (sum backwards), with h=n−kh = n - k: ∑k=n0nxk=∑h=0n−n0xn−h.\sum_{k=n_0}^{n} x_k = \sum_{h=0}^{n-n_0} x_{n-h}. E.g. ∑k=1412k=∑h=0312h+1=∑h=03124−h\sum_{k=1}^{4}\frac1{2^k} = \sum_{h=0}^{3}\frac{1}{2^{h+1}} = \sum_{h=0}^{3}\frac1{2^{4-h}}.

Properties.

  • Linearity: ∑c xk=c∑xk\sum c\,x_k = c\sum x_k and ∑(xk+yk)=∑xk+∑yk\sum (x_k + y_k) = \sum x_k + \sum y_k. It does not hold for products: ∑xkyk≠(∑xk)(∑yk)\sum x_k y_k \ne (\sum x_k)(\sum y_k) (with x=y=(1,1)x = y = (1,1): 22 versus 44). Example: ∑k=13(2k+1)=2⋅6+3=15\sum_{k=1}^3(2k+1) = 2\cdot 6 + 3 = 15.
  • Additivity: for 1≤m<n1 \le m < n, ∑k=1nxk=∑k=1mxk+∑k=m+1nxk\sum_{k=1}^n x_k = \sum_{k=1}^m x_k + \sum_{k=m+1}^n x_k (the second piece restarts at m+1m + 1).
  • Terms appearing with ++ and −- in a difference cancel: (12+13+14)−(12+13)=14(\frac12 + \frac13 + \frac14) - (\frac12 + \frac13) = \frac14.

Notable sums.

  • Constant: ∑k=n0nc=(n−n0+1) c\sum_{k=n_0}^{n} c = (n - n_0 + 1)\,c; e.g. ∑k=0n1=n+1\sum_{k=0}^{n} 1 = n+1.
  • Gauss: ∑k=1nk=n(n+1)2\sum_{k=1}^{n} k = \frac{n(n+1)}{2} (for n=100n = 100: 50505050). Idea: write the sum twice, forwards and backwards; each column adds to n+1n+1, there are nn columns, so 2S=n(n+1)2S = n(n+1). Rigorous proof by induction as above.
  • Geometric: for q≠1q \ne 1, ∑k=0nqk=1−qn+11−q.\sum_{k=0}^{n} q^k = \frac{1 - q^{n+1}}{1 - q}. Example q=12q = \frac12, n=3n = 3: 1+12+14+18=158=2(1−116)1 + \frac12 + \frac14 + \frac18 = \frac{15}8 = 2\big(1 - \frac1{16}\big). For q=0q = 0 use the convention 00=10^0 = 1 (the sum is 11, as the formula says); for q=1q = 1 the formula cannot be used but the sum is n+1n + 1.

Proof. By linearity and a shift h=k+1h = k+1: (1−q)∑k=0nqk=∑k=0nqk−∑k=0nqk+1=∑k=0nqk−∑k=1n+1qk(1-q)\sum_{k=0}^n q^k = \sum_{k=0}^n q^k - \sum_{k=0}^n q^{k+1} = \sum_{k=0}^n q^k - \sum_{k=1}^{n+1} q^k. Detach the first term of the first sum (q0=1q^0 = 1) and the last of the second (qn+1q^{n+1}); the sums from 11 to nn cancel, leaving 1−qn+11 - q^{n+1}. Divide by 1−q≠01 - q \ne 0. ■\blacksquare

Factorial and binomial coefficients

Definition. n!=n(n−1)⋯2⋅1n! = n(n-1)\cdots 2 \cdot 1 for n>0n > 0, and 0!=10! = 1 (convention making the formulas work). Recursively (n+1)!=(n+1) n!(n+1)! = (n+1)\,n!.

5!=1205! = 120, 6!=7206! = 720. Careful: 2n!=2 (n!)2n! = 2\,(n!) differs from (2n)!(2n)! (for n=3n = 3: 1212 versus 720720). For 0≤k<n0 \le k < n: n(n−1)⋯(n−k+1)=n!(n−k)!n(n-1)\cdots(n-k+1) = \frac{n!}{(n-k)!} (kk factors, the last one is n−k+1n - k + 1); e.g. 6⋅5⋅4=6!3!=1206 \cdot 5 \cdot 4 = \frac{6!}{3!} = 120. Simplify as 6!3!=6⋅5⋅4\frac{6!}{3!} = 6 \cdot 5 \cdot 4, not 2!2!.

Counting strings.

  • Permutations of nn elements (ordered, no repetition, all used): n!n!. (nn choices for the first slot, n−1n-1 for the next, ... ; the choices multiply.) {1,2,3}\{1,2,3\} has 3!=63! = 6.
  • Dispositions of nn elements taken kk at a time (ordered, no repetition): n!(n−k)!\frac{n!}{(n-k)!}. E.g. 6⋅5⋅4=1206 \cdot 5 \cdot 4 = 120 podiums among 66 athletes.
  • Combinations (unordered: a subset of kk elements): each combination corresponds to k!k! dispositions, hence (nk)=n(n−1)⋯(n−k+1)k!=n!k! (n−k)!(0≤k≤n).\binom nk = \frac{n(n-1)\cdots(n-k+1)}{k!} = \frac{n!}{k!\,(n-k)!} \quad (0 \le k \le n).

(nk)\binom nk is the number of kk-element subsets of an nn-element set. E.g. (53)=5⋅4⋅33!=10\binom53 = \frac{5\cdot4\cdot3}{3!} = 10. Special values: (n0)=(nn)=1\binom n0 = \binom nn = 1, (n1)=n\binom n1 = n, (nn−3)=n(n−1)(n−2)6\binom{n}{n-3} = \frac{n(n-1)(n-2)}{6}.

Symmetry: (nk)=(nn−k)\binom nk = \binom n{n-k} (choosing what to take is choosing what to leave; or from the formula, n!(n−k)! k!\frac{n!}{(n-k)!\,k!}). Compute with the smaller kk.

Stifel's formula (0<k<n0 < k < n): (nk)=(n−1k−1)+(n−1k)\binom nk = \binom{n-1}{k-1} + \binom{n-1}{k}. Combinatorial proof: fix one element ⋆\star. The kk-subsets containing ⋆\star are (n−1k−1)\binom{n-1}{k-1} (choose the other k−1k-1 among n−1n - 1); those not containing it are (n−1k)\binom{n-1}{k}; the two groups are disjoint. Algebraic proof: common denominator k! (n−k)!k!\,(n-k)!, using k (k−1)!=k!k\,(k-1)! = k! and (n−k)(n−k−1)!=(n−k)!(n-k)(n-k-1)! = (n-k)!: (n−1)!(k−1)!(n−k)!+(n−1)!k!(n−1−k)!=(n−1)! [k+(n−k)]k! (n−k)!=n!k! (n−k)!.\frac{(n-1)!}{(k-1)!(n-k)!} + \frac{(n-1)!}{k!(n-1-k)!} = \frac{(n-1)!\,[k + (n-k)]}{k!\,(n-k)!} = \frac{n!}{k!\,(n-k)!}. Example: (52)=(41)+(42)=4+6=10\binom52 = \binom41 + \binom42 = 4 + 6 = 10.

Pascal's (Tartaglia's) triangle: by Stifel each entry is the sum of the two above it; edges are 11; each row is symmetric.

nn row
0 1
1 1 1
2 1 2 1
3 1 3 3 1
4 1 4 6 4 1
5 1 5 10 10 5 1
6 1 6 15 20 15 6 1

The sum of row nn is 2n2^n: the total number of subsets of an nn-element set (this ties with the power set in Sets and Set OperationsWays of describing a set, subsets and equality, the power set, finite and infinite sets, union, intersection, difference, complement, De Morgan laws and the Cartesian product.Sets and Set Operations →).

Newton's binomial theorem

Theorem. For a,b∈Ra, b \in \mathbb{R} (with a+b≠0a + b \ne 0, or with the convention 00=10^0 = 1) and n∈Nn \in \mathbb{N}: (a+b)n=∑k=0n(nk)ak bn−k.(a + b)^n = \sum_{k=0}^{n} \binom nk a^k\, b^{n-k}.

The sum has n+1n+1 terms; in the kk-th term aa has exponent kk, bb has exponent n−kn - k (the exponents always add up to nn). It generalizes (a+b)2=a2+2ab+b2(a+b)^2 = a^2 + 2ab + b^2 and (a+b)3=a3+3a2b+3ab2+b3(a+b)^3 = a^3 + 3a^2b + 3ab^2 + b^3. Examples: (x+2)3=x3+6x2+12x+8(x+2)^3 = x^3 + 6x^2 + 12x + 8; (a+b)5=b5+5ab4+10a2b3+10a3b2+5a4b+a5(a+b)^5 = b^5 + 5ab^4 + 10a^2b^3 + 10a^3b^2 + 5a^4b + a^5 (coefficients from row 55 of the triangle). Check with a=b=1a = b = 1: 25=32=1+5+10+10+5+12^5 = 32 = 1+5+10+10+5+1.

Why the coefficients are (nk)\binom nk (idea): expanding (a+b)⋯(a+b)(a+b)\cdots(a+b) (nn factors), each term picks aa or bb from each factor; akbn−ka^kb^{n-k} arises when aa is chosen in exactly kk factors, which can be done in (nk)\binom nk ways. The rigorous proof is by induction using Stifel's formula.

With a minus sign: replace bb by −b-b; odd powers of bb change sign: (a−b)3=a3−3a2b+3ab2−b3(a-b)^3 = a^3 - 3a^2b + 3ab^2 - b^3.

Consequences.

  • a=b=1a = b = 1: ∑k=0n(nk)=2n\sum_{k=0}^{n}\binom nk = 2^n.
  • a=x≥0a = x \ge 0, b=1b = 1: (1+x)n=1+nx+(n2)x2+⋯≥1+nx(1+x)^n = 1 + nx + \binom n2 x^2 + \dots \ge 1 + nx (dropped terms are ≥0\ge 0): a case of Bernoulli's inequality, valid more generally for x>−1x > -1 and proved by induction.

Mistakes: (a+b)n=an+bn(a+b)^n = a^n + b^n (false for n≥2n \ge 2: (1+1)2=4≠2(1+1)^2 = 4 \ne 2); miscounting the terms (n+1n+1); forgetting signs in (a−b)n(a-b)^n; 0!=00! = 0; confusing dispositions (order matters) with combinations; in sums, changing the formula but not the limits, counting b−ab - a terms instead of b−a+1b - a + 1, using the geometric formula with q=1q = 1, pulling out of a sum something that depends on the index.

Versione ripasso

Induction. ∀n≥n0:p(n)\forall n \ge n_0 : p(n) holds iff (1) p(n0)p(n_0) true (base) and (2) p(n)⇒p(n+1)p(n) \Rightarrow p(n+1) for all n≥n0n \ge n_0 (inductive step: assume p(n)p(n), the inductive hypothesis, and prove p(n+1)p(n+1) using it). Proof of sufficiency by contradiction: a first false nˉ>n0\bar n > n_0 would force p(nˉ−1),…,p(n0)p(\bar n - 1), \dots, p(n_0) false.

  • Example: 1+⋯+n=n(n+1)21 + \dots + n = \frac{n(n+1)}2. Base n=1n = 1: 1=11 = 1. Step: n(n+1)2+(n+1)=(n+1)(n+2)2\frac{n(n+1)}2 + (n+1) = \frac{(n+1)(n+2)}2.
  • Mistakes: no base step; using the thesis instead of the hypothesis; never using the hypothesis.

Sums. ∑k=n0nxk=xn0+⋯+xn\sum_{k=n_0}^{n} x_k = x_{n_0} + \dots + x_n, with n−n0+1n - n_0 + 1 terms, dummy index.

  • Shift h=k−n0h = k - n_0: ∑k=n0nxk=∑h=0n−n0xh+n0\sum_{k=n_0}^n x_k = \sum_{h=0}^{n-n_0} x_{h+n_0}. Reflection h=n−kh = n - k: ∑h=0n−n0xn−h\sum_{h=0}^{n-n_0} x_{n-h}. Always recompute the limits.
  • Linearity (not for products); additivity ∑1n=∑1m+∑m+1n\sum_1^n = \sum_1^m + \sum_{m+1}^n.
  • ∑k=n0nc=(n−n0+1)c\sum_{k=n_0}^n c = (n-n_0+1)c; ∑k=1nk=n(n+1)2\sum_{k=1}^n k = \frac{n(n+1)}2; for q≠1q \ne 1, ∑k=0nqk=1−qn+11−q\sum_{k=0}^n q^k = \frac{1-q^{n+1}}{1-q} (proof: (1−q)∑qk(1-q)\sum q^k telescopes to 1−qn+11 - q^{n+1}); for q=1q = 1 it is n+1n+1; 00=10^0 = 1.

Factorial. 0!=10! = 1, (n+1)!=(n+1)n!(n+1)! = (n+1)n!, n(n−1)⋯(n−k+1)=n!(n−k)!n(n-1)\cdots(n-k+1) = \frac{n!}{(n-k)!} (kk factors), 2n!≠(2n)!2n! \ne (2n)!.

  • Permutations n!n!; dispositions n!(n−k)!\frac{n!}{(n-k)!}; combinations (nk)=n!k!(n−k)!\binom nk = \frac{n!}{k!(n-k)!} = number of kk-subsets.
  • (n0)=(nn)=1\binom n0 = \binom nn = 1, (n1)=n\binom n1 = n, (nk)=(nn−k)\binom nk = \binom n{n-k}.
  • Stifel: (nk)=(n−1k−1)+(n−1k)\binom nk = \binom{n-1}{k-1} + \binom{n-1}k (subsets with or without a fixed element). Pascal's triangle: rows 11; 1,11,1; 1,2,11,2,1; 1,3,3,11,3,3,1; 1,4,6,4,11,4,6,4,1; 1,5,10,10,5,11,5,10,10,5,1; row sum 2n2^n.

Binomial theorem. (a+b)n=∑k=0n(nk)akbn−k(a+b)^n = \sum_{k=0}^n \binom nk a^k b^{n-k}: n+1n+1 terms, exponents add to nn.

  • (a+b)5=b5+5ab4+10a2b3+10a3b2+5a4b+a5(a+b)^5 = b^5 + 5ab^4 + 10a^2b^3 + 10a^3b^2 + 5a^4b + a^5. (a−b)3=a3−3a2b+3ab2−b3(a-b)^3 = a^3 - 3a^2b + 3ab^2 - b^3.
  • a=b=1a = b = 1: ∑(nk)=2n\sum \binom nk = 2^n. x≥0x \ge 0: (1+x)n≥1+nx(1+x)^n \ge 1 + nx (Bernoulli).
  • Mistake: (a+b)n=an+bn(a+b)^n = a^n + b^n.

Teoria collegata