Homework Week 1
Discrete Mathematics · 16 problems · solutions not included
Problem 1
Which of these sentences are propositions? What are the truth values of those that are propositions?
- Boston is the capital of Massachusetts.
- Miami is the capital of Florida.
- 2 + 3 = 5.
- 5 + 7 = 10.
- x + 2 = 11.
- Answer this question.
Problem 5
What is the negation of each of these propositions?
- Mei has an MP3 player.
- There is no pollution in New Jersey.
- 2 + 1 = 3.
- The summer in Maine is hot and sunny.
Problem 11
Let \(p\) and \(q\) be the propositions:
\(p\): “Swimming at the New Jersey
shore is allowed.”
\(q\): “Sharks have been spotted near
the shore.”
Express each of these compound propositions as an English sentence.
- \(\neg q\)
- \(p \land q\)
- \(\neg p \lor q\)
- \(p \to \neg q\)
- \(\neg q \to p\)
- \(\neg p \to \neg q\)
- \(p \leftrightarrow \neg q\)
- \(\neg p \land (p \lor \neg q)\)
Problem 13
Let \(p\) and \(q\) be the propositions:
\(p\): It is below freezing.
\(q\): It is snowing.
Write these propositions using \(p\) and \(q\) and logical connectives, including negations.
- It is below freezing and snowing.
- It is below freezing but not snowing.
- It is not below freezing and it is not snowing.
- It is either snowing or below freezing (or both).
- If it is below freezing, it is also snowing.
- Either it is below freezing or it is snowing, but it is not snowing
if it is below freezing.
- That it is below freezing is necessary and sufficient for it to be snowing.
Problem 19
Determine whether each of these conditional statements is true or false.
- If \(1 + 1 = 2\), then \(2 + 2 = 5\).
- If \(1 + 1 = 3\), then \(2 + 2 = 4\).
- If \(1 + 1 = 3\), then \(2 + 2 = 5\).
- If monkeys can fly, then \(1 + 1 = 3\).
Problem 21
For each of these sentences, determine whether an inclusive or, or an exclusive or, is intended. Explain your answer.
- Coffee or tea comes with dinner.
- A password must have at least three digits or be at least eight
characters long.
- The prerequisite for the course is a course in number theory or a
course in cryptography.
- You can pay using U.S. dollars or euros.
Problem 31
How many rows appear in a truth table for each of these compound propositions?
- \(p \to \neg p\)
- \((p \lor \neg r) \land (q \lor \neg
s)\)
- \(q \lor p \lor \neg s \lor \neg r \lor
\neg t \lor u\)
- \((p \land r \land t) \leftrightarrow (q \land t)\)
Problem 33
Construct a truth table for each of these compound propositions.
- \(p \land \neg p\)
- \((p \lor \neg q) \to q\)
- \((p \to q) \leftrightarrow (\neg q \to
\neg p)\)
- \((p \to q) \to (q \to p)\)
Problem 35
Construct a truth table for each of these compound propositions.
- \((p \lor q) \to (p \oplus
q)\)
- \((p \oplus q) \to (p \land
q)\)
- \((p \lor q) \oplus (p \land
q)\)
- \((p \oplus q) \to (p \oplus \neg q)\)
Problem 37
Construct a truth table for each of these compound propositions.
- \(p \to \neg q\)
- \(\neg p \leftrightarrow q\)
- \((p \to q) \lor (\neg p \to
q)\)
- \((p \leftrightarrow q) \lor (\neg p
\leftrightarrow q)\)
- \((\neg p \leftrightarrow \neg q) \leftrightarrow (p \leftrightarrow q)\)
Problem 39
Construct a truth table for each of these compound propositions.
- \(p \to (\neg q \lor r)\)
- \(\neg p \to (q \to r)\)
- \((p \to q) \lor (\neg p \to
r)\)
- \((p \to q) \land (\neg p \to
r)\)
- \((p \leftrightarrow q) \lor (\neg q
\leftrightarrow r)\)
- \((\neg p \leftrightarrow \neg q) \leftrightarrow (q \leftrightarrow r)\)
Problem 47
Find the bitwise OR, bitwise AND, and bitwise XOR of each of these pairs of bit strings.
- 101 1110, 010 0001
- 1111 0000, 1010 1010
- 00 0111 0001, 10 0100 1000
- 11 1111 1111, 00 0000 0000
Problem 1
Translate the given statement into propositional logic using the propositions provided.
“You cannot edit a protected Wikipedia entry unless you are an administrator.”
Use:
\(e\): You can edit a protected
Wikipedia entry.
\(a\): You are an administrator.
Problem 5
Translate the given statement into propositional logic using the propositions provided.
“You are eligible to be President of the U.S.A. only if you are at least 35 years old, were born in the U.S.A., or at the time of your birth both of your parents were citizens, and you have lived at least 14 years in the country.”
Use:
\(e\): You are eligible to be
President of the U.S.A.
\(a\): You are at least 35 years
old.
\(b\): You were born in the
U.S.A.
\(p\): At the time of your birth, both
of your parents were citizens.
\(r\): You have lived at least 14 years
in the U.S.A.
Problem 45
Find the output of each combinatorial circuit.
- Circuit shown in the book/image.
- Circuit shown in the book/image.
Problem 47
Construct a combinatorial circuit using inverters, OR gates, and AND gates that produces the output:
\[ ((\neg p \lor \neg r) \land \neg q) \lor (\neg p \land (q \lor r)). \]