A134105 Complete list of solutions to y^2 = x^3 + 297; sequence gives x values.
-6, -2, 3, 4, 12, 34, 48, 1362, 93844
Offset: 1
Programs
-
Magma
Sort([ p[1] : p in IntegralPoints(EllipticCurve([0, 297])) ]); /* adapted from A029728 */
-
Mathematica
sol[x_] := Solve[y > 0 && x^3 - y^2 == -297, y, Integers]; Reap[For[x = 1, x < 10^5, x++, sx = sol[x]; If[sx != {}, xy = {x, y} /. sx[[1]]; Print[xy]; Sow[xy]]; sx = sol[-x]; If[sx != {}, xy = {-x, y} /. sx[[1]]; Print[xy]; Sow[xy]]]][[2, 1]][[All, 1]] // Sort (* Jean-François Alcover, Feb 07 2020 *)
-
SageMath
[i[0] for i in EllipticCurve([0, 297]).integral_points()] # Seiichi Manyama, Aug 26 2019
Comments