Question 39874
y^2 - y + c divided by y + 1 = y-2

Dividing by y+1 gives a quotient of y-2 with a remaincer of (c+2)
You want c+2 = 0
You want c=-2
Cheers,
Stan H.