x4-x3-7x2+13x-6
=x^3(x-1)-(7x^2-13x+6)
=x^3(x-1)-(7x-6)(x-1)
=(x^3-7x-6)(x-1)
={x^2(x-1)-6(x-1)}(x-1)
=(x^2-6)(x-1)^2