I have been trying to solve the equation $y^2 = x^3 + 16$ over the integers, but failed to do so.
This is my incomplete solution:
$$(y - 4)(y + 4) = x^3$$
Case 1
$$\gcd(y - 4, y + 4) = 1$$ Let $m$ and $n$ be coprime integers. $$y - 4 = m^3$$ $$y + 4 = n^3$$ $$n > m$$ $$x^3 = m^3n^3$$
$$n^3 - m^3 = 8$$ $$(n - m)(n^2 + nm + m^2)$$
If $2$ divides $y - 4$, then $2$ also divides $y + 4$, so $y - 4$ and $y + 4$ are not divisible by $2$.
$$n ≡ m ≡ 1 \pmod 2 \implies n^2 + mn + n^2 ≡ 1 \pmod 2$$
In order for the $n^3 - m^3$ to be equal to $2$, $n^2 + mn + m^2 = 1 \implies n = 1, m = -1$, but then $n^3 - m^3 ≠ 8$, so $\gcd(y - 4, y + 4) ≠ 1$
Case 2
$$\gcd(y - 4, y + 4) > 1$$ $$d := \gcd(y - 4, y + 4)$$ $$a = {y - 4 \over d}$$ $$b = {y + 4 \over d}$$ $$\gcd(a, b) = 1$$ $$x^3 = d^2ab \implies d \space\vert\space x$$
I did not know what to do next. I would be grateful for a simple explanation.