The median is defined as the central value( after arranging data in ascending/descending order).
eg: 1,5,45 ----Here the median is 5
eg: -82,-15,45---Here the median is -15
Coming to the problem..
v_leonardo Wrote:I rearrange set S to: -2, 1, 5, 8 then where can I put n?
This is correct.
v_leonardo Wrote:from (1), n has to be between 1 and 5-. So 1<n<5- --> SUFF
This is Wrong:
From Statement 1:The median of the numbers in S is less than 5.
This means the median can anything less than 5
Case 1:Let n=3;
eg:-2, 1,3,5,8---Here the median is 3( Which is less than 5) and (n=3) is between 0 and 7. Thus
Yes( This is a Yes/ No type DS question)
Case 2: Let
n=-100;
eg:-100,-2, 1,5,8------Here the median is 1 ( Which is less than 5) and (n=-100) is not between 0 and 7.Thus
NoHence Statement 1 is not sufficient.v_leonardo Wrote:from (2), n has to be between 1+ and 5, So 1+<n<5 --> SUFF
This is also Incorrect:
Moving on to Statement 2:The median of the numbers in S is greater than 1.
Case 1:Let n=3;
eg:-2, 1,3,5,8---Here the median is 3( Which is greater than 1) and (n=3) is between 0 and 7. Thus
YesCase 2: Let n=100;
eg:-2,1,5,8,100,-------Here the
median is 5 ( Which is greater than 1) and (n=100) is not between 0 and 7.Thus
NoHence Statement 2 is not sufficient.Combining both Statements together,
The median of the numbers should be between 1 and 5.
Mathematically, 1<Median<5
Try for extreme cases here ( You can also opt for the conventional method by checking values that satisfy the condition)
Case 1: Try putting n=( More than 7). eg: n=8
ie; -2,1,5,8,8...For all cases where n>=7, the median will be 5. But as per our condition 1<Median<5.
Case 2: Try putting n=(Less than 0). eg: n=-1
ie;-2,-1,1,5,8...For all cases where n<=0, the median will be 1 , which again violates our condition of 1<Median<5.
Therefore,Only values of n where 0< n< 7, will satisfy 1<Median<5.
Hence answer is C.