NumberTheoryBasic IndeterminateEquation

Problem - 2221
Find all nonnegative integers $n$ such that there are integers $a$ and $b$ with the property: $$n^2 = a + b \qquad\text{and}\qquad n^3 = a^2 + b^2$$

report an error