Skip to content
Official PYQ · 2011

GATE CS 2011 Q30 — Propositional and First Order Logic

Explain with AI

Which one of the following options is CORRECT given three positive integers x,yx, y and zz, and a predicate
P(x)=¬(x=1)∧∀y(∃z(x=y∗z)⇒(y=x)∨(y=1))P\left(x\right) = \neg \left(x=1\right)\wedge \forall y \left(\exists z\left(x=y*z\right) \Rightarrow \left(y=x\right) \vee \left(y=1\right) \right)

Choose one option
View worked solution

Answer: A

Let us analyze the predicate P(x)P(x) step-by-step:

  1. First part: ¬(x=1)\neg(x=1)
    Since xx is a positive integer, this condition specifies that x≠1x \neq 1, meaning x≥2x \ge 2.
  2. Second part: ∀y(∃z(x=y∗z)⇒(y=x)∨(y=1))\forall y \left(\exists z\left(x=y*z\right) \Rightarrow \left(y=x\right) \vee \left(y=1\right) \right)
    • The term ∃z(x=y∗z)\exists z (x = y * z) means that yy is a divisor (or factor) of xx in the domain of positive integers.
    • The implication states that if yy is a divisor of xx, then yy must be either xx itself or 11.

Combining both parts, P(x)P(x) is true if and only if xx is a positive integer greater than 11 whose only positive divisors are 11 and xx itself. This is the definition of a prime number.

Thus, the correct option is A.

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

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