Docsity

Constructing Proofs - Homework 5 Solutions | CS 1050, Assignments of Computer Science

Toggle sidebar
bg1
Homework 5 – solutions
1. For n= 1, the statement reduces to 1
12≤2−1
1, which is obviously true.
Now, assume that n
X
i=1
1
n2≤2−1
n(1)
We need to prove that
n+1
X
i=1
1
n2≤2−1
n+ 1 (2)
Add 1
(n+1)2to both sides of (1) to obtain
n+1
X
i=1
1
n2≤2−1
n+1
(n+ 1)2.
Moreover, notice that
2−1
n+1
(n+ 1)2≤2−1
n+1
n(n+ 1) = 2 −1
n+ ( 1
n−1
n+ 1) =
= 2 −1
n+ 1.
Putting the two inequalities together we get (2). 2
2. For n= 1, the statement reduces to F0=F1−2 which is easy to verify.
Now, assume that
F0F1. . . Fn−1=Fn−2.(3)
We need to prove that
F0F1. . . Fn=Fn+1 −2.(4)
By multiplying (3) by Fnand using the definition of Fnwe get
F0F1. . . Fn= (Fn−2)(Fn) = (22n
−1)(22n+ 1) =
22·2n
−1 = 22n+1 −1 = Fn+1 −1,
which proves (4). 2
3. (i) For n= 1, the statement reduces to F2
1=F1F2, which is true.
Assume that the statement we need to prove holds for some nat-
ural number n, i.e. F2
1+F2
2+. . . +F2
n=FnFn+1. Add F2
n+1 to
both sides to get
F2
1+F2
2+. . .+F2
n+1 =FnFn+1+F2
n+1 =Fn+1(Fn+Fn+1) = Fn+1Fn+2.
This is exactly the statement we need to prove for n+ 1. By the
Principle of Mathematical Induction the proof is finished. 2
1
pf3

Partial preview of the text

Download Constructing Proofs - Homework 5 Solutions | CS 1050 and more Assignments Computer Science in PDF only on Docsity!

Homework 5 – solutions

  1. For n = 1, the statement reduces to 112 ≤ 2 − 11 , which is obviously true.

Now, assume that ∑n

i=

n^2

n

We need to prove that n∑+

i=

n^2

n + 1

Add (^) (n+1)^12 to both sides of (1) to obtain n∑+

i=

n^2

n

(n + 1)^2

Moreover, notice that

2 −

n

(n + 1)^2

n

n(n + 1)

n

n

n + 1

n + 1

Putting the two inequalities together we get (2). 2

  1. For n = 1, the statement reduces to F 0 = F 1 − 2 which is easy to verify.

Now, assume that F 0 F 1... Fn− 1 = Fn − 2. (3) We need to prove that F 0 F 1... Fn = Fn+1 − 2. (4) By multiplying (3) by Fn and using the definition of Fn we get F 0 F 1... Fn = (Fn − 2)(Fn) = (2^2

n − 1)(2^2

n

    1. = 22 ·^2 n − 1 = 2^2 n+ − 1 = Fn+1 − 1 , which proves (4). 2
  1. (i) For n = 1, the statement reduces to F 12 = F 1 F 2 , which is true. Assume that the statement we need to prove holds for some nat- ural number n, i.e. F 12 + F 22 +... + F (^) n^2 = FnFn+1. Add F (^) n^2 +1 to both sides to get F 12 +F 22 +.. .+F (^) n^2 +1 = FnFn+1+F (^) n^2 +1 = Fn+1(Fn+Fn+1) = Fn+1Fn+2. This is exactly the statement we need to prove for n + 1. By the Principle of Mathematical Induction the proof is finished. 2

(ii) For n = 1, the statement reduces to F 1 = F 3 − 1, which is clearly true. Assume F 1 + F 2 +... + Fn = Fn+2 − 1 for some natural number n. Add Fn+1 to both sides to get F 1 + F 2 +... + Fn+1 = Fn+2 + Fn+1 − 1 = Fn+3 − 1 (which is the statment we are proving for n + 1). By the Principle of Mathematical Induction the proof is finished. 2

  1. The statement is true for n = 1 (1 · 1! = 2! − 1).

Assume that it holds for some n, i.e.

∑n i=1 i^ ·^ i! = (n^ + 1)!^ −^ 1. Adding (n + 1) · (n + 1)! to both sides: n∑+

i=

i · i! = (n + 1)! − 1 + (n + 1) · (n + 1)! = (n + 2) · (n + 1)! − 1 =

= (n + 2)! − 1 By the Principle of Mathematical Induction the proof is finished. 2

  1. For n = 1, we have 2 = 1 (^2) +1+ 2 regions. Imagine you have drawn n lines and you are adding one more. The new line intersects all the other ones at n points, and therefore it cuts n + 1 regions, each into two pieces. This means that by adding the new line we increase the number of regions by n+1. Assuming that for n lines we had n (^2) +n+ 2 regions, we have^

n^2 +n+ 2 +n+1 =^

n^2 +3n+ 2 =^

(n+1)^2 +n+1+ 2 regions for the n+1 lines. By the Principle of Mathematical Induction, the proof is finished. 2

  1. The characteristic polynomial is x^2 − 0. 5 x − 0 .5. Its roots are 1 and − 0 .5. Therefore, the general solution is xn = c + (− 0 .5)nd where c and d are some real numbers. Now we compute c and d for which the initial conditions are satisfied. What we need is: c + d = 0 c − 0. 5 d = 1 The solution of this system of equations is c = 23 and d = − 23. Answer:

xn =

(1 − (− 0 .5)n).

  1. For n = 1, we have gcd(Fn, Fn+1) = gcd(1, 1) = 1.

Assume that gcd(Fn, Fn+1) = 1 for some n. We have:

gcd(Fn+1, Fn+2) = gcd(Fn+1, Fn+1 + Fn) = gcd(Fn+1, Fn + Fn+1 − Fn+1) = gcd(Fn+1, Fn) = 1.