

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
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
There are 12 questions, for a total of 100 points. Note: This version of the exam corrects announced mistakes in the version available earlier. UC Berkeley ...
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!
Math 55, Discrete Mathematics—Spring 2021 Final Exam
Instructions
The due deadline for this exam is Thursday, May 13 at 8:00pm PDT. This is a firm deadline! Be sure to finish your work with enough time to spare for submitting it.
Points will be deducted for late submissions. Gradescope will not accept any submissions after 11:59pm.
The exam is to be completed in a single 3 hour session at any time during the 24-hour window from the release time to the due time. The 3 hour time limit is not enforced, but please do your best to honor it. I have tried to design the exam so that this should be enough time to demonstrate your knowledge.
If you need to take a few extra minutes to finish answering a question or questions that you know how to solve, that is OK. You should not attempt to use the unenforced time limit as a way to cram in extra studying after seeing the questions. Doing so would be stressful and unlikely to significantly improve your score.
You can write answers on paper and scan in PDF format (best) or take pictures (usually lower image quality, so be sure they are readable). You can also write answers on a tablet if you have one, and save them in PDF format.
When you submit your answers, Gradescope will ask you to indicate the page or pages where your answer to each question is located. Gradescope will let you indicate one or multiple questions on each page.
This exam is open book. You may consult the textbook, your own notes, and any other books and non-interactive web resources. Calculators are allowed, but it should be possible to answer all questions doing arithmetic by hand. You may not receive assistance from another person, or give assistance, or use web resources that provide answers to questions interactively.
There are 12 questions, for a total of 100 points.
Note: This version of the exam corrects announced mistakes in the version available earlier.
UC Berkeley Honor Code
“As a member of the UC Berkeley community, I act with honesty, integrity, and respect for others.”
Question 1 (8 points). Let A and B be subsets of the set of real numbers. Does ∀a∈A ∃b∈B (a < b) imply ∃b∈B ∀a∈A (a < b)? If so, explain. If not, give a coun- terexample.
Question 2 (2 points each). Determine whether each of the following functions is injective (= 1-to-1), surjective (= onto), both, or neither. Briefly justify your answers.
(a) f : Z → Z given by f (n) = n^2 (Z is the set of integers),
(b) f : N → N given by f (n) = n^2 (N is the set of non-negative integers),
(c) f : R → R given by f (x) = x^2 (R is the set of real numbers),
(d) f : R+ → R+ given by f (x) = x^2 (R+ is the set of positive real numbers).
Question 3 (a) (5 points). Prove that if r, s and n are positive integers, and r^2 = s^2 n, then n is a perfect square (that is, n is the square of an integer).
(b) (4 points). Use part (a) to prove that if n is a positive integer and not a perfect square, then
n is irrational. Full credit on this part will be given for a correct proof assuming part (a), independent of your answer to (a).
Question 4 (8 points). Recall that the Fibonacci numbers fn are defined by the recurrence
f 0 = 0, f 1 = 1, fn = fn− 1 + fn− 2 for n > 1.
Prove that fn ≤ 2 n−^2 for all n ≥ 2.
Question 5 (a) (4 points). Find a multiplicative inverse of 47 (mod 105).
(b) (4 points). Show that 48 does not have a multiplicative inverse (mod 105).
Question 6 (8 points). Without actually doing the division, show that the number
999 , 999 , 999 , 999 , 999 , 999 , 999 , 999 , 999 , 999 , 999 , 999
(with 36 digits) is divisible by 37.