P says "Both of us are knights".
Q says "None of us are knaves".
Which one of the following can be logically inferred from the above?
This problem involves a classic logic puzzle type where inhabitants are either Knights (always truthful) or Knaves (always liars). We need to determine the identities of P and Q based on their statements.
Let K denote Knight and V denote Knave.
P's Statement: "Both of us are knights."
Q's Statement: "None of us are knaves." (This is logically equivalent to "Both of us are knights.")
Let $S_P$ be the statement "P is Knight and Q is Knight". Let $S_Q$ be the statement "P is Knight and Q is Knight". Note that $S_P$ and $S_Q$ are identical statements.
We examine the possible identities of P:
We found two possible and consistent scenarios:
Since both possibilities exist, we cannot definitively determine the identities of P and Q based solely on the given statements.
Therefore, the correct inference is that the identities of P and Q cannot be determined.
Consider a linear arrangement of seven bulbs, each of which can be in the ON or OFF states. The initial configuration of the bulbs is shown in the figure. In every Step, the states of the bulbs are changed based on the following rules:
The state of bulbs at the end of Step 1 and Step 2 are also shown in the figure.
The number of bulbs which are ON at the end of Step 8 is ______

Consider a five-digit number PQRST that has distinct digits P, Q, R, S and T, and satisfies the following conditions:
$P < Q$
$S > P > T$
$R < T$
If integers 1 through 5 are used to construct such a number, the value of P is: