Assignment 1
Assignment 1
Course: MAD101
Deadline: 1 February, 2024
1.1 Let p be the proposition I will do every exercise in this book and q be the proposition I
will get an A in this course. Express each of these as a combination of p and q.
b) I will get an A in this course and I will do every exercise in this book.
c) Either I will not get an A in this course or I will not do every exercise in this book.
d) For me to get an A in this course it is necessary and sufficient that I do every exercise in
this book.
p ∨ q → p ∧ ¬r.
b) ((p ∨ q) ∧ ¬p) → q.
1.4 Let P (x) be the statement Student x knows calculus and let Q(y) be the statement Class
y contains a student who knows calculus. Express each of these as quantifications of P (x) and
Q(y).
1.5 Determine the truth value of each of these statements if the domain consists of all real
numbers.
a) ∃x, (x3 = 1)
c) ∀x ((−x)2 = x2 )
d) ∀x (2x > x)
1.6 Express each of these statements using mathematical and logical operators, pred- icates,
and quantifiers, where the domain consists of all integers.
1
b) The difference of two positive integers is not necessarily positive.
c) The sum of the squares of two integers is greater than or equal to the square of their sum.
2.1 Let A be the set of English words that contain the letter x, and let B be the set of English
words that contain the letter q. Express each of these sets as a combination of A and B.
2.3 Let f and g be functions from {1, 2, 3, 4} to {a, b, c, d} and from {a, b, c, d} to {1, 2, 3, 4},
respectively, with f (1) = d, f (2) = c, f (3) = a, and f (4) = b, and g(a) = 2, g(b) = 1, g(c) = 3,
and g(d) = 2.
a) Is f one-to-one? Is g one-to-one?
b) Is f onto? Is g onto?
5 X
X 5
b) (i + j)
i=0 j=0
10
X 1
c)
i=1 i(i + 1)(i + 2)
for all n ≥ 1.
2.6 A number lock has a 3-digit code. Can you crack the code from the following hints?
Remark. Students must complete the assignment on paper and do as much as possible.
2
3