>>129
x^2−ax+a−1
=(x−a+1)(x−1)
={x−(a−1)}(x−1)