Question 174Let $n$ be a nonnegative integer. Prove that the numbers $n+2$ and $n^{2}+n+1$ cannot both be perfect cubes.