Skip to content
GATEiit

GATE CSE 2019 Q45: Which sets satisfy a first-order formula about primes

Syllabus topic: Propositional and first-order logic

Question

Consider the first order predicate formula φ:

∀x [(∀z z∣x⇒((z=x)∨(z=1)))⇒∃w (w>x)∧(∀z z∣w⇒((w=z)∨(z=1)))]

Here 'a∣b' denotes that 'a divides b', where a and b are integers. Consider the following sets:

S1. {1,2,3,…,100}

S2. Set of all positive integers

S3. Set of all integers

Which of the above sets satisfy φ?

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 2/3 mark in GATE.
Show answer and explanation

Answer: C (official GATE 2019 final answer key)

Concept used: The formula says: for every 'prime-like' x (whose only divisors in the domain are 1 and x) there is a larger prime-like w; it holds in a domain exactly when there is no largest such element.

Concept notes

Loading notes…

First step: Read the inner condition as 'x is prime within the domain'; check whether S1 has a largest prime, then remember that in all integers negative divisors such as −1 also count.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Propositional and first-order logic

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2019 CS question paper and final answer key, organised by IIT Madras. Question paper · Answer key