PRACTICE FINAL EXAM SOLUTIONS, Exams of Number Theory

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

2022/2023

Uploaded on 05/11/2023

rajeshi
rajeshi 🇺🇸

4.1

(9)

237 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
PRACTICE FINAL EXAM SOLUTIONS
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:
Check your exam to make sure all pages are present.
Leave answers unsimplified—you may include factorials, P(n, k), n
k, etc. in your answers.
Do not leave unevaluated Pikin your final answers.
You may use writing implements and a single 3”x5” notecard.
You may not use a calculator.
You may use any result proved in class or in the textbook in your arguments.
Show all work, clearly and in order, if you want to get full credit. I reserve the right to
take off points if I cannot see how you arrived at your answer (even if your final answer is
correct).
Circle or otherwise indicate your final answers.
Good luck!
1 15
2 10
3 10
4 15
5 12
6 12
7 14
Total 100
pf3
pf4
pf5
pf8

Partial preview of the text

Download PRACTICE FINAL EXAM SOLUTIONS and more Exams Number Theory in PDF only on Docsity!

PRACTICE FINAL EXAM SOLUTIONS

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:

  • Check your exam to make sure all pages are present.
  • Leave answers unsimplified—you may include factorials, P (n, k),

(n k

, etc. in your answers. Do not leave unevaluated

i≤k in your final answers.

  • You may use writing implements and a single 3”x5” notecard.
  • You may not use a calculator.
  • You may use any result proved in class or in the textbook in your arguments.
  • Show all work, clearly and in order, if you want to get full credit. I reserve the right to take off points if I cannot see how you arrived at your answer (even if your final answer is correct).
  • Circle or otherwise indicate your final answers.
  • Good luck!

Total 100

1. (10 points) Either redraw this graph so no lines cross or prove that it is non-planar.

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.

3. (15 points) (a) How may ways are there to rearrange the letters AEIOUCDVTTT

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.

4. (12 points) Determine the number of integers between 1 and 1000 (including 1 and 1000)

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.

6. (10 points) We are interested in quaternary sequences (i.e. using the digits { 0 , 1 , 2 , 3 })

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:

  • a digit other than 0 followed by a sequence of length n − 1—there are 3sn− 1 ways of doing this, or
  • 01 or 03 followed by a sequence of length n − 2—there are 2sn− 2 ways of doing this.

(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.

7. (10 points) The game of Kayles is played with a row of n coins. Two players alternate,

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?

  • • • (2)
  • (1)