Induction and Recursion - Hoang Anh Duc - HUS - VNU

Work 2.

  • (1) Prove the following propositions using mathematical induction
P(n)=13+23+…+n3=(n(n+1)2)2,∀n∈Z+P(n) = 1^3 + 2^3 + \ldots + n^3 = \left(\frac{n(n+1)}{2}\right)^2, \forall n \in \mathbb{Z}^+ \quad
Block
  • Base case: n=1n = 1
LHS=13=1RHS=(1(1+1)2)2=1→P(1)=T\begin{gather*} LHS=1^3=1 \\[10pt] RHS=\left(\frac{1(1+1)}{2} \right)^2=1 \quad \\[10pt] \rightarrow P(1) = \mathbf{T} \end{gather*}
Block
  • Inductive step: Assume P(k)=T,k≥1∣k∈Z+P(k) = \mathbf{T}, k \geq 1 \mid k \in \mathbb{Z}^+
  • That is: 13+23+…+k3=(k(k+1)2)21^3 + 2^3 + \ldots + k^3 = \left(\frac{k(k+1)}{2}\right)^2
  • We need to prove: P(k+1)=T,k≥1∣k∈Z+P(k+1) = \mathbf{T}, k \geq 1 \mid k \in \mathbb{Z}^+
  • Which is: 13+23+…+k3+(k+1)31^3 + 2^3 + \ldots + k^3 + (k+1)^3 =(k(k+1)2)2+(k+1)3= \left(\frac{k(k+1)}{2}\right)^2 + (k+1)^3 (inductive hypothesis)
(k(k+1)2)2+(k+1)3=(k(k+1))24+4(k+1)34=(k(k+1))2+4(k+1)34=(k+1)2(k2+4k+44)=((k+1)(k+2)4)2\begin{align*} &\left(\frac{k(k+1)}{2}\right)^2 + (k+1)^3 \quad \\[5pt] = &\frac{(k(k+1))^2}{4} + \frac{4(k+1)^3}{4} \quad \\[5pt] = &\frac{(k(k+1))^2+4(k+1)^3}{4} \quad \\[5pt] = &(k+1)^2\left(\frac{k^2+4k+4}{4}\right) \quad \\[5pt] = &\left(\frac{(k+1)(k+2)}{4}\right)^2 \end{align*}
Block
  • So P(k+1)=T,k≥1∣k∈Z+P(k+1) = \mathbf{T}, k \geq 1 \mid k \in \mathbb{Z}^+
  • By induction, P(n)=T,∀n∈Z+P(n) = \mathbf{T}, \forall n \in \mathbb{Z}^+
  • (2) Prove the following propositions using mathematical induction
P(n)=12+32+52+…+(2n+1)2=(n+1)(2n+1)(2n+3)3,∀n∈NP(n) = 1^2 + 3^2 + 5^2 + \ldots + (2n+1)^2 = \frac{(n+1)(2n+1)(2n+3)}{3}, \forall n \in \mathbb{N} \quad
Block
  • Base case: n=0n = 0
LHS=(2⋅0+1)2=1RHS=(0+1)(2⋅0+1)(2⋅0+3)3=1⋅1⋅33=1→P(0)=T\begin{align*} LHS&=(2\cdot 0+1)^2=1 \\[10pt] RHS&=\frac{(0+1)(2\cdot 0+1)(2\cdot 0+3)}{3} \quad \\[10pt] &=\frac{1\cdot 1\cdot 3}{3}=1 \quad \\[10pt] &\rightarrow P(0) = \mathbf{T} \end{align*}
Block
  • Inductive step: Assume P(k)=T,k≥0∣k∈NP(k) = \mathbf{T}, k \geq 0 \mid k \in \mathbb{N}
  • That is: 12+32+52+…+(2k+1)21^2 + 3^2 + 5^2 + \ldots + (2k+1)^2 =(k+1)(2k+1)(2k+3)3= \frac{(k+1)(2k+1)(2k+3)}{3}
  • We need to prove: P(k+1)=T,k≥0∣k∈NP(k+1) = \mathbf{T}, k \geq 0 \mid k \in \mathbb{N}
  • Which is:
12+32+52+…+(2k+1)2+(2(k+1)+1)2=(k+1)(2k+1)(2k+3)3+(2(k+1)+1)2(By the inductive hypothesis)\begin{align*} & 1^2 + 3^2 + 5^2 + \ldots + (2k+1)^2 + (2(k+1)+1)^2 \quad \\[8pt] &= \frac{(k+1)(2k+1)(2k+3)}{3} + (2(k+1)+1)^2 \quad \\[8pt] &\text{(By the inductive hypothesis)} \end{align*}
Block
  • We have:
