# Has the equation $p^3-q^2+2=2^3\cdot q$ infinitely many solutions for $p$ and $q$ prime? [closed]

Consider the equation:

$$p^3-q^2+2=8\cdot q$$

Has this equation infinitely many solutions for $$p$$ and $$q$$ prime?

• No, every Mordell curve has only finitely many integral points. – probably destiny function Mar 25 at 20:25
• Actually, there are no prime solutions at all. See my response. – GH from MO Mar 26 at 6:33
• Every elliptic curve over a number field has only finitely many integral points. This was proven by Carl Ludwig Siegel. See chapter IX of Silverman's book "The Arithmetic of Elliptic Curves". – My Grandmother's Cobblestone Mar 26 at 8:37
• I'm voting to close this question because (a) there was no motivation provided or context for the question (b) the user did not engage with the comments and answers (c) the user has not been active on this account, and seems to instead be creating new burner accounts every few days – Yemon Choi Apr 4 at 5:03

According to SAGE, the integral solutions are $$(7,-23)$$ and $$(7,15)$$:

sage: EllipticCurve([0,0,8,0,2]).integral_points(both_signs=True)
[(7 : -23 : 1), (7 : 15 : 1)]


Hence there are no (positive) prime solutions.

Actually there is no solution at all.

[8, 27, 125, 343, 1331, 2197, 4913, 6859, 12167, 24389] [18, 31, 63, 103, 207, 271, 423, 511, 711, 1071]

For the first 10 primes, evaluated at ^3 and ^2 + 8* - 2 respectively. After that the ^3 goes way much faster than the other so no solution at all.

• You seem to be assuming that $p$ and $q$ are equal. – Steven Stadnicki Mar 26 at 6:01