advanced discrete structure homework 2 solution
TRANSCRIPT
Advanced Discrete Structure
Homework 2 Solution
Simon Chang
Question 1
Use binomial expansions or combinatorial
arguments to evaluate the following sums:
(a) ๐๐
๐๐=0
๐๐+๐
(b) (โ1)๐ ๐๐
๐๐โ๐
๐๐=0
(c) 2๐ ๐๐
๐๐=0
Question 1
(a) ๐๐
๐๐=0
๐๐+๐
โ the coefficient of ๐ฅ๐ in 1 + ๐ฅโ1 ๐ 1 + x n
1 + ๐ฅโ1 ๐ 1 + x n =1 + x
x
m
1 + x n
=1 + x m+n
xm
โ the coefficient of ๐ฅ๐: ๐+๐๐+๐
Question 1
(b) (โ1)๐ ๐๐
๐๐โ๐
๐๐=0
โ the coefficient of ๐ฅ๐ in 1 โ ๐ฅ ๐ 1 + ๐ฅ ๐
1 โ ๐ฅ ๐ 1 + ๐ฅ ๐ = 1 โ ๐ฅ2 ๐
โ the coefficient of ๐ฅ๐:
โ1 ๐/2
๐
๐/2, r is even
0 r is odd
Question 1
(c) 2๐ ๐๐
๐๐=0
1 + 2๐ฅ ๐
= 1 + 21๐
1๐ฅ + 22
๐
2๐ฅ2 +โฏ+ 2๐
๐
๐๐ฅ๐
When ๐ฅ = 1:
2๐๐
๐
๐
๐=0
= 1 + 2๐ฅ ๐ = 3๐
Question 2
Find the coefficient of ๐ฅ12 in ๐ฅ + 3
1 โ 2๐ฅ + ๐ฅ2
Question 2
๐ฅ + 3
1 โ 2๐ฅ + ๐ฅ2=
๐ฅ + 3
1 โ ๐ฅ 2
= ๐ฅ + 3 1 + ๐ฅ + ๐ฅ2 +โฏ 2
The coefficient of ๐ฅ12:
1 ร11 + (2 โ 1)
2 โ 1+ 3 ร
12 + (2 โ 1)
2 โ 1
= 1 ร 12 + 3 ร 13 = 51
Question 3 (a)
Find the ordinary generating function of the
sequence (๐0, ๐1, ๐2, โฆ ) where ๐๐ is the number
of ways in which the sum r will show when two
distinct dice are rolled, with the first one showing
even and the second one showing odd.
Question 3 (a)
๐ฅ2 + ๐ฅ4 + ๐ฅ6 ๐ฅ1 + ๐ฅ3 + ๐ฅ5
Question 3 (b)
Find the ordinary generating function of the
sequence (๐0, ๐1, ๐2, โฆ ) where ๐๐ is the number
of ways in which the sum r will show when 10
distinct dice are rolled, with five of them showing
even and the other five showing odd.
Question 3 (b)
E for even, O for odd:
EEEEEOOOOO: ๐ฅ2 + ๐ฅ4 + ๐ฅ6 5 ๐ฅ1 + ๐ฅ3 + ๐ฅ5 5
EOEOEOEOEO: ๐ฅ2 + ๐ฅ4 + ๐ฅ6 5 ๐ฅ1 + ๐ฅ3 + ๐ฅ5 5
EEOOEOEOOE: ๐ฅ2 + ๐ฅ4 + ๐ฅ6 5 ๐ฅ1 + ๐ฅ3 + ๐ฅ5 5
โฎ
The sum: 10!
5!5!๐ฅ2 + ๐ฅ4 + ๐ฅ6 5 ๐ฅ1 + ๐ฅ3 + ๐ฅ5 5
Question 4
How many ways are there to collect $24 from 4
children and 6 adults if each person gives at
least $1, but each child can give at most $4 and
each adult at most $7?
Question 4
๐ฅ + ๐ฅ2 +โฏ+ ๐ฅ4 4 ๐ฅ + ๐ฅ2 +โฏ+ ๐ฅ7 6
= x10 1 + ๐ฅ + ๐ฅ2 + ๐ฅ3 4 1 + ๐ฅ + ๐ฅ2 +โฏ+ ๐ฅ6 6
= x101 โ x4
1 โ x
41 โ x7
1 โ x
6
=๐ฅ10 1 โ ๐ฅ4 4 1 โ ๐ฅ7 6
1 โ ๐ฅ 10
Question 4
1 โ ๐ฅ4 4 = 1 โ 4๐ฅ4 + 6๐ฅ8 โ 4๐ฅ12 + ๐ฅ16 1 โ ๐ฅ7 6 = 1 โ 6๐ฅ7 + 15๐ฅ14 โ 20๐ฅ21 + 15๐ฅ28 โ 6๐ฅ35 + ๐ฅ42
1 ร 1 ร14 + 9
9+ 1 ร โ6 ร
7 + 9
9
+1 ร 15 ร0 + 9
9+ โ4 ร 1 ร
10 + 9
9
+ โ4 ร โ6 ร3 + 9
9+ 6 ร 1 ร
6 + 9
9
+ โ4 ร 1 ร2 + 9
9
Question 5
Find the exponential generating function with:
(a) ๐๐ = 1/(๐ + 1)
(b) ๐๐ = ๐!
Question 5
(a) ๐๐ =1
๐ + 1
1 +1
2
๐ฅ
1!+
1
3
๐ฅ
2!+โฏ = 1 +
๐ฅ
2!+
๐ฅ2
3!+โฏ
=1 +
๐ฅ1!+๐ฅ2
2!+๐ฅ3
3!+ โฏ โ 1
๐ฅ=๐๐ฅ โ 1
๐ฅ
Question 5
(b) ๐๐ = ๐!
1 + 1!๐ฅ
1!+ 2!
๐ฅ2
2!+ โฏ = 1 + ๐ฅ + ๐ฅ2 +โฏ
=1
1 โ ๐ฅ
Question 6
Find the number of n-digit strings generated from
the alphabet {0, 1, 2, 3, 4} whose total number
of 0's and 1's is even.
Question 6
The number of 0โs and 1โs are both even:
1 +๐ฅ2
2!+๐ฅ4
4!+ โฏ
2
1 + ๐ฅ +๐ฅ2
2!+๐ฅ3
3!+ โฏ
3
=๐๐ฅ + ๐โ๐ฅ
2
2
ex 3 =e5x + e3x + ex
4
Question 6
The number of 0โs and 1โs are both odd:
๐ฅ +๐ฅ3
3!+๐ฅ5
5!+ โฏ
2
1 + ๐ฅ +๐ฅ2
2!+๐ฅ3
3!+ โฏ
3
=๐๐ฅ โ ๐โ๐ฅ
2
2
ex 3 =e5x โ e3x + ex
4
Question 6
The sum:
e5x โ e3x + ex
4+e5x โ e3x + ex
4=e5x + ex
2
The coefficient of ๐ฅ๐
๐! is:
5๐ + 1
2
Question 7 (Challenge)
Show that the number of partitions of n is equal
to the number of partitions of 2n into n parts.
(Hint: Use Ferrers graph.)
Question 7 (Challenge)
To divide 2n objects into n groups:
โ โ โ โฎ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โฎ โ
n
n
A Interesting Fact about Ferrโs Graph
The number of partitions with no one larger than k
= The number of partitions with no more than k groups
Question 8 (Challenge)
Show that for any s > 1,
1
๐๐
โ
๐=1
โก 1
1 โ ๐โ๐ ๐ ๐๐๐๐๐
The sum of the left-hand side is popularly known
as the Riemann zeta function, ฮถ(s), and the overall
identity is known as the Euler product formula.
Question 8 (Challenge)
๐ ๐ = 1 +1
2๐ +1
3๐ +1
4๐ +โฏ
1
2๐ ๐ ๐ =
1
2๐ +1
4๐ +1
6๐ +1
8๐ +โฏ
1 โ1
2๐ ๐ ๐ = 1 +
1
3๐ +1
5๐ +1
7๐ +โฏ
Question 8 (Challenge)
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30
31 32 33 34 35 36 37 38 39 40
โฎ โฎ โฎ โฎ โฎ โฎ โฎ โฎ โฎ โฎ
Question 8 (Challenge)
1 โ1
2๐ ๐ ๐ = 1 +
1
3๐ +1
5๐ +1
7๐ +โฏ
1
3๐ 1 โ
1
2๐ ๐ ๐ =
1
3๐ +1
9๐ +
1
15๐ +
1
21๐ +โฏ
1 โ1
3๐ 1 โ
1
2๐ ๐ ๐ =
1
5๐ +1
7๐ +
1
11๐ +
1
13๐ +โฏ
Question 8 (Challenge)
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30
31 32 33 34 35 36 37 38 39 40
โฎ โฎ โฎ โฎ โฎ โฎ โฎ โฎ โฎ โฎ
Question 8 (Challenge)
Repeating this:
โฏ 1โ1
11๐ 1 โ
1
7๐ 1 โ
1
5๐ 1 โ
1
3๐ 1 โ
1
2๐ ๐ ๐ = 1
And we can get:
๐ ๐ =1
1 โ12๐
1 โ13๐
1 โ15๐
1 โ17๐
1 โ111๐
โฏ
= 1
1 โ ๐โ๐ ๐ ๐๐๐๐๐