Question 50Determine all solutions $(p,n)$ of the equation $$n^3=p^2-p-1,$$ where $p$ is a prime and $n$ is an integer.