A list consists of n integers.
Consider the following statements:
P: n is odd.
Q: The median of the list is one of the numbers in the list.
Which one of the following is true?
- AP is necessary and sufficient for Q.
- BP is necessary but not sufficient for Q.
- CP is sufficient but not necessary for Q.
- DP is not necessary and not sufficient for Q.
Show the answer and worked solution
answer · C
- AP is necessary and sufficient for Q.
- BP is necessary but not sufficient for Q.
- CP is sufficient but not necessary for Q.
- DP is not necessary and not sufficient for Q.
If n is odd the median is the single middle entry, which is certainly a member of the list — so P is sufficient. It is not necessary: the list 1, 2, 2, 3 has an even length, yet its median is 2+22 = 2, which does appear in the list.