(k+1)(2k+1)(2k+3)3+(2(k+1)+1)2=(k+1)(2k+1)(2k+3)+3(2k+3)23=(2k+3)[(k+1)(2k+1)+3(2k+3)]3=(2k+3)[2k2+3k+1+6k+9]3=(2k+3)[2k2+9k+10]3=(2k+3)[2k2+5k+4k+10]3=(2k+3)(k+2)(2k+5)3\begin{align*} &\frac{(k+1)(2k+1)(2k+3)}{3} + (2(k+1)+1)^2 \quad \\[5pt] = &\frac{(k+1)(2k+1)(2k+3) + 3(2k+3)^2}{3} \quad \\[5pt] = &\frac{(2k+3)\left[(k+1)(2k+1)+3(2k+3)\right]}{3} \quad \\[5pt] = &\frac{(2k+3)\left[2k^2+3k+1+6k+9\right]}{3} \quad \\[5pt] = &\frac{(2k+3)\left[2k^2+9k+10\right]}{3} \quad \\[5pt] = &\frac{(2k+3)\left[2k^2+5k+4k+10\right]}{3} \quad \\[5pt] = &\frac{(2k+3)(k+2)(2k+5)}{3} \quad \\[5pt] \end{align*}
Block
  • So P(k+1)=T,k≥0∣k∈NP(k+1) = \mathbf{T}, k \geq 0 \mid k \in \mathbb{N}
  • By induction, P(n)=T,∀n∈NP(n) = \mathbf{T}, \forall n \in \mathbb{N}
  • (3) Prove the following propositions using mathematical induction
P(n)=3+3⋅5+3⋅52+…+3⋅5n=3(5n+1−1)4,∀n∈NP(n) = 3 + 3 \cdot 5 + 3 \cdot 5^2 + \ldots + 3 \cdot 5^n = \frac{3(5^{n+1}-1)}{4}, \forall n \in \mathbb{N} \quad
Block
  • Base case: n=0n = 0
LHS=3⋅50=3RHS=3(50+1−1)4=3⋅44=3→P(0)=T\begin{align*} LHS&=3\cdot5^0=3 \\[10pt] RHS&=\frac{3(5^{0+1}-1)}{4} \quad \\[10pt] &=\frac{3\cdot 4}{4}=3 \quad \\[10pt] & \rightarrow P(0) = \mathbf{T} \end{align*}
Block
  • Induction step: Assume P(k)=T,k≥0∣k∈NP(k) = \mathbf{T}, k \geq 0 \mid k \in \mathbb{N}
  • That is: 3+3⋅5+3⋅52+…+3⋅5k3 + 3 \cdot 5 + 3 \cdot 5^2 + \ldots + 3 \cdot 5^k =3(5k+1−1)4= \frac{3(5^{k+1}-1)}{4}
  • We need to prove: P(k+1)=T,k≥0∣k∈NP(k+1) = \mathbf{T}, k \geq 0 \mid k \in \mathbb{N}
  • Which is:
3+3⋅5+3⋅52+…+3⋅5k+3⋅5k+1=3(5k+1−1)4+3⋅5k+1 (Inductive hypothesis)\begin{align*} & 3 + 3 \cdot 5 + 3 \cdot 5^2 + \ldots + 3 \cdot 5^k + 3 \cdot 5^{k+1} \quad \\[8pt] &= \frac{3(5^{k+1}-1)}{4} + 3 \cdot 5^{k+1} \text{ (Inductive hypothesis)} \end{align*}
Block
  • We have:
3(5k+1−1)4+3⋅5k+1=3(5k+1−1)+3⋅4⋅5k+14=3⋅5k+1−3+3⋅4⋅5k+14=3⋅5k+1(1+4)−34=3⋅5k+1⋅5−34=3⋅5k+2−34=3(5k+2−1)4\begin{align*} &\frac{3(5^{k+1}-1)}{4} + 3 \cdot 5^{k+1} \quad \\[5pt] = &\frac{3(5^{k+1}-1)+3\cdot 4\cdot 5^{k+1}}{4} \quad \\[5pt] = &\frac{3\cdot 5^{k+1}-3+3\cdot 4\cdot 5^{k+1}}{4} \quad \\[5pt] = &\frac{3\cdot 5^{k+1}(1+4)-3}{4} \quad \\[5pt] = &\frac{3\cdot 5^{k+1}\cdot 5-3}{4} \quad \\[5pt] = &\frac{3\cdot 5^{k+2}-3}{4} \quad \\[5pt] = &\frac{3(5^{k+2}-1)}{4} \quad \\[5pt] \end{align*}
Block
  • So P(k+1)=T,k≥0∣k∈NP(k+1) = \mathbf{T}, k \geq 0 \mid k \in \mathbb{N}
  • By induction, P(n)=T,∀n∈NP(n) = \mathbf{T}, \forall n \in \mathbb{N}

Work 3.

  • (1) Prove the following propositions
