Discrete Mathematics · free preview
Final Exam
Final exam covering the whole course.
1. How this assessment works
This lesson is a curated assessment adapted from MIT OpenCourseWare 6.042J Mathematics for Computer Science (Spring 2015) (https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-spring-2015/), used under CC BY-NC-SA 4.0. Work through the 10 problems in order, for each problem, type your reasoning in the answer box or write it on the handwriting pad, then submit it for AI grading.
How the grading works Every problem is graded by an AI mathematics teacher that reads the official solution shipped with the course. It checks your work criterion by criterion, awards partial credit for correct steps, and returns written feedback. Equivalent mathematics and valid alternative methods are accepted, a different route to the same result can still earn full marks.
If your answer is incomplete, the feedback names exactly which steps are missing, so you can correct them and try again.
2. Problem 1, Bipartite graph for truncated chessboard tiling
Given a truncated chessboard, show how to construct a bipartite graph that has a perfect matching if and only if the chessboard can be tiled with dominos.
3. Problem 2, Expected number on phone
There are about 250,000,000 people in the United States who might use a phone. Each person is on the phone during each minute independently with probability . What is the expected number of people on the phone at a given moment?
4. Problem 3, Identify error in strong induction proof
Let’s try to use strong induction prove that a class with students can be divided into groups of 4 or 5.
Proof. The proof is by strong induction. Let be the proposition that a recitation with students can be divided into teams of 4 or 5.
First, we prove that is true for , or by showing how to break classes of these sizes into groups of 4 or 5 students:
Next, we must show that imply for all . Thus, we assume that are all true and show how to divide up a class of students into groups of 4 or 5. We first form one group of 4 students. Then we can divide the remaining students into groups of 4 or 5 by the assumption . This proves , and so the claim holds by induction.
This proof contains a critical logical error. (In fact, the claim is false!) Identify the first sentence in the proof that does not follow and explain what went wrong.
Provide a correct strong induction proof that a class with students can be divided into groups of 4 or 5.
5. Problem 4, Inclusion-exclusion expression for non-derangements
Use the inclusion-exclusion formula to express the number of non-derangements in terms of sizes of possible intersections of the sets .
6. Problem 5, Hall condition for domino-tilable truncated chessboard
Based on this construction and Hall's theorem, can you state a necessary and sufficient condition for a truncated chessboard to be tilable with dominos? Try not to mention graphs or matchings!
7. Problem 6, Expected minutes until first overload
What is the expected number of minutes (approximately) until the system is overloaded for the first time?
8. Problem 7, Correct strong induction proof for groups
Provide a correct strong induction proof that a class with students can be divided into groups of 4 or 5.
9. Problem 8, Counterexample to power congruence with nonnegative bases
Suppose and . Prove or disprove where .
10. Problem 9, Expected number of maximum updates
We are given a set of distinct positive integers. We determine the maximum by, randomly arranging the numbers in a sequence; let the current maximum initially be the first number and the current element be the second element; if the current element is greater than the current maximum, perform an update (change the current maximum to the current element); either way, change the current element to the next element of the sequence; repeat until there is no next element. Prove that the expected number of updates is . Hint. Let be the indicator variable for the event that the th element of the sequence is bigger than all the previous elements in the sequence.
11. Problem 10, Mininim game winning strategy
The game of Mininim is defined as follows. Some positive number of sticks are placed on the ground. Two players take turns removing one, two, or three sticks. The player to remove the last one loses.
Use strong induction to show that:
The second player has a winning strategy if the number of sticks, equals for some ; otherwise, the first player has a winning strategy.
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free