• edited by
23,787 views
87 87 votes

Which one of the following options is CORRECT given three positive integers $x, y$ and $z$, and a predicate
$$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)$$

  1. $P(x)$ being true means that $x$ is a prime number
  2. $P(x)$ being true means that $x$ is a number other than $1$
  3. $P(x)$ is always true irrespective of the value of $x$
  4. $P(x)$ being true means that $x$ has exactly two factors other than $1$ and $x$

7 Answers

Best answer
83 83 votes

Answer is (A).

$P\left(x\right)= (\neg \left(x=1\right)\wedge \forall y\left(\exists z\left(x=y*z\right) \implies (\left(y=x\right) \vee \left(y=1\right) \right))$

Statement:  $x$ is not equal to $1$ and if there exists some $z$ for all $y$ such that product of $y$ and $z$ is $x$, then $y$ is either the number itself or $1$. This is the definition of prime numbers.

Alternative approach:
The formula

$$\exists x \forall y \forall z[\times (y, z, x) \rightarrow ((y = 1) \vee (z = 1))]$$

expresses the statement "there exists a prime number" (the number $1$ also satisfies this statement).

Note here that $\times (y, z, x)$ is equivalent to $(x = y \times z)$.
but $¬(x=1)$ removes $1$ as satisfying given number in question's formula, so the option (A) is True.
ref@ https://en.wikibooks.org/wiki/Logic_for_Computer_Science/First-Order_Logic#Semantics
ref@ http://math.stackexchange.com/questions/1037795/what-is-the-meaning-of-this-predicate-statement

• edited by
21 21 votes

 So the predicate is evaluated as
    P(x) = (¬(x=1))∧(∀y(∃z(x=y*z)⇒((y=x)∨(y=1))))
P(x) being true means x ≠ 1 and
For all y if there exists a z such that x = y*z then
y must be x (i.e. z=1) or y must be 1 (i.e. z=x)

 It means that x have only two factors first is 1
and second is x itself.

This predicate defines the prime number.

Source: http://clweb.csa.iisc.ernet.in/rahulsharma/gate2011key.html

7 7 votes
lets break this in simple terms

first x cant be 1

now for all y given (

if there is some z such that x=y*z then y=1 or y= x)

now take x=4, then for all y(

take y=1, then some z is 4 i.e 4=1*4 so T->T T

take y=4, then some z is 1 i.e. 4=4*1 so T->T T

take y=2,then some z is 2 i.e.4=2*2 so T->F F as y != 2 or x(4) so it is not true for all y hence x= 4 is eliminated in fact all composite will be false and only prime no will be true for all y because for e.g 7=1*7 or 7=7*1 both cases satisfy this for all y and other than 1 and 7 you cant find any other factors .

so x represents all prime no and 1 is not prime as it is already removed at start.
5 5 votes
Let's consider here   P= R  AND S ( for simplification)

We know that   T AND T=T

                       F AND F=F

                       F AND T =F

To make P(x) = T ,  need to make both R and S , True.

R is true , i.e. NOT(x=1) is true , so ( x=1) is false

hence x is a number other than 1 . (option B)
4 4 votes

Option A is correct 

Condition 1: $\neg(x = 1)$

. It simply states that "$x$ is not equal to 1".

Since our domain is positive integers, this means $x$ must be $2, 3, 4$, or higher.

Condition 2: $\forall y (\exists z (x = y * z) \Rightarrow (y = x) \lor (y = 1))$

Let's break down this implication ($\Rightarrow$):

The "If" part : $\exists z (x = y * z)$

This says, "there exists a positive integer $z$ such that multiplying $y$ by $z$ gives $x$."

 this is the exact definition of divisibility. It means "$y$ is a factor of $x$" (or $y$ divides $x$).

The "Then" part : $(y = x) \lor (y = 1)$

This means "$y$ is equal to $x$, OR $y$ is equal to 1."

Putting Condition 2 together:

"For any positive integer $y$, IF $y$ is a factor of $x$, THEN $y$ must be either $x$ itself or 1."

                                                           $||$

"$x$ is a number greater than 1, AND its only possible factors are 1 and itself."

Mathematically, this is the precise, textbook definition of a prime number.

 

1 1 vote
The predicate is evaluated as
    P(x) = (¬(x=1))∧(∀y(∃z(x=y*z)⇒((y=x)∨(y=1))))

 P(x) being true means x ≠ 1 and For all y if there exists z such that x = y*z then
 y must be x (i.e. z=1) or y must be 1 (i.e. z=x)
 
 It means that x have only two factors first is 1 
 and second is x itself.
 
This predicate defines the prime number.
Answer:
Position:
Show:

Related questions

75 75 votes
4 answers 4 answers
24.4k
24.4k views
go_editor asked Sep 29, 2014
24,447 views
On a non-pipelined sequential processor, a program segment, which is the part of the interrupt service routine, is given to transfer $500$ bytes from an I/O device to mem...
59 59 votes
7 answers 7 answers
20.7k
20.7k views
go_editor asked Apr 21, 2016
20,688 views
An undirected graph $G(V,E)$ contains $n \: (n>2)$ nodes named $v_1,v_2, \dots, v_n$. Two nodes $v_i, v_j$ are connected if and only if $ 0 < \mid i-j\mid \leq 2$. Each ...
28 28 votes
2 answers 2 answers
9.2k
9.2k views
go_editor asked Apr 21, 2016
9,236 views
Consider the following recursive C function that takes two arguments.unsigned int foo(unsigned int n, unsigned int r) { if (n>0) return ((n%r) + foo(n/r, r)); else return...
37 37 votes
3 answers 3 answers
12.8k
12.8k views
go_editor asked Apr 21, 2016
12,794 views
Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration.If all the flip-flops were reset to $0$ at power on, what...