GATE / CS ARCHIVE

GATE CSE 2016 SET 1 / QUESTION 1

GATE CSE 2016 Set 1 Q1

Discrete Mathematics · Propositional & Predicate Logic · Full GATE CSE 2016 Set 1 paper

GATE 2016 Set 1, Q1 1 mark · NAT
Report issue

Propositional & Predicate Logic

Question 1, GATE 2016: For an integer x≥2, define p: x belongs to {8,9,10,11,12}; q: x is composite; r: x is a perfect square; s: x is prime. Find x satisfying NOT((p implies q) AND (NOT r OR NOT s)).
Tap to enlarge
Answer & solution

Official answer: 11.0 : 11.0

Our answer: 11

De Morgan gives ¬(p→q)∨(r∧s)=(p∧¬q)∨(r∧s). No integer≥2 is both a perfect square and prime, so the second term is false. Among 8, 9, 10, 11, 12 only 11 is not composite. Therefore x=11.

First replace the implication p⇒q by ¬p∨q. Negating the outside conjunction produces (p∧¬q)∨(r∧s), so only two kinds of integer could qualify. A square x=k2 with x≥2 has k≥2 and a proper divisor k; it cannot also be prime. Consequently x must lie in the listed set while failing compositeness. Checking that set leaves exactly 11, and substituting 11 makes the original inner conjunction false as required.

Original paper, page 4 · Answer key