Prove: P(n) = 3n<n!,∀n>6∣n∈Z\text{Prove: P(n) = } 3^n < n!, \forall n > 6 \mid n \in \mathbb{Z} \quad
Block
  • Base case: n=7n = 7
  • We have: LHS=37=2187LHS = 3^7 = 2187
  • We have: RHS=7!=5040RHS = 7! = 5040
  • Since: 2187<50402187 < 5040, therefore: P(7)=TP(7) = \mathbf{T}
  • Induction step: Assume P(k)=T,k>6∣k∈ZP(k) = \mathbf{T}, k > 6 \mid k \in \mathbb{Z}
  • That is: 3k<k!3^k < k!
  • We need to prove: P(k+1)=T,k>6∣k∈ZP(k+1) = \mathbf{T}, k > 6 \mid k \in \mathbb{Z}
  • Which is:
3k+1<(k+1)!≡3⋅3k<(k+1)k!≡3k<k+13k!For k>6∣k∈Z:k!<k+13k!From the inductive hypothesis,We know that 3k<k! so:3k<k+13k!,k>6∣k∈Z\begin{align*} & 3^{k+1} < (k+1)! \quad \\[5pt] & \equiv 3 \cdot 3^k < (k+1)k! \quad \\[5pt] & \equiv 3^k < \frac{k+1}{3}k! \quad \\[5pt] & \text{For } k > 6 \mid k \in \mathbb{Z}: \quad \\[5pt] & k! < \frac{k+1}{3}k! \quad \\[5pt] & \text{From the inductive hypothesis,} \quad \\[5pt] & \text{We know that } 3^k < k! \text{ so:} \quad \\[5pt] & 3^k < \frac{k+1}{3}k!, k > 6 \mid k \in \mathbb{Z} \quad \end{align*}
Block
  • Therefore P(k+1)=T,k>6∣k∈ZP(k+1) = \mathbf{T}, k > 6 \mid k \in \mathbb{Z}
  • By induction, P(n)=T,∀n>6∣n∈ZP(n) = \mathbf{T}, \forall n > 6 \mid n \in \mathbb{Z}
  • (2) Prove the following propositions
With what value of positive integer n does:P(n)=2n+3≤2n holds True?Give your reasoning\begin{gather*} \text{With what value of positive integer n does:} \quad \\[6pt] P(n) = 2n + 3 \leq 2^n \text{ holds True?} \quad \\[6pt] \text{Give your reasoning} \end{gather*}
Block
  • For n=1n = 1:
2⋅1+3≤215≤2=F\begin{align} & 2\cdot 1 + 3 \leq 2^1 \quad \\ & 5 \leq 2 = \mathbf{F} \quad \\ \end{align}
Block
  • For n=2n = 2:
2⋅2+3≤227≤4=F\begin{align} & 2\cdot 2 + 3 \leq 2^2 \quad \\ & 7 \leq 4 = \mathbf{F} \quad \\ \end{align}
Block
  • For n=3n = 3:
2⋅3+3≤239≤8=F\begin{align} & 2\cdot 3 + 3 \leq 2^3 \quad \\ & 9 \leq 8 = \mathbf{F} \quad \\ \end{align}
Block
  • For n=4n = 4:
2⋅4+3≤2415≤16=T\begin{align} & 2\cdot 4 + 3 \leq 2^4 \quad \\ & 15 \leq 16 = \mathbf{T} \quad \\ \end{align}
Block
  • We found our base case of n=4n = 4
  • Induction step: Assume P(k)=T,k>3∣n∈ZP(k) = \mathbf{T}, k > 3 \mid n \in \mathbb{Z}
  • That is: 2k+3≤2k2k+3 \leq 2^k
  • We need to prove: P(k+1)=T,k>3∣k∈ZP(k+1) = \mathbf{T}, k > 3 \mid k \in \mathbb{Z}
  • Which is:
2(k+1)+3≤2k+1≡2k+3+2≤2⋅2k≡2k+3≤2⋅2k−2For k>3∣k∈Z:2k<2⋅2k−2From the inductive hypothesis,We know that 2k+3≤2k so:2k+3<2⋅2k−2,k>3∣k∈Z\begin{align*} & 2(k+1)+3 \leq 2^{k+1} \quad \\[5pt] & \equiv 2k+3+2 \leq 2\cdot 2^k \quad \\[5pt] & \equiv 2k+3 \leq 2\cdot 2^k-2 \quad \\[5pt] & \text{For } k > 3 \mid k \in \mathbb{Z}: \quad \\[5pt] & 2^k < 2\cdot 2^k -2 \quad \\[5pt] & \text{From the inductive hypothesis,} \quad \\[5pt] & \text{We know that } 2k+3 \leq 2^k \text{ so:} \quad \\[5pt] & 2k+3 < 2\cdot 2^k-2, k > 3 \mid k \in \mathbb{Z} \quad \end{align*}
Block
  • Therefore P(k+1)=T,k>3∣k∈ZP(k+1) = \mathbf{T}, k > 3 \mid k \in \mathbb{Z}
  • By induction, P(n)=T,∀n>3∣n∈ZP(n) = \mathbf{T}, \forall n > 3 \mid n \in \mathbb{Z}
  • Therefore, the smallest value of positive integer nn for which P(n)=TP(n) = \mathbf{T} is n=4n = 4
  • (3) Prove the following propositions
