Docsity

Homework 8 Answers for CS250: Proofs by Induction, Assignments of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CMSC250-Homework8-Fall2002-ANSWERS
(1)ProveeachofthefollowingtrueforninZ+usinginductionfromscratch(ie:youcannotuseother
theoremsthatwehaveproveninclassorthatthetexthasprovenastheoremsinyourproof):
(a)
=
−
n
i
i
1
)52( = nn 4
2−
BaseCase:(n=1)
=
−
1
1
)52(
i
i=? )1(4)1( 2−
LHS:
=
−
1
1
)52(
i
i=2(1)-5=2-5=-3
RHS: )1(4)1( 2−=1-4=-3
LHS=RHS
InductiveHypothesis:(n=k)
=
−
k
i
i
1
)52( = kk 4
2−
InductiveStep:(n=k+1)
Show: +
=
−
1
1
)52(
k
i
i= )1(4)1( 2+−+ kk
Proof:
LHS: +
=
−
1
1
)52(
k
i
i =
=
−
k
i
i
1
)52( + 5)1(2
−
+
k
=kk 4
2−+ 5)1(2
−
+
k byapplyingInductiveHypothesis
= 5224
2−++− kkk
= 32
2−− kk
RHS: )1(4)1( 2+−+ kk = 4412
2−−++ kkk = 32
2−− kk
LHS=RHS
pf3
pf4
pf5

Partial preview of the text

Download Homework 8 Answers for CS250: Proofs by Induction and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

CMSC 250 - Homework 8 - Fall 2002 - ANSWERS

(1) Prove each of the following true for n in Z+^ using induction from scratch (ie: you can not use other theorems that we have proven in class or that the text has proven as theorems in your proof):

(a)

n

i

i 1

( 2 5 )= n^2 − 4 n

Base Case: (n=1)

=

1

1

i

i =?^ ( 1 )^2 − 4 ( 1 )

LHS:

=

1

1

i

i = 2(1)-5 = 2-5 = -

RHS: ( 1 )^2 − 4 ( 1 )= 1-4 = - LHS = RHS

Inductive Hypothesis: (n=k)

=

k

i

i 1

( 2 5 )= k^2 − 4 k

Inductive Step: (n=k+1)

Show:

=

1

1

k

i

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

Proof:

LHS:

=

1

1

k

i

i =

k

i

i 1

( 2 5 )+ 2 ( k + 1 )− 5

= k^2 − 4 k + 2 ( k + 1 )− 5 by applying Inductive Hypothesis = k^2 − 4 k + 2 k + 2 − 5 = k^2 − 2 k − 3 RHS: ( k + 1 )^2 − 4 ( k + 1 ) = k^2 + 2 k + 1 − 4 k − 4 = k^2 − 2 k − 3 LHS = RHS

(b) = +

n

i 1 i i 2

n +

n

Base Case: (n=1)

1

1 2

i i^ i

LHS:

1

1 2

i i^ i

2 + =^2

RHS:

LHS = RHS

Inductive Hypothesis: (n=k)

k

i 1 i i 2

k +

k

Inductive Step: (n=k+1)

Show:

= +

1

1 2

k 3

i i^ i

k

k

Proof:

LHS:

= +

1

1 2

k 3

i i^ i

k

i 1 i i 2

k + 2 + k +

= 1

k +

k

( 1 ) ( 1 )

k + 2 + k + by applying Inductive Hypothesis

= 1

k +

k

( 1 )(( 1 ) 1 )

k + k + +

= 1

k +

k

( 1 )( 2 )

k + k +

= ( 1 )( 2 )

k k

k k

( 1 )( 2 )

k + k +

= ( 1 )( 2 )

k k

k k

( 1 )( 2 )

k k

k k

k k

k k

2

k

k

RHS:

k

k

2

k

k

LHS = RHS

(a)

n

i

i 0

3 n +^1 − 1

Base Case: (n=0)

=

0

0

i

i (^) = 2

3 (^0 )+^1 − 1

LHS:

=

0

0

i

i (^) = 3 0 = 1

RHS:

3 (^0 )+^1 − 1

LHS = RHS

Inductive Hypothesis: (n=k)

=

k

i

i 0

3 =^

3 k +^1 − 1

Inductive Step: (n=k+1)

Show:

=

1

0

k

i

i (^) = 2

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

Proof:

LHS:

=

1

0

k

i

i (^) =

k

i

i 0

3 + 3 k +^1

3 k +^1 − 1

  • 3 k^ +^1 by applying Inductive Hypothesis

3 k +^1 − 1

2

2 ( 3 k +^1 )

2

3 ( 3 k +^1 )− 1

2

3 k +^2 − 1

RHS:

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

2

3 k +^2 − 1

LHS = RHS

(b) 5 | ( 2 (2n+1)^ + 3(2n+1) )

Base Case: (n=0)

5 |?^ ( 2 (2(0)+1)^ + 3(2(0)+1) )

2 (2(0)+1)^ + 3(2(0)+1)^ = 2^1 + 3^1 = 2 + 3 = 5

5 = 5(1), 1∈ Z so by the definition of divisibility 5 | ( 2 (2(0)+1)^ + 3(2(0)+1) )

Inductive Hypothesis: (n=k)

5 | ( 2 (2k+1)^ + 3(2k+1) )

Inductive Step: (n=k+1)

Show: 5 | ( 2 (2(k+1)+1)^ + 3(2(k+1)+1) )

Proof: 2 (2(k+1)+1)^ + 3(2(k+1)+1)^ = 2(2(k+1)+1)^ + 3(2(k+1)+1) = 2 (2k+3)^ + 3(2k+3) = 2 (2k+1)2^2 + 3(2k+1)3^2

Rewrite Inductive Hypothesis as 2 (2k+1)^ + 3(2k+1)^ = 5a a∈ Z by definition of divisibility. Rewrite as 2 (2k+1)^ = 5a- 3(2k+1)^ a∈ Z by algebra.

= (5a- 3(2k+1))2^2 + 3(2k+1)3^2 by application of rewritten ind hyp = 20a – 43(2k+1)^ + 93(2k+1)^ by algebra = 20a +53(2k+1)^ by algebra = 5(4a +3(2k+1)) by algebra Let j = 4a +3(2k+1) j∈ Z by closure of integers under +, =5j by substitution

Therefore, 5 | ( 2 (2(k+1)+1)^ + 3(2(k+1)+1) ) by the definition of divisibility.