Consider the quadratic equation x2+2(k−1)x+k=0, where k is a real parameter.
(i) Express the discriminant of the equation in terms of k.
(ii) Hence determine all integer values of k for which the equation has real and equal roots.
(iii) For each value of k obtained in part (ii), find the common root of the equation.