If the sum of the squares of the roots of the equation x2−(a−2)x−(a+1)=0 is least, then the value of a is