Discrete Mathematics · free preview
Chapter 7 Problem Set. Additional Topics
Problem set for this chapter. Additional Topics.
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, Modular inverse and exponentiation modulo 113
(a) Find a number such that .
(b) Find a number such that . (Hint. 113 is prime.)
3. Problem 2, Infinite antichain under divisibility
Consider the natural numbers partially ordered by divisibility. Prove that this partial order has an infinite antichain.
4. Problem 3, GCD scaling property proof
Prove that for all .
5. Problem 4, Existence of modular inverse iff coprime
An inverse of modulo is an integer, , such that . Show that has an inverse iff . Hint. We saw how to prove the above when is prime.
6. Problem 5, Powers of 10 modulo 11
Use a result from elsewhere on this problem set to show that .
7. Problem 6, Alternating digit sum divisibility by 11
Using the fact , explain why the alternating digit-sum procedure works.
8. Problem 7, Power sum modulo prime with exponent multiple
Let , where is an odd prime and is a positive multiple of . Use Fermat's theorem to prove that .
9. Problem 8, Two integers with sum or difference divisible by 51
Prove that among every set of 30 integers, there exist two whose difference or sum is a multiple of 51.
10. Problem 9, Ternary strings with matching consecutive digits
(a) Let be the number of length ternary strings (strings of the digits 0, 1, and 2) that contain two consecutive digits that are the same. For example, since the only ternary strings of length 2 with matching consecutive digits are 11, 22, and 33. Also, , since in order to have consecutive matching digits, a string must be of length at least two.
Find a recurrence formula for .
(b) Show that
is a closed form for the generating function of the sequence
(c) Find real numbers and such that
(d) Use the previous results to write a closed form for the th term in the sequence.
11. Problem 10, Generating functions for doughnut selection constraints
Suppose there are four kinds of doughnuts, plain, chocolate, glazed, and butterscotch. Write generating functions for the number of ways to select the flavors of doughnuts, subject to the following different constraints.
(a) Each flavor occurs an odd number of times.
(b) Each flavor occurs a multiple of 3 times.
(c) There are no chocolate doughnuts and at most one glazed doughnut.
(d) There are 1, 3, or 11 chocolate doughnuts, and 2, 4, or 5 glazed.
(e) Each flavor occurs at least 10 times.
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free