Solutions to Quiz 1
MATH2069/2969: Discrete Mathematics and Graph Theory
Semester 1, 2013
Name:
SID:
MATH2069
MATH2969
Answers must be written in pen in the boxes provided. Anything written in pencil or
written outside the boxes will not be marked.
()
Your answers can be given in the form of an expression such as 4 3 72 or S(9, 5),
if you wish, as long as it fits in the answer box i.e. you are not required to find the
numerical value.
1.
(a) What is the number of diagonals of a regular polygon with 100 vertices?
100 97
= 4850
2
(b) How many numbers between 1 and 300 inclusive are divisible by 5 or 9?
300
5
300
9
300
45
= 60 + 33 6 = 87
(c) Complete the table counting the ways to make an unordered selection of 15
things from 10 possibilities:
(
) ( )
24
15 + 10 1
=
15
15
repetition allowed
( )
10
=0
15
(4 marks)
( )
100
7
( )
11
7
( )( )
50 50
5
2
299
( )
50 50
2
5
(5 marks)
3. Count the strings of length 9 formed by any of the 26 upper case letters where
(a) no letter is used more than once
26(9)
269
)
9
3, 3, 3
( )
26
9
(
)
26 + 9 1
9
(5 marks)
4. How many dierent ways can you put 12 coins in 12 boxes B1 , . . . , B12 if
(a) the coins are all dierent and no box is empty
12!
9!S(12, 9)
( )
12
4!S(12, 4)
4
( )(
)
12
12
4
3, 3, 3, 3
( )
23
12
( )( )
12 11
6
6
(6 marks)
x = 4, 5
6. Consider the recurrence relation an = r1 an1 + r2 an2 + r3 an3 , for n > 3. The
roots of its characteristic polynomial are x = 2 of multiplicity 2 and x = 3 of
multiplicity 1.
(a) Write down the form of the general solution:
an = C1 (2)n + C2 n (2)n + C3 3n
r2 = 8,
r3 = 12
(2 marks)
END OF QUIZ.