If the equation sin−1(x2+x+1)+cos−1(ax+1)=π2 has exactly two solutions, then a cannot have the integral value/s