How can I find all $m,n\in\mathbb{Z}$ satisfying $n^2+n+1=m^3$?
2026-04-26 02:45:29.1777171529
Integer solutions of $n^2+n+1=m^3$
585 Views Asked by user9009 https://math.techqa.club/user/user9009/detail At
1
There may well be more elementary solutions, but one way to go is to rewrite the equation as
$E: y^2 + y = x^3 - 1$.
That is, we wish to find all integral points on the elliptic curve $E$. For this, the integral points contain all torsion points of $E(\mathbb{Q})$, with equality iff the Mordell-Weil rank is zero. Moreover it is easy to find all torsion points. So one hopes that the rank is zero (which happens, according to conventional wisdom, about half the time).
Using the MAGMA computer algebra package:
So no luck: the Mordell-Weil rank is 1, so there are infinitely many $\mathbb{Q}$-rational points on $E$ and in fact no torsion points (other than the point at infinity $[0:1:0]$ which is missing from our affine equation for $E$).
So we move on to the built-in algorithm for computing all integral points on an elliptic curve:
The answers here are in projective form $(X,Y,Z)$ so correspond to affine coordinates $(x,y) = (X/Z,Y/Z)$. Of course we want integral points, so it is no surprise that the $Z$-coordinate is equal to $1$ in every case. Note that I did a little more than just running the IntegralPoints command, because according to the fine print here or here the command only returns integral points "up to negation", which I took to mean that one has to also compute the Mordell-Weil inverses of the all the points on the list. Thus we get that there are four affine integral points on $E$:
$(x,y) = (1,0), \ (1,-1), \ (7,-19), \ (7,18)$.
I should say that although I am a fairly regular MAGMA user, I don't have much experience with the IntegralPoints package, so this answer is provided without warranty...