Beruflich Dokumente
Kultur Dokumente
Name:_________________________________________________
Mid-term
IMPORTANT:
1) This is a closed book test
2) No cell phone is allowed.
3) The answers are to be written in the spaces provided.
GOOD LUCK!
Q1. (8 points) Suppose P(x, y) is a predicate and the domain for the variables x and y is
{1, 2}. Suppose P(1, 1), P(1, 2) are true, and P(x, y) is false otherwise. Determine
the truth value of the statements:
y = 1, x = 1
y = 2, x = 1
There is an example (x = 1, y = 1)
y = 1, x = 1
y = 2, x = 2
2
Q2. (4 points) We express
using quantifiers as follows:
Let C(x, y) mean that person x has chatted with person y. The given statement is
x y (y x (z = y C(x,z ))))
Then form the negation of the statement so that no negation is to the left of a
quantifier. Next, express the negation in simple English. (Do not simply use the
x ¬ (z = y C(x,z ))))
In English, everybody in this class has either chatted with no one else or has
chatted with two or more others.
3
(6 points) Express each of these statements using quantifiers. Then form the
negation of the statement so that no negation is to the left of a quantifier. Next,
Let
S (x, y) mean that student x has solved exercise y, and let B(y, z )
mean that exercise y is in section z of the book.
4
Q5. (2 points) Determine whether the argument is correct or incorrect and explain why.
Q6. (2 points) Suppose that the domain of the propositional function P(x) consists of 1,
2, 3, 5, 7 and 9. Express the following statement without using quantifiers, instead
using only negations, disjunctions, and conjunctions.
5
Q7. (2 points) Find a counterexample, if possible, to these universally
quantified statements, where the domain for all variables consists of all integers.
x y(y2 = x)
<Answer> x = -1
(6 points) Use rules of inference to show that if x(P(x) (Q(x) S(x))) and
x(P(x) R(x)) are true, then x(R(x) S(x)) is true.
<Answer>
x(P(x) R(x)) Premise
P(a) R(a) Universal instantiation from (1)
P(a) Simplification from (2)
x(P(x) (Q(x) S(x))) Premise
Q(a) S(a) Universal modus ponens from (3) and (4)
S(a) Simplification from (5)
R(a) Simplification from (2)
R(a) S(a) Conjunction from (7) and (6)
x(R(x) S(x)) Universal generalization from (5)
6
(6 points) +
(4 points) Prove or disprove that if and are rational numbers, then is also
rational.
7
Q11. (8 points) Prove that is irrational by giving a proof by contradiction. If
required, use <Lemma: is even, and so is even>.
8
Q12. (4 points) 280 = 2 (mod 139) and 4203 = 33 (mod 139). Find a.
(a)
<Answer> a = 66
(b)
<Answer> a = 35
Q14. (4 points)
(a) What is LCM (15876, 432) where 15876 = 223472, 432=2433 ?
<Answer> 243472
<Answer> 2233