Docsity

MACM 201 Midterm 2 Solutions - Mathematics Department, Simon Fraser University, Exams of Discrete Mathematics

Toggle sidebar
bg1
SIMON FRASER UNIVERSITY
DEPARTMENT OF MATHEMATICS
Midterm 2 – Solutions
MACM 201 Summer 2007
Instructor: Robert ˇ
S´amal
July 4 2007, 12:30 – 13:20
[2] 1. (a) Evaluate −3
4
2.
−3
4
2=(−3
4)(−3
4−1)
2=(−3
4)(−7
4)
2=21
32
[2] (b) Explain why p(4) = 5. (That is, list all objects that are counted by p(4).)
p(n)is the number of all partitions of n, so for n= 4 we have
•4 = 4
•4 = 3 + 1
•4 = 2 + 2
•4 = 2 + 1 + 1
•4 = 1 + 1 + 1 + 1
[4] (c) Let an= 2 and bn=nfor all n≥0. Suppose that the sequence c0, c1, c2,... is
the convolution of a0, a1, a2,... and b0, b1, b2,.... What is cn?
cn=a0bn+a1bn−1+···+anb0
= 2 ·n+ 2 ·(n−1) + ···+ 2 ·0
= 2 ·n(n+ 1)
2=n(n+ 1).
pf3
pf4
pf5

Partial preview of the text

Download MACM 201 Midterm 2 Solutions - Mathematics Department, Simon Fraser University and more Exams Discrete Mathematics in PDF only on Docsity!

SIMON FRASER UNIVERSITY

DEPARTMENT OF MATHEMATICS

Midterm 2 – Solutions

MACM 201 Summer 2007 Instructor: Robert ˇS´amal July 4 2007, 12:30 – 13:

[2] 1. (a) Evaluate

2

−^34

(−^34 )(−^34 − 1)

(−^34 )(−^74 )

[2] (b) Explain why p(4) = 5. (That is, list all objects that are counted by p(4).)

p(n) is the number of all partitions of n, so for n = 4 we have

  • 4 = 4
  • 4 = 3 + 1
  • 4 = 2 + 2
  • 4 = 2 + 1 + 1
  • 4 = 1 + 1 + 1 + 1

[4] (c) Let an = 2 and bn = n for all n ≥ 0. Suppose that the sequence c 0 , c 1 , c 2 ,... is the convolution of a 0 , a 1 , a 2 ,... and b 0 , b 1 , b 2 ,.... What is cn?

cn = a 0 bn + a 1 bn− 1 + · · · + anb 0 = 2 · n + 2 · (n − 1) + · · · + 2 · 0 = 2 · n(n^2 + 1) = n(n + 1).

2. Find generating functions for the following sequences (include all the necessary compu-

tation).

[1] (a) 0 , 1 , 0 , 1 , 0 , 1 , 0 , 1 ,...

x^1 + x^3 + x^5 + x^7 + · · · = (^1) −xx 2 (geometric series with quotient x^2 and initial term x). We might also use substitution.

[2] (b) 1 , 0 , 2 , 0 , 4 , 0 , 8 , 0 , 16 ,...

1 + 2x^2 + 4x^4 + 8x^6 + 16x^8 + · · · = (^1) −^12 x 2 (geometric series with quotient 2 x^2 and initial term 1)

[3] (c) 0 , − 1 , 2 , − 3 , 4 , − 5 , 6 , − 7 ,...

The generating function for sequence 0 , 1 , 2 , 3 ,... is (^) (1−xx) 2. Using substitution x := −x we get the generating function for the sequence under consideration: (^) (1+−xx) 2.

[2] (d) Find the coefficient of x^6 in (1 + 2x)^10.

By the binomial theorem (1 + 2x)^10 =

i=

i

(2x)i. Hence, [x^6 ](1 + 2x)^10 =

6

[4] (e) Find the coefficient of x^54 in x^5 (x^3 + x^7 + x^11 + x^15 + · · · )^3.

[x^54 ]x^5 (x^3 + x^7 + x^11 + x^15 + · · · )^3 = [x^54 ]x^5 · x^9 (1 + x^4 + x^8 + x^12 + x^16 + · · · )^3 = [x^54 ]x^14 (1 − x^4 )−^3 = [x^40 ](1 − x^4 )−^3 =

(−1)^10 =

4. This question concerns finding the number of solutions to the equation

a + b + c = 100 ,

where a, b, c are nonnegative integers such that

  • a is even,
  • b is odd, and
  • c ≥ 5.

[3] (a) Express the answer as a coefficient of some power of x in an appropriate generating function f (x). The answer is [x^100 ]f (x), where

f (x) = (x^0 + x^2 + x^4 + · · · )(x^1 + x^3 + x^5 + · · · )(x^5 + x^6 + x^7 + · · · ) = (^1) −^1 x (^21) −^ x x 2 x

5 1 − x

[4] (b) Express f (x) as a polynomial (1−x (^2) ) 3.

By multiplying the last fraction by 1+ 1+xx we get

f (x) = x

(^6) (1 + x) (1 − x^2 )^3

[3] (c) Use the binomial theorem to get the final answer.

As (^) (1−^1 x (^2) ) 3 only contains even powers of x, we get

[x^100 ]f (x) = [x^100 ] x

6 (1 − x^2 )^3 = [x

94 ] 1

(1 − x^2 )^3 =

(−1)^47 =

5. Consider various walks in the graph on the figure. In parts (b), (c), (e) explain why the

walk you provided is not a path, a trail, and a cycle, respectively. (You may use any of the several ways to specify a walk.)

a

b

e

f

h

i

c (^) d

g

j

l

In each part, many solutions are possible! k

[2] (a) Write down an a-f path.

a − c − e − f

[2] (b) Write down an a-f trail that is not a path.

a − c − e − g − h − i − g − f : this is not a path, as the vertex g is used twice. (No edge is repeated, though.)

[2] (c) Write down an a-f walk that is not a trail.

a − c − d − e − c − d − e − f : this is not a trail, as the edge {c, d} is used twice.

[2] (d) Write down an a-a cycle.

a − b − c − a

[2] (e) Write down an a-a circuit that is not a cycle.

a − b − c − a − k − l − a: this is not a cycle, as the vertex a is repeated ‘in the middle’ (note that the ‘repetition’ at the end in part (d) does not matter).