Prove that P(n) = n3+2n ⋮ 3,∀n∈Z+\text{Prove that P(n) = } n^3 + 2n \space \vdots \space 3, \forall n \in \mathbb{Z}^+ \quad
Block
  • Base case: n=1n = 1
  • We have: 13+2⋅1=3 ⋮ 31^3 + 2 \cdot 1 = 3 \space \vdots \space 3
  • Therefore: P(1)=TP(1) = \mathbf{T}
  • Induction step: Assume P(k)=T,k≥1∣k∈Z+P(k) = \mathbf{T}, k \geq 1 \mid k \in \mathbb{Z}^+
  • That is: k3+2k ⋮ 3k^3 + 2k \space \vdots \space 3
  • We need to prove: P(k+1)=T,k≥1∣k∈Z+P(k+1) = \mathbf{T}, k \geq 1 \mid k \in \mathbb{Z}^+
  • Which is:
(k+1)3+2(k+1)=k3+3k2+3k+2k+3=(k3+2k)+(3k2+3k+3)(3k2+3k+3) trivially ⋮ 3We know that k3+2k ⋮ 3 so:(k3+2k)+(3k2+3k+3) ⋮ 3,k≥1∣k∈Z+Therefore (k+1)3+2(k+1) ⋮ 3,k≥1∣k∈Z+\begin{align*} & (k+1)^3+2(k+1)\quad \\[5pt] & = k^3+3k^2+3k+2k+3 \quad\\[5pt] & = (k^3+2k)+(3k^2+3k+3) \quad\\[5pt] & (3k^2+3k+3) \text{ trivially } \vdots \space 3 \quad \\[5pt] & \text{We know that } k^3 + 2k \space \vdots \space 3 \text{ so:} \quad \\[5pt] & (k^3+2k)+(3k^2+3k+3) \space \vdots \space 3, k \geq 1 \mid k \in \mathbb{Z}^+ \quad \\[5pt] & \text{Therefore } (k+1)^3+2(k+1) \space \vdots \space 3, k \geq 1 \mid k \in \mathbb{Z}^+ \end{align*}
Block
  • Therefore P(k+1)=T,k≥1∣k∈Z+P(k+1) = \mathbf{T}, k \geq 1 \mid k \in \mathbb{Z}^+
  • By induction, P(n)=T,∀n∈Z+P(n) = \mathbf{T}, \forall n \in \mathbb{Z}^+

Work 4.

  • Prove the following proposition using mathematical induction:
P(n)=∑i=0n2i=2n+1−1,∀n≥0∣n∈ZP(n) = \sum_{i=0}^{n} 2^i = 2^{n+1} - 1 , \forall n \geq 0 \mid n \in \mathbb{Z} \quad
Block
  • Base case: n=0n = 0
∑i=002i=20=1=20+1−1=RHS\sum_{i=0}^{0} 2^i = 2^0 = 1 = 2^{0+1} - 1 = RHS \quad
Block
  • Therefore: P(0)=TP(0) = \mathbf{T}
  • Induction step: Assume P(k)=T,k∈Z+P(k) = \mathbf{T}, k \in \mathbb{Z}^+
∑i=0k2i=2k+1−1\sum_{i=0}^{k} 2^i = 2^{k+1} - 1 \quad
Block
  • We need to prove: P(k+1)=T,k∈Z+P(k+1) = \mathbf{T}, k \in \mathbb{Z}^+
∑i=0k+12i=2(k+1)+1−1=2k+2−1From the inductive hypothesis, we have:∑i=0k+12i=(∑i=0k2i)+2k+1∑i=0k+12i=(2k+1−1)+2k+1∑i=0k+12i=2⋅2k+1−1∑i=0k+12i=2k+2−1\begin{align} \sum_{i=0}^{k+1} 2^i &= 2^{(k+1)+1} - 1 = 2^{k+2}-1 \quad \\[8pt] \text{From the } &\text{inductive hypothesis, we have:} \quad \\[6pt] \sum_{i=0}^{k+1} 2^i &= \left(\sum_{i=0}^{k} 2^i\right) + 2^{k+1} \quad \\[8pt] \sum_{i=0}^{k+1} 2^i &= (2^{k+1}-1) + 2^{k+1} \quad \\[8pt] \sum_{i=0}^{k+1} 2^i &= 2\cdot 2^{k+1}-1 \quad \\[8pt] \sum_{i=0}^{k+1} 2^i &= 2^{k+2}-1 \end{align}
Block
  • Therefore P(k+1)=T,k∈Z+P(k+1) = \mathbf{T}, k \in \mathbb{Z}^+
  • By induction, P(n)=T,∀n∈Z+P(n) = \mathbf{T}, \forall n \in \mathbb{Z}^+

Work 5.

  • Prove the following proposition using mathematical induction:
