


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
Material Type: Exam; Class: Introduction to Discrete Mathematics; Subject: MATHEMATICS; University: University of Wisconsin - Madison; Term: Fall 2005;
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



MATH 240; EXAM # 1, 100 points, October 18, 2005 (R.A.Brualdi)
TOTAL SCORE (11 problems; 100 points possible):
Name: These R. Solutions
TA: Anders Hendrickson (circle time) Mon 12:05 Mon 1:20 Wed 12:05 Wed. 1:
(a) YES P (x) ∧ ¬Q(x)
(b) YES ¬(P (x) → Q(x))
(c) YES ¬(¬P (x) ∨ Q(x))
(d) ¬(Q(x) ∨ P (x))
(e) ¬(P (x) ∧ Q(x))
(a) If f is surjective, then |A| ≤ |B|.
(b) If |A| ≤ |B|, then f is injective.
(c) YES If f is surjective and |A| = |B|, then f is injective
(d) YES If f and g are both injective, then g ◦ f is injective.
(e) If g is surjective, then g ◦ f is surjective.
(a) YES d−ne = −bnc.
(b) d− 2. 999999999 e = − 3
(c) dx + ye = dxe + dye
(d) YES dx − 0. 5 e is the closest integer to x, rounding down in the case of ties.
(e) None are correct.
(a) mn
(b) YES nm
(c) mn
(d) m + n
(e) None of the above
(a). 01 n^3 − 1000 n^2 + 5n + 35: Θ(n^3 )
(b) 4 n
(^5) +3n (^4) log n− 3 n+ 2 n^3 +5n^2 − 6 n+8 : Θ(n
(c) f (n) = bncn: Θ(n^2 )
(d) f (n) = sin n: Θ(1)
(b) Alice wants to send Bob the important message 5. Compute the encrypted message (an integer between 1 and 32) that she sends?
c = 5^3 modulo 33 and this is 26.
(c) April, a different friend of Bob, has sent Bob a message which he received as 2. What message (an integer between 1 and 32) did April send Bob? This is m = 2^7 modulo 33 which equals 29.
(a) If it exists, use the Euclidean Algorithm to find the multiplicative inverse of 14 modulo 45 (trial and error not acceptable).
We get
45 = 3 · 14 + 3 14 = 4 · 3 + 2 3 = 1 · 2 + 1 2 = 2 · 1 + 0
So GCD is 1 and an inverse exists. Using the equations in the reverse order we get that 1 = 5 · 45 − 16 · 14 Since −16 is 29 modulo 45, we get the inverse to be 29.
(b) Use your answer above — calculator answer not acceptable — to find a solution to 14x ≡ 47 mod 45 where x is between 0 and 44.
x = 29 · 47 or 29 · 2 or 58 which is 13 modulo 45.
ab. Suppose not. Then a + b 2
ab
Squaring we get a^2 + 2ab + b^2 4
< ab
This gives a^2 + 2ab + b^2 < 4 ab or a^2 − 2 ab + b^2 < 0 or (a − b)^2 < 0, a contradiction since a square is always at least zero.