Let $n$ be a nonzero integer. I am interested in the integer solutions $(x, y)$ to the equation $y^2 = x^3 + n$. Let $S$ be the set of all integer solutions $(x, y)$ to this equation.
I am wondering is there any upper bound on the size of $S$ [depend on $|n|$], and is there any algorithm [or code] to obtain the set $S$ for given $n$? Thank you for reading this post.