If x^2+qx+1=0 & x^3+px^2+qx+1=0 have a common factor (x+a), a is not equal to 0, value of (p-1)^2-q(