Question
Let represent the following propositions.
is a composite number
is a perfect square
is a prime number
The integer which satisfies is _____.
Official answer and solution
- Official answer
- 11
- From
- Official GATE 2016 answer key
Solution
Simplify the propositional logic expression using De Morgan's laws and test for prime/composite conditions.
We are given the compound proposition:
Recall that . By De Morgan's laws:
Here:
Therefore:
Examine the second disjunct :
- is a perfect square ( for some integer ).
- is a prime number.
For any integer , if is a perfect square , then , so has proper divisors , which means is composite. A composite number cannot be prime. Hence, no integer can be both a perfect square and a prime number. Thus, is identically FALSE.
The proposition simplifies to:
- is NOT composite
Among the candidate values in : - (composite)
- (composite)
- (composite)
- (prime, hence not composite)
- (composite)
Only satisfies .
Thus, the required integer is 11.
11
Assuming might hold for or , forgetting that primes cannot be non-trivial squares.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2016 Computer Science and Information Technology (CS) Session 1
- Question
- 11 of 65, printed as CS Q.1
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.