Docsity

Homework Solutions for CMSC250, Spring 2004 - Week 7 - Prof. Jandelyn Dawn Plane, Assignments of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CMSC250, Spring 2004 Homework 7 Answers
Due Wednesday, March 17 at the beginning of your discussion section.
You must write the solutions to the problems single-sided on your own lined paper,
with all sheets stapled together, and with all answers written in sequential order or
you will lose points.
1. Simplify this expression: ln"n
Y
i=1
ef(i)#.
Answer:
ln "n
Y
i=1
ef(i)#= ln hef(1) ·ef(2) ·· ·ef(n)i
= ln ef(1) + ln ef(2) +· · · + ln ef(n)
=f(1) + f(2) + · ·· +f(n)
=
n
X
i=1
f(i)
2. Prove ∀n∈Z+
n
X
i=1
(2i)(2i−1) = n(n+ 1)(4n−1)
3.
Answer:
Base Case: (n= 1)
(LHS)
1
X
i=1
(2i)(2i−1) = (2)(2 −1) = 2
(RHS) 1(1 + 1)(4 −1)
3=2(3)
3= 2
2 = 2 √
Inductive Hypothesis: (n=k)
k
X
i=1
(2i)(2i−1) = k(k+ 1)(4k−1)
3
Inductive Step: (n=k+ 1)
Show:
k+1
X
i=1
(2i)(2i−1) = (k+ 1)((k+ 1) + 1)(4(k+ 1) −1)
3
1
pf3
pf4

Partial preview of the text

Download Homework Solutions for CMSC250, Spring 2004 - Week 7 - Prof. Jandelyn Dawn Plane and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

CMSC250, Spring 2004 Homework 7 Answers

Due Wednesday, March 17 at the beginning of your discussion section.

You must write the solutions to the problems single-sided on your own lined paper, with all sheets stapled together, and with all answers written in sequential order or you will lose points.

  1. Simplify this expression: ln

[ (^) n ∏

i=

ef^ (i)

]

Answer:

ln

[ (^) n ∏

i=

ef^ (i)

]

= ln

[

ef^ (1)^ · ef^ (2)^ · · · ef^ (n)

]

= ln ef^ (1)^ + ln ef^ (2)^ + · · · + ln ef^ (n) = f (1) + f (2) + · · · + f (n)

=

∑^ n

i=

f (i)

  1. Prove ∀n ∈ Z+

∑^ n

i=

(2i)(2i − 1) = n(n^ + 1)(4n^ −^ 1) 3

Answer: Base Case: (n = 1)

(LHS)

∑^1

i=

(2i)(2i − 1) = (2)(2 − 1) = 2

(RHS) 1(1 + 1)(4^ −^ 1)

Inductive Hypothesis: (n = k) ∑^ k

i=

(2i)(2i − 1) = k(k^ + 1)(4k^ −^ 1) 3 Inductive Step: (n = k + 1)

Show:

k∑+

i=

(2i)(2i − 1) =

(k + 1)((k + 1) + 1)(4(k + 1) − 1) 3

Proof: k∑+

i=

(2i)(2i − 1) =

∑^ k

i=

(2i)(2i − 1) +

k∑+

i=k+

(2i)(2i − 1)

∑^ k

i=

(2i)(2i − 1) + 2(k + 1)(2(k + 1) − 1)

= k(k^ + 1)(4k^ −^ 1) 3

  • 2(k + 1)(2k + 1) (by the IH)

= k(k^ + 1)(4k^ −^ 1) 3

  • 6(k^ + 1)(2k^ + 1) 3 = (k^ + 1) [k(4k^ −^ 1) + 6(2k^ + 1)] 3 =

(k + 1)

[

4 k^2 + 11k + 6

]

= (k^ + 1)(k^ + 2)(4k^ + 3) 3 = (k^ + 1)((k^ + 1) + 1)(4(k^ + 1)^ −^ 1) 3

  1. Prove ∀n ∈ Z+

∑^ n

i=

(4i − 3) = n(2n − 1).

Answer: Base Case: (n = 1)

(LHS)

∑^1

i=

(4i − 3) = 4(1) − 3 = 1

(RHS) n(2n − 1) = 1(2 − 1) = 1 1 = 1

Inductive Hypothesis: (n = k) ∑^ k

i=

(4i − 3) = k(2k − 1)

Inductive Step: (n = k + 1)

Show:

k∑+

i=

(4i − 3) = (k + 1)(2(k + 1) − 1)

Proof: k∑+

i=

(4i − 3) =

∑^ k

i=

(4i − 3) +

∑^ k+

i=k+

(4i − 3)

∑^ k

i=

(4i − 3) + (4(k + 1) − 3)

= k(2k − 1) + 4(k + 1) − 3 (by the IH) = 2k^2 − k + 4k + 4 − 3 = 2k^2 + 3k + 1 = (k + 1)(2k + 1) = (k + 1)(2(k + 1) − 1)

Inductive Hypothesis: (n = p) ∑^ p

k=

Fk = Fp+2 − 1

Inductive Step: (n = p + 1)

Show:

p∑+

k=

Fk = Fp+3 − 1

Proof: p∑+

k=

Fk =

∑^ p

k=

Fk +

∑^ p+

k=p+

Fk =

∑^ p

k=

Fk + Fp+

= Fp+2 − 1 + Fp+1 (by the IH) = Fp+1 + Fp+2 − 1 = Fp+3 − 1 (by the definition of the Fib. seq.)

(b) ∀n ∈ Z+

∑^ n

k=

F (^) k^2 = Fn · Fn+1.

Answer: Base Case: (n = 1)

(LHS)

∑^1

k=

F (^) k^2 = F 12 = 1

(RHS) F 1 · F1+1 = F 1 · F 2 = 1 · 1 = 1 1 = 1

Inductive Hypothesis: (n = p) ∑^ p

k=

F (^) k^2 = Fp · Fp+

Inductive Step: (n = p + 1)

Show:

p∑+

k=

F (^) k^2 = Fp+1 · Fp+

Proof: p∑+

k=

F (^) k^2 =

∑^ p

k=

F (^) k^2 +

p∑+

k=p+

F (^) k^2 =

∑^ p

k=

F (^) k^2 + F (^) p^2 +

= Fp · Fp+1 + F (^) p^2 +1 (by the IH) = Fp+1 (Fp + Fp+1) = Fp+1 · Fp+

(by the definition of the Fib. seq.)