Discrete Mathematics · free preview

Chapter 2 Problem Set. Logic and Proofs

Problem set for this chapter. Logic and Proofs.

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 8 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, Proposition equivalence and implication

Consider the propositions:

P:(A∨B)⇒CP: (A \lor B) \Rightarrow C

Q:(¬C⇒¬A)∨(¬C⇒¬B)Q: (\neg C \Rightarrow \neg A) \lor (\neg C \Rightarrow \neg B)

Which of the following best describes the relationship between PP and QQ? Circle exactly one answer.

  1. PP and QQ are equivalent
  1. P⇒QP \Rightarrow Q
  1. Q⇒PQ \Rightarrow P
  1. All of the above
  1. None of the above

Draw a truth table to illustrate your reasoning.

3. Problem 2, Induction predicate classification case A

Suppose S(n)S(n) is a predicate on natural numbers, nn, and suppose ∀k∈N  S(k)⟶S(k+2)\forall k \in \mathbb{N}\; S(k) \longrightarrow S(k+2) (1). If (1) holds, indicate whether the assertion must always (A) hold, can (C) hold but not always, or can never (N) hold by circling the correct letter. (a) (∀n≤100 S(n))∧(∀n>100 ¬S(n))(\forall n \le 100\, S(n)) \wedge (\forall n > 100\, \neg S(n))

4. Problem 3, Irrationality of cube root of 2 via sensible numbers

A real number rr is called sensible if there exist positive integers aa and bb such that a/b=r\sqrt{a/b} = r. For example, setting a=2a = 2 and b=1b = 1 shows that 2\sqrt{2} is sensible. Prove that 23\sqrt[3]{2} is not sensible. (Consider only positive real roots in this problem.)

5. Problem 4, Formal logic predicates for nonnegative integers

Express each of the following predicates and propositions in formal logic notation. The domain of discourse is the nonnegative integers, N\mathbb{N}. In addition to the propositional operators, variables and quantifiers, you may define predicates using addition, multiplication, and equality symbols, but no constants (like 0,1,…0, 1, \ldots). For example, the proposition ``nn is an even number'' could be written

∃m. (m+m=n).\exists m.\, (m + m = n).

(a) nn is the sum of three perfect squares. Since the constant 00 is not allowed to appear explicitly, the predicate ``x=0x = 0'' can't be written directly, but note that it could be expressed in a simple way as:

x+x=x.x + x = x.

Then the predicate x>yx > y could be expressed

∃w. (y+w=x)∧(w≠0).\exists w.\, (y + w = x) \land (w \neq 0).

Note that we've used `w≠0w \neq 0'' in this formula, even though it's technically not allowed. But since w≠0w \neq 0'' is equivalent to the allowed formula ¬(w+w=w)\neg(w + w = w),'' we can use w≠0w \neq 0'' with the understanding that it abbreviates the real thing. And now that we've shown how to express `x>yx > y'', it's ok to use it too. (b) x>1x > 1. (c) nn is a prime number. (d) nn is a product of two distinct primes. (e) There is no largest prime number. (f) (Goldbach Conjecture) Every even natural number n>2n > 2 can be expressed as the sum of two primes. (g) (Bertrand's Postulate) If n>1n > 1, then there is always at least one prime pp such that n<p<2nn < p < 2n.

6. Problem 5, Validity and countermodel for quantifier implication

(a) Prove that

∃z. [P(z)∧Q(z)]⟶[∃x. P(x)∧∃y. Q(y)](1)\exists z.\, [P(z) \land Q(z)] \longrightarrow [\exists x.\, P(x) \land \exists y.\, Q(y)] \quad (1)

is valid. (Use the proof in the subsection on Validity in Week 2 Notes as a guide to writing your own proof here.) (b) Prove that the converse of (1) is not valid by describing a counter model as in Week 2 Notes.

7. Problem 6, Powers of 2 chain maximal

Now restrict the domain to the natural numbers ≤n\le n. Consider the chain 1≺2≺4≺⋯≺2⌊log⁡2n⌋1 \prec 2 \prec 4 \prec \dots \prec 2^{\lfloor \log_2 n \rfloor}. Prove that it is maximal.

8. Problem 7, Lower bound on schedule time

Explain why any schedule that requires only pp processors to complete nn tasks must take time at least ⌈n/p⌉\lceil n/p \rceil.

9. Problem 8, Tiling 8x8 board with 32 dominos

Can you tile an 8×88 \times 8 chessboard with 32 dominos?

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free