Solve for integers
1)$$ x^2 + 7 = y^3 $$
2)$$ a^2 + 5 = z^3 $$
for some integer $a,x,y$ and $z$.
For part (1), I started with the equation:
$$ x^2 + 7 = y^3 $$
I then subtracted 8 from both sides, rewriting it as:
$$ x^2 - 1 = y^3 - 2^3 $$
Recognizing a difference of cubes on the right-hand side, I factored it as:
$$ x^2 - 1 = (y - 2)(y^2 + 2y + 4) $$
From here, I found one solution: $x = 1$ and $y = 2$, but I was unsure how to proceed further.
For part (2), I didn't know how to approach the problem.