Docsity

Assignment 9 for Constructing Proofs | CS 1050, Assignments of Computer Science

Toggle sidebar
bg1
4.2
4. a) P(2): (i=1)∑2-1 i(i+1) = 2(2-1)(2+1)/3 = 2 is true
b) P(k): (i=1)∑k-1 i(i+1) = k(k-1)(k+1)/3
c) P(k+1): (i=1)∑k i(i+1) = (k+1)(k+1-1)(k+1+1)/3 = k(k+1)(k+2)/3
d) We must show that P(k+1) is true based on the assumption that P(k) is true.
11.
Proof:
Base case:
We show that 1/(1*2) = 1/(1+1) = ½
Inductive step:
Assume that n>=1 and
1/(1*2) + 1/(2*3) + … + 1/(n*(n+1)) = n/(n+1)
We want to show that
1/(1*2) + 1/(2*3) + … + 1/((n+1)*(n+1+1)) = (n+1)/((n+1)+1)
We know that
1/(1*2) + 1/(2*3) + … + 1/((n+1)*(n+1+1))
=1/(1*2) + 1/(2*3) + … + 1/(n*(n+1)) + 1/((n+1)*(n+1+1))
= n/(n+1) + 1/((n+1)*(n+1+1))
= n(n+2)/((n+1)(n+2)) + 1/((n+1)*(n+2))
=(n2 + 2n +1)/ ((n+1)*(n+2))
= (n+1)/(n+2)
= (n+1)/((n+1)+1)
pf3
pf4
pf5
pf8

Partial preview of the text

Download Assignment 9 for Constructing Proofs | CS 1050 and more Assignments Computer Science in PDF only on Docsity!

a) P(2): (^) (i=1)∑ 2-1^ i(i+1) = 2(2-1)(2+1)/3 = 2 is true b) P(k): (^) (i=1)∑ k-1^ i(i+1) = k(k-1)(k+1)/ c) P(k+1): (^) (i=1)∑ k^ i(i+1) = (k+1)(k+1-1)(k+1+1)/3 = k(k+1)(k+2)/ d) We must show that P(k+1) is true based on the assumption that P(k) is true.

Proof: Base case: We show that 1/(12) = 1/(1+1) = ½ Inductive step: Assume that n>=1 and 1/(12) + 1/(23) + … + 1/(n(n+1)) = n/(n+1) We want to show that 1/(12) + 1/(23) + … + 1/((n+1)(n+1+1)) = (n+1)/((n+1)+1) We know that 1/(12) + 1/(23) + … + 1/((n+1)(n+1+1)) =1/(12) + 1/(23) + … + 1/(n(n+1)) + 1/((n+1)(n+1+1)) = n/(n+1) + 1/((n+1)(n+1+1)) = n(n+2)/((n+1)(n+2)) + 1/((n+1)(n+2)) =(n^2 + 2n +1)/ ((n+1)*(n+2)) = (n+1)/(n+2) = (n+1)/((n+1)+1)