# number theory problem

Find the number of elements in the set

$\large S=\left \{x \in \mathbb Z \ \Bigg| \ \frac {x^3-3x+2}{2x+1} \in \mathbb Z \right \}$

×