P(n)=2n≥n2,∀n≥4∣n∈ZP(n) = 2^n \geq n^2 , \forall n \geq 4 \mid n \in \mathbb{Z} \quad
Block
  • Base case: n=4n = 4
  • We have: 24=16≥16=422^4 = 16 \geq 16 = 4^2
  • Therefore: P(4)=TP(4) = \mathbf{T}
  • Induction step: Assume P(k)=T,k≥4∣n∈ZP(k) = \mathbf{T}, k \geq 4 \mid n \in \mathbb{Z}
  • That is: 2k≥k22^k \geq k^2
  • We need to prove: P(k+1)=T,k≥4∣n∈ZP(k+1) = \mathbf{T}, k \geq 4 \mid n \in \mathbb{Z}
  • Which is:
2k+1≥(k+1)2≡2⋅2k≥k2+2k+1≡2k≥12k2+k+12For k≥4∣k∈Z:k2≥k22+k+12≡k2+2k+1≥0Which is True because RHS is an increasingquadratic with global minima 0From the inductive hypothesis,We know that 2k≥k2 so:2k≥12k2+k+12,∀k≥4∣k∈Z\begin{align*} & 2^{k+1} \geq (k+1)^2 \quad \\[5pt] & \equiv 2 \cdot 2^k \geq k^2+2k+1 \\[5pt] & \equiv 2^k \geq \frac{1}{2}k^2 + k + \frac{1}{2} \quad \\[5pt] & \text{For } k \geq 4 \mid k \in \mathbb{Z}: \quad \\[8pt] & k^2 \geq \frac{k^2}{2} + k + \frac{1}{2} \quad \\[8pt] & \equiv k^2 + 2k + 1 \geq 0 \quad \\[5pt] & \text{Which is True because RHS is an increasing} \quad \\[2pt] & \text{quadratic with global minima 0} \quad \\[5pt] & \text{From the inductive hypothesis,} \quad \\[5pt] & \text{We know that } 2^k \geq k^2 \text{ so:} \quad \\ & 2^k \geq \frac{1}{2}k^2 + k + \frac{1}{2}, \forall k \geq 4 \mid k \in \mathbb{Z} \quad \end{align*}
Block

Work 5. Graph

$$ k^2 + 2k + 1 $$
  • Therefore P(k+1)=T,k≥4∣k∈ZP(k+1) = \mathbf{T}, k \geq 4 \mid k \in \mathbb{Z}
  • By induction, P(n)=T,∀n≥4∣n∈ZP(n) = \mathbf{T}, \forall n \geq 4 \mid n \in \mathbb{Z}

Work 7.

  • Prove the following proposition:
For all n≥2∣n∈ZThe sets A1,A2,…,An satisfies:A1∩A2∩…∩An‾=A1‾∪A2‾∪…∪An‾\begin{gather*} \text{For all } n \geq 2 \mid n \in \mathbb{Z} \quad \\ \text{The sets } A_1,A_2,\ldots,A_n \text{ satisfies:} \quad \\ \overline{A_1 \cap A_2 \cap \ldots \cap A_n} = \overline{A_1} \cup \overline{A_2} \cup \ldots \cup \overline{A_n} \quad \end{gather*}
Block
  • First we define the proposition above as P(n).
  • We will use De Morgan’s Laws and Induction:
