Use the remainder theorem to determine the remainder when $\left(3 x^{3}-2 x^{2}+x-5\right)$ is divided by $(x+2)$
By the remainder theorem, the remainder is given by $a p^{3}+b p^{2}+c p+d$, where $a=3, b=-2, c=1$, $d=-5$ and $p=-2$
Hence the remainder is:
$$
\begin{aligned}
&3(-2)^{3}+(-2)(-2)^{2}+(1)(-2)+(-5) \\
&\quad=-24-8-2-5 \\
&\quad=-39
\end{aligned}
$$