If (x + 1) is a factor of the polynomial \(x^{3} + px^{2} + x…