Assignment 1 MCA DM
Assignment 1 MCA DM
MCA I st Semester
Assignment 1, Nov 2024
Subject: Discrete Mathematics (MA 3001)
Sections: 24C2A1, 24C2A2, 24C2B1, 24C2B2 & 24C2C1
p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
9. Show that each of these conditional statements is a tautology by using truth tables.
(a) ¬p → (p → q)
(b) ¬(p → q) → ¬q
(c) [p ∧ (p → q)] → q
10. Use the laws and show that each of the following statements are Tautology
(a) p → (p ∨ q)
(b) ¬(p → q) → p
Page 2
(c) [¬p ∧ (p ∨ q)] → q
11. Show that p ↔ q and (p ∧ q) ∨ (¬p ∧ ¬q) are logically equivalent.
12. Show that (p → r) ∨ (q → r) and (p ∧ q) → r are logically equivalent.
Page 3
(a) A student in your school has lived in Vietnam.
(b) There is a student in your school who cannot speak Hindi.
(c) A student in your school knows Java, Prolog, and C++.
(d) Everyone in your class enjoys Thai food.
(e) Someone in your class does not play hockey
18. Express each of these statements using predicates, quantifiers, and logical connectives.
(a) At least one mail message, among the non-empty set of messages, can be saved
if there is a disk with more than 10 Kilobytes of free space.
(b) Whenever there is an active alert, all queued messages are transmitted.
(c) The diagnostic monitor tracks the status of all systems except the main console.
(d) Each participant on the conference call whom the host of the call did not put
on a special list was billed.
19. Let L(x, y) be the statement “x loves y.” where the domain of both x and y consists
of all people in the world. Use quantifiers to express each of these statements.
(a) Everybody loves Jerry.
(b) Everybody loves somebody.
(c) There is somebody whom everybody loves.
(d) There is somebody whom Lina does not love.
(e) Everyone loves himself or herself.
20. Use quantifiers and predicates with more than one variable to express these state-
ments
(a) Every CS student needs a course in DM.
(b) There is a student in this class who owns a personal computer.
(c) Every student in this class has taken at least one CS course.
(d) Every student in this class has been in every building on campus.
(e) There is a student in this class who has taken at least one course in CS.
21. Translate each of these nested quantifications into an English statement that ex-
presses a mathematical fact.
(a) ∃x∀y(xy = y)
(b) ∀x∀y(((x < 0) ∧ (y < 0)) → (xy > 0))
(c) ∃x∃y((x2 > y) ∧ (x < y))
(d) ∀x∀y∃z(x + y = z)
22. Express the negation of these propositions using quantifiers, and in English.
(a) Every student in this class likes mathematics.
Page 4
(b) There is a student in this class who has never seen a computer.
(c) There is a student in this class who has taken every mathematics course offered
in this school.
(d) There is a student in this class who has been in at least one room of every
building on campus.
24. Use rules of inference to show that the hypotheses “Reeta works hard,” “If Reeta
works hard, then she is a dull girl,” and “If Reeta is a dull girl, then she will not get
the job” imply the conclusion “Reeta will not get the job.”
25. What rules of inference are used in this argument? “All men are mortal. Socrates is
a man. Therefore, Socrates is mortal.”
26. For each of these collections of premises, what relevant conclusion or conclusions can
be drawn? Explain the rules of inference used to obtain each conclusion from the
premises.
(a) “I am either clever or lucky.” “I am not lucky.” “If I am lucky, then I will win
the lottery.”
(b) “All rodents gnaw their food.” “Mice are rodents.” “Rabbits do not gnaw their
food.” “Bats are not rodents.”
(c) “I am either dreaming or hallucinating.” “I am not dreaming.” “If I am hallu-
cinating, I see elephants running down the road.”
27. 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.
28. Use rules of inference to show that if ∀x(P (x) ∨ Q(x)), ∀x(¬Q(x) ∨ S(x)), ∀x(R(x) →
¬S(x)), and ∃x(¬P (x)) are true, then ∃x(¬R(x)) is true.
Page 5
29. Show that the proposition P (0) is true, where P (n) is “If n > 1, then n2 > n” and
the domain consists of all integers.
30. Let P (n) be “If a and b are positive integers with a ⩾ b, then an ⩾ bn ,” where the
domain consists of all nonnegative integers. Show that P (0) is true.
34. Give a proof by contradiction of the theorem “If 3n + 2 is odd, then n is odd.”
35. Show that these statements about the integer n are equivalent:
p1 : n is even.
p2 : n − 1 is odd.
p3 : n2 is even.
36. Use a direct proof to show that the sum of two odd integers is even.
37. Use a direct proof to show that every odd integer is the difference of two squares.
38. Use a proof by contradiction to prove that the sum of an irrational number and a
rational number is irrational.
39. Use a proof of contraposition to show that if x + y ⩾ 2, where x and y are real
numbers, then x ≥ 1 or y ≥ 1.
40. Prove that if n is a positive integer, then n is odd if and only if 5n + 6 is odd.
Page 6