Find the value of k, if x − 1 is a factor of p(x) in each of the following cases:
(i) p(x) = x2 + x + k (ii)
(iii) (iv) p(x) = kx2 − 3x + k