Skip to Content

Induction ​

Exercise 3 ​

Exercise

Prove the Generalized De Morgan's Laws, that is, ∀n∈N\forall n \in \mathbb{N},

¬(⋀i=1npi)≡⋁i=1n¬pi\neg \left(\bigwedge\limits_{i=1}^n p_i\right) \equiv \bigvee\limits_{i=1}^n \neg p_i

and

¬(⋁i=1npi)≡⋀i=1n¬pi\neg \left(\bigvee\limits_{i=1}^n p_i\right) \equiv \bigwedge\limits_{i=1}^n \neg p_i

Proof

Note that the cases n=0n=0 and n=1n=1 are straightforward. The case n=2n=2 we know it as (normal) De Morgan's Laws. Let's assume the propositions are true{\color{green}\textbf{true}​} for k≥2k\ge 2, and we need to prove them for k+1k+1

¬(⋀i=1k+1pi)≡¬((⋀i=1kpi)∧pk+1)≡(¬(⋀i=1kpi)∨¬pk+1)(De Morgan’s Law)≡((⋁i=1k¬pi)∨¬pk+1)(Inductive Hypothesis)≡(⋁i=1k+1¬pi)\begin{align*} \neg \left(\bigwedge\limits_{i=1}^{k+1} p_i\right) &\equiv \neg \left(\left(\bigwedge\limits_{i=1}^{k} p_i\right) \land p_{k+1}\right) & \\ & \equiv \left(\neg \left(\bigwedge\limits_{i=1}^{k} p_i\right) \lor \neg p_{k+1}\right) & \text{(De Morgan's Law)} \\ & \equiv \left(\left(\bigvee\limits_{i=1}^{k} \neg p_i\right) \lor \neg p_{k+1}\right) & \text{(Inductive Hypothesis)} \\ & \equiv \left(\bigvee\limits_{i=1}^{k+1} \neg p_i\right) \end{align*}

And analogously,

¬(⋁i=1k+1pi)≡¬((⋁i=1kpi)∨pk+1)≡(¬(⋁i=1kpi)∧¬pk+1)(De Morgan’s Law)≡((⋀i=1k¬pi)∧¬pk+1)(Inductive Hypothesis)≡(⋀i=1k+1¬pi)\begin{align*} \neg \left(\bigvee\limits_{i=1}^{k+1} p_i\right) &\equiv \neg \left(\left(\bigvee\limits_{i=1}^{k} p_i\right) \lor p_{k+1}\right) & \\ & \equiv \left(\neg \left(\bigvee\limits_{i=1}^{k} p_i\right) \land \neg p_{k+1}\right) & \text{(De Morgan's Law)} \\ & \equiv \left(\left(\bigwedge\limits_{i=1}^{k} \neg p_i\right) \land \neg p_{k+1}\right) & \text{(Inductive Hypothesis)} \\ & \equiv \left(\bigwedge\limits_{i=1}^{k+1} \neg p_i\right) \end{align*}

Exercise 4.b ​

Exercise

Let P(n)P(n) be the statement that n!<nnn! < n^n. This is a guided exercise to prove ∀n∈N2\forall n \in \mathbb{N}_2

  1. What is P(2)P(2)?
  2. Prove P(2)P(2)
  3. What is the inductive hypothesis?
  4. What do you need to prove in the inductive step?
  5. Complete the inductive step
  6. Explain why these steps show that this inequality is true,∀n∈N2{\color{green}\textbf{true}​}, \forall n \in \mathbb{N}_2

Answer

  1. P(2)P(2) is the proposition 2!<222! < 2^2, it corresponds to the basis step
  2. P(2)P(2) is true{\color{green}\textbf{true}​} since 2!=1⋅2<2⋅2=222! = 1\cdot 2 < 2 \cdot 2 = 2^2
  3. The inductive hypothesis is P(k)≡k!<kkP(k) \equiv k! < k^k
  4. In the inductive step one needs to prove that ∀k∈N2,k!<kk⇒(k+1)!<(k+1)k+1\forall k \in \mathbb{N}_2, k! < k^k \Rightarrow (k+1)! < (k+1)^{k+1}
  5. Let k∈N2k \in \mathbb{N}_2 and assume k!<kkk! < k^k, then we compute

(k+1)!=k!⋅(k+1)<kk⋅(k+1)(Inductive Hypothesis)<(k+1)k⋅(k+1)=(k+1)k+1\begin{align*} (k+1)! &= k! \cdot (k+1) & \\ & < k^k \cdot (k+1) & \text{(Inductive Hypothesis)} \\ & < (k+1)^k \cdot (k+1) & \\ & = (k+1)^{k+1} \end{align*}

  1. Because we have proven the basis step and inductive step of a proof by induction 😊

Exercise 5.a ​

Exercise

Consider the following proposition: ∀n∈N,5n=0\forall n \in \mathbb{N}, 5n = 0

What is wrong with this “proof” by strong induction?

  • Basis Step: 5⋅0=05 \cdot 0 = 0
  • Inductive Step: Assume 5i=0,∀i∈N,i≤k5i = 0, \forall i \in \mathbb{N}, i \le k. Write k+1=i′+i′′k +1= i' +i'', where i′i' and i′′i'' are natural numbers less than k+1k+1. By the inductive hypothesis, 5(k+1)=5(i′+i′′)=5i′+5i′′=0+0=05(k +1)= 5(i' +i'')= 5i' +5i''= 0 +0= 0

Answer

The basis step is valid. However, the inductive step only works when k+1k+1 can be written as i′+i′′i'+i'' where both i′i' and i′′i'' are natural numbers less than k+1k+1. This is not possible when k=0k=0 (i.e., it is not possible to write 11 as the sum of two natural numbers less than 11)

Exercise 3.a ​

Exercise

Let a1,a2,…,ana_1, a_2, \ldots, a_n be positive real numbers. The arithmetic mean of these numbers is

A=∑i=1nainA = \frac{\sum_{i=1}^{n}a_i}{n}

and the geometric mean of these numbers is

G=(∏i=1nai)1/nG= \left(\prod_{i=1}^n a_i\right)^{1/n}

Prove that A≥G,∀n∈N2A \ge G, \forall n \in \mathbb{N}_2

Proof

We prove this by Cauchy Induction, that is,

  1. Prove P(2)P(2): Suppose, for the sake of contradiction that a1+a22<a1a2\frac{a_1+a_2}{2} < \sqrt{a_1a_2}. Squaring, multiplying by 44 and subtracting by 4a1a24a_1a_2, we obtain (a1+a2)2−4a1a2<0(a_1+a_2)^2 - 4a_1a_2 < 0. Expanding the square we obtain a12−2a1a2+a22<0a_1^2 - 2a_1a_2 + a_2^2 < 0. Finally, factoring the square we get (a1−a2)2<0(a_1-a_2)^2 < 0. This is a contradiction since the square of any real number (in this case a1−a2a_1 - a_2) is non-negative
  2. Prove ∀k∈N2,P(k)⇒P(2k)\forall k \in \mathbb{N}_2, P(k) \Rightarrow P(2k): Let k∈N2k \in \mathbb{N}_2, then we need to prove that

∑i=12kai2k≥(∏i=12kai)1/(2k) \frac{\sum_{i=1}^{2k}a_i}{2k} \ge \left(\prod_{i=1}^{2k} a_i\right)^{1/(2k)}

We start by separating the sum

∑i=12kai2k=∑i=1kaik+∑i=k+12kaik2≥(∏i=1kai)1/k+(∏i=k+12kai)1/k2(ind. hyp. x2)≥(∏i=1kai)1/k(∏i=k+12kai)1/k(P(2))=(∏i=12kai)1/(2k)\begin{align*} \frac{\sum_{i=1}^{2k}a_i}{2k} &= \frac{\frac{\sum_{i=1}^{k}a_i}{k} + \frac{\sum_{i=k+1}^{2k}a_i}{k}​}{2} & \\ \\ & \ge \frac{\left(\prod_{i=1}^{k} a_i\right)^{1/k} + \left(\prod_{i=k+1}^{2k} a_i\right)^{1/k}​}{2} & \text{(ind. hyp. x2)} \\ \\ &\ge \sqrt{\left(\prod_{i=1}^{k} a_i\right)^{1/k}\left(\prod_{i=k+1}^{2k} a_i\right)^{1/k}​} & \text{($P(2)$)}\\ \\ & = \left(\prod_{i=1}^{2k} a_i\right)^{1/(2k)} \end{align*}

  1. Prove ∀k∈N2,P(k+1)⇒P(k)\forall k \in \mathbb{N}_2, P(k+1) \Rightarrow P(k): Let k∈N2k \in \mathbb{N}_2. Then,

∑i=1kaik=k+1k+1⋅∑i=1kaik=k∑i=1kai+∑i=1kaikk+1=∑i=1kai+∑i=1kaikk+1=∑i=1k+1aik+1(with ak+1=∑i=1kaik)≥(∏i=1k+1ai)1/(k+1)(ind. hyp.)\begin{align*} \frac{\sum_{i=1}^{k}a_i}{k} &= \frac{k+1}{k+1}\cdot\frac{\sum_{i=1}^{k}a_i}{k}\\ \\ &= \frac{\frac{k \sum_{i=1}^{k}a_i + \sum_{i=1}^{k}a_i}{k}​}{k+1}\\ \\ &= \frac{\sum_{i=1}^{k}a_i + \frac{\sum_{i=1}^{k}a_i}{k} }{k+1}\\ \\ &= \frac{\sum_{i=1}^{k+1}a_i}{k+1} & \text{(with $a_{k+1}= \frac{\sum_{i=1}^{k}a_i}{k}$)}\\ \\ & \ge \left(\prod_{i=1}^{k+1} a_i\right)^{1/(k+1)} & \text{(ind. hyp.)} \end{align*}

Rewriting the inequality we obtain

ak+1≥(ak+1⋅∏i=1kai)1/(k+1)a_{k+1} \ge \left(a_{k+1}\cdot\prod_{i=1}^{k} a_i\right)^{1/(k+1)}

Taking the power of k+1k+1 and dividing by ak+1a_{k+1} we obtain

(ak+1)k≥(∏i=1kai) (a_{k+1})^k \ge \left(\prod_{i=1}^{k} a_i\right)

Finally, taking the power of 1/k1/k and rewriting ak+1a_{k+1} we get

∑i=1kaik≥(∏i=1kai)1/k\frac{\sum_{i=1}^{k}a_i}{k} \ge \left(\prod_{i=1}^{k} a_i\right)^{1/k}

Exercise 4.a ​

Exercise

Prove that every positive integer can be written as a sum of distinct powers of two

Proof

By (strong) induction

  • Basis step: 11 can be written as 202^0
  • Inductive step:
    • Case 1: k+1k+1 is even, then (k+1)/2(k+1)/2 is a positive integer and by inductive hypothesis (k+1)/2(k+1)/2 can be written as a sum of distinct powers of two, that is,

    (k+1)/2=2a1+…+2aℓ (k+1)/2 = 2^{a_1} + \ldots + 2^{a_\ell}

    where 0≤a1<…<aℓ0 \le a_1 < \ldots < a_\ell, and therefore

    k+1=2a1+1+…+2aℓ+1k+1 = 2^{a_1+1} + \ldots + 2^{a_\ell+1}

    with 0≤a1+1<…<aℓ+10 \le a_1+1 < \ldots < a_\ell+1
    • Case 2: k+1k+1 is odd, thus kk is even and by inductive hypothesis

    k=2b1+…+2bm k = 2^{b_1} + \ldots + 2^{b_m}

    where 0≤b1<…<bm0 \le b_1 < \ldots < b_m. Moreover, b1>0b_1 > 0, since otherwise kk would be odd (do you see why? 😃), and thus

    k+1=20+2b1+…+2bmk +1 = 2^{0} + 2^{b_1} + \ldots + 2^{b_m}

discrete math by ZULI NUR KHASANAH from the Noun Project. © 2026 Me. Built with VitePress.