De Morgan’s LawsA∩B‾=A‾∪B‾A∪B‾=A‾∩B‾\begin{gather} \text{De Morgan's Laws} \quad \\[8pt] \overline{A \cap B} = \overline{A} \cup \overline{B} \quad \\[5pt] \overline{A \cup B} = \overline{A} \cap \overline{B} \quad \end{gather}
Block
  • Base case: n=2∣A1∩A2‾n = 2 \mid \overline{A_1 \cap A_2} =A1‾∪A2‾= \overline{A_1} \cup \overline{A_2}
  • By De Morgan’s Law: P(n)=TP(n) = \mathbf{T}
  • Induction step: Assume P(k)=T,k≥2∣k∈ZP(k) = \mathbf{T}, k \geq 2 \mid k \in \mathbb{Z}
  • That is A1∩A2∩…∩Ak‾\overline{A_1 \cap A_2 \cap \ldots \cap A_k} =A1‾∪A2‾∪…∪Ak‾= \overline{A_1} \cup \overline{A_2} \cup \ldots \cup \overline{A_k}
  • We need to prove: P(k+1)=T,k≥2∣k∈ZP(k+1) = \mathbf{T}, k \geq 2 \mid k \in \mathbb{Z}
  • Which is: A1∩A2∩…∩Ak+1‾\overline{A_1 \cap A_2 \cap \ldots \cap A_{k+1}} =A1‾∪A2‾∪…∪Ak‾∪Ak+1‾= \overline{A_1} \cup \overline{A_2} \cup \ldots \cup \overline{A_k} \cup \overline{A_{k+1}}
  • Consider: A1∩A2∩…∩Ak+1A_1 \cap A_2 \cap \ldots \cap A_{k+1} =(A1∩A2∩…∩Ak)∩Ak+1= (A_1 \cap A_2 \cap \ldots \cap A_k) \cap A_{k+1}
With A1∩A2∩…∩Ak+1=(A1∩A2∩…∩Ak)∩Ak+1Take the complement of RHS, by De Morgan’s Law:(A1∩A2∩…∩Ak)∩Ak+1‾=(A1∩A2∩…∩Ak)‾∪Ak+1‾From the inductive hypothesis:(A1∩A2∩…∩Ak)‾∪Ak+1‾=A1‾∪A2‾∪…∪Ak‾∪Ak+1‾\begin{align} & \text{With } A_1 \cap A_2 \cap \ldots \cap A_{k+1} = (A_1 \cap A_2 \cap \ldots \cap A_k) \cap A_{k+1} \quad \\[5pt] & \text{Take the complement of RHS, by De Morgan's Law:} \quad \\[5pt] & \overline{(A_1 \cap A_2 \cap \ldots \cap A_k) \cap A_{k+1}} = \overline{(A_1 \cap A_2 \cap \ldots \cap A_k)} \cup \overline{A_{k+1}} \quad \\[5pt] & \text{From the inductive hypothesis:} \quad \\[5pt] & \overline{(A_1 \cap A_2 \cap \ldots \cap A_k)} \cup \overline{A_{k+1}} = \overline{A_1} \cup \overline{A_2} \cup \ldots \cup \overline{A_k} \cup \overline{A_{k+1}} \quad \\[5pt] \end{align}
Block
  • Therefore P(k+1)=T,k≥2∣k∈ZP(k+1) = \mathbf{T}, k \geq 2 \mid k \in \mathbb{Z}
  • By induction, P(n)=T,∀n≥2∣n∈ZP(n) = \mathbf{T}, \forall n \geq 2 \mid n \in \mathbb{Z}

Work 9.

  • Prove the followings:
With sets A1,A2,…,An and B,n≥2∣n∈ZProve the following propositions:(a) (A1∩A2∩…∩An)∪B=(A1∪B)∩(A2∪B)∩…∩(An∪B)(b) (A1∪A2∪…∪An)∩B=(A1∩B)∪(A2∩B)∪…∪(An∩B)(c) (A1−B)∩(A2−B)∩…∩(An−B)=(A1∩A2∩…∩An)−B(d) (A1−B)∪(A2−B)∪…∪(An−B)=(A1∪A2∪…∪An)−B\begin{align} & \text{With sets } A_1,A_2,\ldots,A_n \text{ and } B, n \geq 2 \mid n \in \mathbb{Z} \quad \\[5pt] & \text{Prove the following propositions:} \quad \\[8pt] & (a) \space (A_1 \cap A_2 \cap \ldots \cap A_n) \cup B = (A_1 \cup B) \cap (A_2 \cup B) \cap \ldots \cap (A_n \cup B) \quad \\[5pt] & (b) \space (A_1 \cup A_2 \cup \ldots \cup A_n) \cap B = (A_1 \cap B) \cup (A_2 \cap B) \cup \ldots \cup (A_n \cap B) \quad \\[5pt] & (c) \space (A_1 - B) \cap (A_2 - B) \cap \ldots \cap (A_n - B) = (A_1 \cap A_2 \cap \ldots \cap A_n) - B \quad \\[5pt] & (d) \space (A_1 - B) \cup (A_2 - B) \cup \ldots \cup (A_n - B) = (A_1 \cup A_2 \cup \ldots \cup A_n) - B \quad \\[5pt] \end{align}
Block
  • (a) and (b): Similar to Work 7. using Distributive Laws and Induction.
  • (c) is similar to (d), so I will demonstrate with (c).
(c) (A1−B)∩(A2−B)∩…∩(An−B)=(A1∩A2∩…∩An)−B ,n≥2∣n∈Z(c) \space (A_1 - B) \cap (A_2 - B) \cap \ldots \cap (A_n - B) = (A_1 \cap A_2 \cap \ldots \cap A_n) - B \space , n \geq 2 \mid n \in \mathbb{Z} \quad
Block
  • First we define the proposition above as P(n).
  • Base case: n=2∣(A1−B)∩(A2−B)n = 2 \mid (A_1 - B) \cap (A_2 - B) =(A1∩A2)−B= (A_1 \cap A_2) - B. Proof:
Let x ∈(A1−B)∩(A2−B)→(x∈A1−B)∧(x∈A2−B)→(x∈A1)∧(x∈A2)∧(x∉B)→x∈A1∩A2(x∉B)→x∈(A1∩A2)−BTherefore (A1−B)∩(A2−B)⊆(A1∩A2)−BLet x ∈(A1−B)∩(A2−B)→(x∈A1∩A2)∧(x∉B)→(x∈A1)∧(x∈A2)(x∉B)→(x∈A1−B)∧(x∈A2−B)→x∈(A1−B)∩(A2−B)Therefore (A1∩A2)−B⊆(A1−B)∩(A2−B)\begin{align} & \text{Let x } \in (A_1 - B) \cap (A_2 - B) \quad \\[5pt] & \rightarrow (x \in A_1 - B) \wedge (x \in A_2 - B) \quad \\[5pt] & \rightarrow (x \in A_1) \wedge (x \in A_2) \wedge (x \notin B) \quad \\[5pt] & \rightarrow x \in A_1 \cap A_2 \quad \\[5pt] & (x \notin B) \rightarrow x \in (A_1 \cap A_2) - B \quad \\[10pt] & \text{Therefore } (A_1 - B) \cap (A_2 - B) \subseteq (A_1 \cap A_2) - B \quad \\[30pt] & \text{Let x } \in (A_1 - B) \cap (A_2 - B) \quad \\[5pt] & \rightarrow (x \in A_1 \cap A_2) \wedge (x \notin B) \quad \\[5pt] & \rightarrow (x \in A_1) \wedge (x \in A_2) \quad \\[5pt] & (x \notin B) \rightarrow (x \in A_1 - B) \wedge (x \in A_2 - B) \quad \\[5pt] & \rightarrow x \in (A_1 - B) \cap (A_2 - B) \quad \\[10pt] & \text{Therefore } (A_1 \cap A_2) - B \subseteq (A_1 - B) \cap (A_2 - B) \end{align}
Block
  • Induction step: Assume P(k)=T,k≥2∣k∈ZP(k) = \mathbf{T}, k \geq 2 \mid k \in \mathbb{Z}
  • That is (A1−B)∩(A2−B)∩(A_1 - B) \cap (A_2 - B) \cap …∩(Ak−B)\ldots \cap (A_k - B) =(A1∩A2∩…∩Ak)−B= (A_1 \cap A_2 \cap \ldots \cap A_k) - B
  • We need to prove: P(k+1)=T,k≥2∣k∈ZP(k+1) = \mathbf{T}, k \geq 2 \mid k \in \mathbb{Z}
  • Which is:
(A1−B)∩(A2−B)∩…∩(Ak−B)∩(Ak+1−B)From the inductive hypothesis,=((A1∩A2∩…∩Ak)−B)∩(Ak+1−B)=(A1∩A2∩…∩Ak∩Ak+1)−B\begin{align} & (A_1 - B) \cap (A_2 - B) \cap \ldots \cap (A_k - B) \cap (A_{k+1} - B) \quad \\[5pt] & \text{From the inductive hypothesis,} \quad \\[5pt] & = ((A_1 \cap A_2 \cap \ldots \cap A_k) - B) \cap (A_{k+1} - B) \quad \\[5pt] & = (A_1 \cap A_2 \cap \ldots \cap A_k \cap A_{k+1}) - B \quad \\[5pt] \end{align}
Block
  • Therefore P(k+1)=T,k≥2∣k∈ZP(k+1) = \mathbf{T}, k \geq 2 \mid k \in \mathbb{Z}
  • By induction, P(n)=T,∀n≥2∣n∈ZP(n) = \mathbf{T}, \forall n \geq 2 \mid n \in \mathbb{Z}

Work 11.

  • Prove the following using mathematical induction:
Define p1,…,pn as logical proposition and n≥2∣n∈Z prove:¬(p1∨p2∨…∨pn)=¬p1∧¬p2∧…∧¬pn\begin{gather} \text{Define } p_1,\ldots ,p_n \text{ as logical proposition and } n \geq 2 \mid n \in \mathbb{Z} \text{ prove:} \quad \\[5pt] \neg(p_1 \vee p_2 \vee \ldots \vee p_n) = \neg p_1 \wedge \neg p_2 \wedge \ldots \wedge \neg p_n \quad \end{gather}
Block
  • This is similar to Work 7.
  • ¬pk\neg p_k is essentially Ak‾\overline{A_k}
  • ∪,∩\cup, \cap are essentially ∨,∧\vee, \wedge
  • We can solve this problem using De Morgan’s Laws and Induction.

Work 13.

  • Prove the followings:
Define P(n)=∃ a,b∈Z∣n=3a+5bThis problem demonstrate Strong Induction by provingP(n) when n≥8 , follow these steps:(1) Prove for P(8),P(9),P(10) to from the base case(2) Find the inductive hypothesis(3) Formulate the induction step(4) Complete the inductive process with n≥10\begin{align} & \text{Define } P(n) = \exists \space a, b \in \mathbb{Z} \mid n = 3a + 5b \quad \\[5pt] & \text{This problem demonstrate Strong Induction by proving} \quad \\[5pt] & \text{P(n) when } n \geq 8 \text{ , follow these steps:} \quad \\[8pt] & (1) \text{ Prove for } P(8), P(9), P(10) \text{ to from the base case} \quad \\[5pt] & (2) \text{ Find the inductive hypothesis}\quad \\[5pt] & (3) \text{ Formulate the induction step}\quad \\[5pt] & (4) \text{ Complete the inductive process with } n \geq 10 \end{align}
Block
(1) Base cases:P(8)=3(1)+5(1)=TP(9)=3(3)+5(0)=TP(10)=3(0)+5(2)=T\begin{align} & \text{(1) Base cases:} \quad \\[15pt] & P(8) = 3(1) + 5(1) = \mathbf{T} \quad \\[5pt] & P(9) = 3(3) + 5(0) = \mathbf{T} \quad \\[5pt] & P(10) = 3(0) + 5(2) = \mathbf{T} \quad \\[5pt] \end{align}
Block
(2) Inductive hypothesis:Assume P(k)=T,∀k∣8≤k≤n, for some n≥10→∀k∣8≤k≤n,∃a,b∈Z∣k=3a+5b\begin{align} & \text{(2) Inductive hypothesis:} \quad \\[15pt] & \text{Assume } P(k) = \mathbf{T}, \forall k \mid 8 \leq k \leq n, \text{ for some } n \geq 10 \quad \\[5pt] & \rightarrow \forall k \mid 8 \leq k \leq n, \exists a,b \in \mathbb{Z} \mid k=3a+5b \quad \\[5pt] \end{align}
Block
(3) Induction step:We need to prove: P(k+1)=T,∀k∣8≤k≤n, for some n≥10Consider n+1For some n+1≥11∣n+1=(n−2)+3Since n≥10→n−2≥8By the inductive hypothesis: P(n−2)=T→n−2=3a+5b,a,b∈ZThen: n+1=(n−2)+3=3a+5b+3=3(a+1)+5→n+1=3a′+5b′,a′,b′∈Z∣a′=a+1,b′=b→P(n+1)=T\begin{align} & \text{(3) Induction step:} \quad \\[15pt] & \text{We need to prove: } P(k+1) = \mathbf{T}, \forall k \mid 8 \leq k \leq n, \text{ for some } n \geq 10 \quad \\[5pt] & \text{Consider } n+1 \quad \\[5pt] & \text{For some } n+1 \geq 11 \mid n + 1 = (n - 2) + 3 \quad \\[5pt] & \text{Since } n \geq 10 \rightarrow n - 2 \geq 8 \quad \\[5pt] & \text{By the inductive hypothesis: } P(n-2) = \mathbf{T} \rightarrow n-2 = 3a+5b, a,b \in \mathbb{Z} \quad \\[5pt] & \text{Then: } n + 1 = (n - 2) + 3 = 3a +5b + 3 = 3(a+1) + 5 \quad \\[5pt] & \rightarrow n + 1 = 3a'+5b',a',b'\in \mathbb{Z} \mid a'=a+1,b'=b \quad \\[5pt] & \rightarrow P(n+1) = \mathbf{T} \end{align}
Block
(4) Conclude inductive process:We’ve shown: P(k)=T,∀k∣8≤k≤n, for some n≥10And also: P(n+1)=T,∀k∣8≤k≤n, for some n≥10By the principal of Strong Induction P(n)=T,∀n≥8∣n∈Z\begin{align} & \text{(4) Conclude inductive process:} \quad \\[15pt] & \text{We've shown: } P(k) = \mathbf{T}, \forall k \mid 8 \leq k \leq n, \text{ for some } n \geq 10 \quad \\[5pt] & \text{And also: } P(n+1) = \mathbf{T}, \forall k \mid 8 \leq k \leq n, \text{ for some } n \geq 10 \quad \\[5pt] & \text{By the principal of Strong Induction } P(n) = \mathbf{T}, \forall n \geq 8 \mid n \in \mathbb{Z} \end{align}
Block

Work 17.

  • Prove the followings:
Given s∈S and t∈S as sets of positive integersProve that S is defined by 1∈S and s+t∈S(Hint: Prove that S⊆Z+ and Z+⊆S)\begin{align} & \text{Given } s \in S \text{ and } t \in S \text{ as sets of positive integers} \quad \\[5pt] & \text{Prove that S is defined by } 1 \in S \text{ and } s+t \in S \\[5pt] & (\text{Hint: Prove that } S \subseteq \mathbb{Z}^+ \text{ and } \mathbb{Z}^+ \subseteq S ) \end{align}
Block
  • First we define the proposition above as P(n).
  • Since 1∈S→S⊆Z+1 \in S \rightarrow S \subseteq \mathbb{Z}^+ (*)
  • We need to prove: Z+⊆S\mathbb{Z}^+ \subseteq S
  • Base case: n=1∣P(1)n = 1 \mid P(1) =T (Proven above in (*))= \mathbf{T} \text{ (Proven above in (*))}
  • Inductive step: Assume k∈S,kk \in S, k ≤n∣k,n∈Z+\leq n \mid k,n \in \mathbb{Z}^+
  • We need to prove: n+1∈Sn + 1 \in S
  • We have (n∈S)∧(1∈S)→n+1∈S(n \in S) \wedge (1 \in S) \rightarrow n+1 \in S
  • By induction, Z+⊆S\mathbb{Z}^+ \subseteq S
  • Since S⊆Z+S \subseteq \mathbb{Z}^+ and Z+⊆S\mathbb{Z}^+ \subseteq S
  • We conclude S=Z+S = \mathbb{Z}^+