# Whole number solutions for a polynomial?

I forgot the rule for checking to see if a polynomial has any whole numbers solutions? In my case, specifically this cubic equation:

$$\displaystyle B^3 + 2B^2 + 2B + 4$$

#### alexmahone

$$\displaystyle B^3+2B^2+2B+4=0$$

$$\displaystyle B^2(B+2)+2(B+2)=0$$

$$\displaystyle (B+2)(B^2+2)=0$$

$$\displaystyle B=-2$$ is the only solution.