(i) The numbers $m$ and $n$ satisfy
$$
m^3=n^3+n^2+1. \tag{*}
$$
(a) Show that $m>n$. Show also that $m<n+1$ if and only if $2n^2+3n>0$. Deduce that $n<m<n+1$ unless $-\tfrac32\leqslant n\leqslant0$.
(b) Hence show that the only solutions of $(*)$ for which both $m$ and $n$ are integers are $(m,n)=(1,0)$ and $(m,n)=(1,-1)$.
(ii) Find all integer solutions of the equation
$$
p^3=q^3+2q^2-1.
$$