OFFSET
1,2
EXAMPLE
For n = 1, a(n) = 1 is the largest x for which x^3 - 1 = 0 is a square.
For n = 2, a(n) = 3 is the largest x for which x^3 - 2 = 25 is a square.
For n = 3, 5, 6, ... (cf. A081121) Mordell's equation y^2 = x^3 - n has no integer solution, so a(n) = 0.
For n = 4, a(n) = 5 is the largest x for which x^3 - 4 = 121 = y^2 for y = +-11, the other inequivalent solution being x = 2, y = +-2.
PROG
(PARI) apply( {A394624(n, L=20*n^2)=if(L=ellratpoints(ellinit([0, 0, 0, 0, -n]), [L, 1]), L[#L][1])}, [1..99]) \\ Search limit L corresponds to Hall's conjecture with over-estimate of the largest known ratio sqrt(x)/n ~ 4.26.
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Mar 26 2026
STATUS
approved
