




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A practice final exam for Math 340 course. It includes 7 questions with a total of 84 points. The exam covers topics such as planar graphs, divisibility, and recurrence relations. The exam instructions specify the use of writing implements and a single 3”x5” notecard, but prohibit the use of a calculator. The exam also emphasizes the importance of showing all work and complying with the University of Pennsylvania’s Code of Academic Integrity.
Typology: Exams
1 / 8
This page cannot be seen from the preview
Don't miss anything!





Math 340 12/13/2018 Name:
ID:
“My signature below certifies that I have complied with the University of Pennsylvania’s Code of Academic Integrity in completing this”
Signature:
Read all of the following information before starting the exam:
(n k
, etc. in your answers. Do not leave unevaluated
i≤k in your final answers.
Total 100
a b
c
d
e
h
g
f
so that none of the T’s are adjacent.
(b) How may ways are there to rearrange the letters AEIOUBCDFGHTTT so that none of the T’s are adjacent and the vowels appear in alphabetical order.
which are not divisible by 6, by 7, or by 8. (1000/6 = 166.66, 1000/7 = 142. 8.. ., 1000/8 = 125. You may need to do some additional division by hand.)
which never contain either the subsequence 00 or the subsequence 02. Let sn be the number of such sequences of length n. (a) How many of these sequences are there of length 1?
(b) How many of these sequences are there of length 2?
(c) Verify that the numbers sn satisfy the recurrence relation
sn = 3sn− 1 + 2sn− 2.
(d) Solve the recurrence relation to give a formula for sn.
and on their turn, a player can either remove a single coin, or two adjacent coins. In this case, adjacent means that there are no holes (places where a coin was removed previously) between them. A player wins if they remove the final coin. (For example, the first play wins when the game starts with three coins by first removing the middle coin; the remaining coins are not adjacent, so the second player can only remove one, and the first player wins by removing the other.)
What is the Grundy number of the game which begins with three coins?