Your question isn't entirely clear.
(x2 - ax -4)/(x +1) will have only a single solution if x +1 is a factor of the numerator.
If (x + 1)(x - q) = xx - ax -4
x2 - (1-q)x - q must be identically equal to x2 - ax -4, i.e. q = 4 and -a = -(1-q) => a = 3
As long as x not equal -1 then the factor will divide out and the equation will have the single root x = 4.