Math 213 Exam 1 Solutions by Prof. I. Kapovich, Exams of Discrete Mathematics

The solutions to exam 1 of math 213, a university-level mathematics course, taught by prof. I. Kapovich. The solutions cover five problems, including proofs by induction and combinations. Students can use this document to check their answers and understand the solutions to the exam problems.

Typology: Exams

Pre 2010

Uploaded on 03/10/2009

koofers-user-2wd-1
koofers-user-2wd-1 🇺🇸

9 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Math 213 Exam 1 (Solutions)
Prof. I.Kapovich February 22, 2008
Problem 1[20 points]
For each of the following statements indicate whether it is true or false.
You do not have to explain your answers.
(1) For the set S={∅,{∅},{{∅}}} we have |S|= 1.
(2) If |A|=mand |B|=n, then the number of all functions from Ato
Bis mn.
(3) For every nr1 we have C(n, r)P(n, r).
(4) Whenever E, F are events such that p(E) = 0, then Eand Fare
independent.
(5) For every n1 the number Pn
i=0 n
iis even.
Solution.
(1) FALSE. In fact, we have |S|= 3.
(2) FALSE. In fact, he number of all functions from Ato Bis nm.
(3) TRUE. Indeed, C(n, r) = P(n, r)/r! and so C(n, r )P(n, r).
(4) TRUE. Indeed, in this case p(E) = 0 and 0 p(EF)p(E) = 0,
so that p(EF) = 0. Thus 0 = 0·p(F), that is p(EF) = p(E)p(F).
(5) TRUE. Indeed, Pn
i=0 n
i= 2nis even.
Problem 2[20 points] Prove that for every integer n1 we have:
1222+ 32 · · · + (1)n1n2= (1)n1n(n+ 1)
2.
Give all the details of your work.
Solution.
We will prove this statement by induction.
Base of Induction.
For n= 1 we have 12= 1 = 1(1+1)
2, as required.
Inductive Step.
Suppose that n1 and that it is known that
() 1222+ 32 · · · + (1)n1n2= (1)n1n(n+ 1)
2
We need to show that
1222+ 32 · · · + (1)n1n2+ (1)n(n+ 1)2= (1)n(n+ 1)(n+ 2)
2.
By adding (1)n(n+ 1)2to both sides of () we get:
1222+ 32 · · · + (1)n1n2+ (1)n(n+ 1)2= (1)n1n(n+ 1)
2+ (1)n(n+ 1)2=
(1)n(n+ 1) n
2+ (n+ 1)= (1)n(n+ 1)2n+ 2 n
2= (1)n(n+ 1)(n+ 2)
2,
as required.
1
pf3

Partial preview of the text

Download Math 213 Exam 1 Solutions by Prof. I. Kapovich and more Exams Discrete Mathematics in PDF only on Docsity!

Math 213 Exam 1 (Solutions) Prof. I.Kapovich February 22, 2008 Problem 1[20 points] For each of the following statements indicate whether it is true or false. You do not have to explain your answers.

(1) For the set S = {∅, {∅}, {{∅}}} we have |S| = 1. (2) If |A| = m and |B| = n, then the number of all functions from A to B is mn. (3) For every n ≥ r ≥ 1 we have C(n, r) ≤ P (n, r). (4) Whenever E, F are events such that p(E) = 0, then E and F are independent. (5) For every n ≥ 1 the number

∑n i=

(n i

is even. Solution. (1) FALSE. In fact, we have |S| = 3. (2) FALSE. In fact, he number of all functions from A to B is nm. (3) TRUE. Indeed, C(n, r) = P (n, r)/r! and so C(n, r) ≤ P (n, r). (4) TRUE. Indeed, in this case p(E) = 0 and 0 ≤ p(E ∩ F ) ≤ p(E) = 0, so that p(E ∩F ) = 0. Thus 0 = 0·p(F ), that is p(E ∩F ) = p(E)p(F ). (5) TRUE. Indeed,

∑n i=

(n i

= 2n^ is even.

Problem 2[20 points] Prove that for every integer n ≥ 1 we have:

12 − 22 + 3^2 − · · · + (−1)n−^1 n^2 = (−1)n−^1

n(n + 1) 2

Give all the details of your work. Solution. We will prove this statement by induction. Base of Induction. For n = 1 we have 1^2 = 1 = 1(1+1) 2 , as required. Inductive Step. Suppose that n ≥ 1 and that it is known that

(∗) 12 − 22 + 3^2 − · · · + (−1)n−^1 n^2 = (−1)n−^1

n(n + 1) 2 We need to show that

12 − 22 + 3^2 − · · · + (−1)n−^1 n^2 + (−1)n(n + 1)^2 = (−1)n^

(n + 1)(n + 2) 2

By adding (−1)n(n + 1)^2 to both sides of (∗) we get:

12 − 22 + 3^2 − · · · + (−1)n−^1 n^2 + (−1)n(n + 1)^2 = (−1)n−^1

n(n + 1) 2

  • (−1)n(n + 1)^2 =

(−1)n(n + 1)

n 2

  • (n + 1)

= (−1)n(n + 1)

2 n + 2 − n 2

= (−1)n^

(n + 1)(n + 2) 2

as required.

1

2

Problem 3[20 points] A basket contains oranges, apples, pears and grapefruits. How many ways of choosing six pieces of fruit from the basket are there, so that exactly two of the pieces chosen are oranges? Provide a detailed explanation of your answer.

Solution To choose six pieces of fruit containing exactly two oranges we need to pick two oranges from the basket (there is one way of doing that), put them aside and then pick four pieces of fruit out of apples, pears and grapefruits. Therefore the number of ways to choose six pieces of fruit from the basket are there, so that exactly two of the pieces chosen are oranges, is equal to the number of 4-combinations with repetitions out of a set with 3 elements. This number is equal to:

C(4 + 3 − 1 , 3 − 1) = C(6, 2) =

Problem 4[20 points] Find the precise value of

i=1 C(100, i)(−3)

i. Give all the details of your

work.

Solution. By the Binomial Theorem we have (x + y)n^ =

∑n i=

(n i

xn−iyi. Putting n = 100, x = 1, y = −3, we get

(1 − 3)^100 =

∑^100

i=

n i

1 n−i(−3)i^ =

∑^100

i=

n i

(−3)i^ =

n 0

1100 (−3)^0 +

∑^100

i=

C(100, i)(−3)i^ = 1 +

∑^100

i=

C(100, i)(−3)i.

Therefore ∑^100

i=

C(100, i)(−3)i^ = (1 − 3)^100 − 1 = 2^100 − 1.