The value of k for which the number 3 lies between the roots of the equation x2+(1−2k)x+(k2−k−2)=0 is given by