We can use the polynomial remainder theorem here.
![-2m^3+m^2-m+1](https://img.qammunity.org/2019/formulas/mathematics/college/71calhybd1j6umh861kv58zib4mdwun1m8.png)
will be exactly divisible by
![m+1](https://img.qammunity.org/2019/formulas/mathematics/college/wvn96kr3z7uuhe8my5szagiszl2au65ikk.png)
if the remainder upon division of it by
![m+1](https://img.qammunity.org/2019/formulas/mathematics/college/wvn96kr3z7uuhe8my5szagiszl2au65ikk.png)
is 0. The PRT says that this remainder is exactly equal to the value of the polynomial when
![m=-1](https://img.qammunity.org/2019/formulas/mathematics/middle-school/uo80dyu7ga8nvso96kh5jnyutufzkz5i8v.png)
. We have
![-2(-1)^3+(-1)^2-(-1)+1=5](https://img.qammunity.org/2019/formulas/mathematics/college/9g58k3ytbxbdbkeo44nfg6fnkjdq8gtd2l.png)
Since the remainder is 5, that's how much we should subtract from the original polynomial. So the integer that we need to add is -5.
To confirm: by the PRT, the remainder should be 0. We get
![-2(-1)^3+(-1)^2-(-1)+1-5=0](https://img.qammunity.org/2019/formulas/mathematics/college/jmlkpkp40r73rl4r38edc6vlgjhdnc9t88.png)