The equation x2+px−q=0 has one root as a square root of the other. If p3+q2=q(1+kp), find the value of k.