Skip to content
Official PYQ · 2016

GATE CS 2016 Set 1 Q1 — Propositional and First Order Logic

Explain with AI

Let p,q,r,sp, q, r, s represents the following propositions.

  • p:x∈{8,9,10,11,12}p:x\in\left\{8, 9, 10, 11, 12\right\}
  • q:q: xx is a composite number.
  • r:r: xx is a perfect square.
  • s:s: xx is a prime number.


The integer x≥2x\geq2 which satisfies ¬((p⇒q)∧(¬r∨¬s))\neg\left(\left(p\Rightarrow q\right) \wedge \left(\neg r \vee \neg s\right)\right) is ____________.

View worked solution

Answer: 11

To find the integer x≥2x \geq 2 that satisfies the given proposition, we can simplify the logical expression using the laws of propositional logic.

Let the given expression be:

ϕ=¬((p⇒q)∧(¬r∨¬s))\phi = \neg \big( (p \Rightarrow q) \wedge (\neg r \vee \neg s) \big)

Using De Morgan's laws, we can distribute the negation:

ϕ≡¬(p⇒q)∨¬(¬r∨¬s)\phi \equiv \neg(p \Rightarrow q) \vee \neg(\neg r \vee \neg s)

Recall that the negation of an implication is ¬(p⇒q)≡p∧¬q\neg(p \Rightarrow q) \equiv p \wedge \neg q. Applying this and De Morgan's law to the second term:

ϕ≡(p∧¬q)∨(r∧s)\phi \equiv (p \wedge \neg q) \vee (r \wedge s)

Step 1: Analyze the term (r∧s)(r \wedge s)

  • r:xr: x is a perfect square.
  • s:xs: x is a prime number.

For any integer x≥2x \geq 2, a number cannot be both a perfect square and a prime number. Thus, r∧sr \wedge s is always False.


Step 2: Analyze the term (p∧¬q)(p \wedge \neg q)

Since (r∧s)(r \wedge s) is False, the expression simplifies to:

ϕ≡(p∧¬q)∨False≡p∧¬q\phi \equiv (p \wedge \neg q) \vee \text{False} \equiv p \wedge \neg q

Now we evaluate p∧¬qp \wedge \neg q:

  • p:x∈{8,9,10,11,12}p: x \in \{8, 9, 10, 11, 12\}
  • ¬q:x\neg q: x is not a composite number. Since x≥2x \geq 2, this means xx must be a prime number.

Therefore, xx must belong to the set {8,9,10,11,12}\{8, 9, 10, 11, 12\} and must be a prime number.

The only prime number in this set is 1111.


Conclusion

The only integer x≥2x \geq 2 that satisfies the given proposition is 11.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Propositional and First Order Logic questions