




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
PRACTICE FINAL EXAM SOLUTIONS. Math 340. 12/?/2018 ... Read all of the following information before starting the exam: • Check your exam to make sure all ...
Typology: Exams
1 / 8
This page cannot be seen from the preview
Don't miss anything!





Math 340 12/?/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 We can find a subdivision which is a copy of K 3 , 3 : one side is a, h, e, the other side is b, d, g. a − b, a − d, a − g, h − b, h − d, h − g, e − b are all edges of the graph, and e − c − g and e − f − d complete the copy of K 3 , 3.
so that none of the T’s are adjacent.
There are 8 letters other than T’s. We know that the arrangement will have the form
T T T
with an unknown number of other letters in each gap, but at least 1 in the middle two gaps. There are
4 − 1
3
ways to decide how many non-T letters appear in each gap. There are then 8! ways to arrange them in those spaces, for a total of ( 9 3
arrangements.
(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.
There are 11 letters other than T this time, so ( 12 3
we proceed as above and then forget the 5! ways to rearrange the vowels.
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.) This calls for inclusion exclusion. We have three events: divisibility by 6, by 7, and by 8. There are 166 numbers divisible by 6, 142 divisible by 7, and 125 divisible by 8. If a number is divisible by both 6 and 7, it is divisible by 42, there are b 142 / 6 c = 23 of these. If a number is divisible by 6 and 8, it is divisible by 24, and there are b 125 / 3 /rf loor = 41 of these. If a number is divisible by 7 and 7, it is divisible by 56, and there are b 125 / 7 c = 17 of these. If a number is divisible by 6, 7, and 8 then it is divisible by 168, and there are b 17 / 3 c = 5 of these. So the numbers divisible by none of these are:
1000 − (166 + 142 + 125) + (23 + 41 + 17) − 5.
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? 4
(b) How many of these sequences are there of length 2? 14
(c) Verify that the numbers sn satisfy the recurrence relation
sn = 3sn− 1 + 2sn− 2.
The quaternary sequences of length n containing neither 00 nor 02 consist of either:
(d) Solve the recurrence relation to give a formula for sn. The characteristic polynomial is r^2 − 3 r − 2 = 0. Solutions are r = 2 and r = 1, so the general solution is A 2 n^ + B. Setting A + B = 4 and 2A + B = 14, we can solve for A = 10 and B = −6, so sn = 102n^ − 6.
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?