OFFSET
1,3
REFERENCES
Marshall Hall, Jr., The Diophantine equation x^3-y^2=k, pp. 173-198 of A. O. L. Atkin and B. J. Birch, editors, Computers in Number Theory. Academic Press, NY, 1971.
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
T. D. Noe, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = |A077119(n+1)|.
a(n^2) = 0. - Benoit Cloitre, Aug 17 2002
MATHEMATICA
f1[n_] := n - Floor[Sqrt[n]]^2;
f2[n_] := Ceiling[Sqrt[n]]^2-n;
Table[Min[f1[n^3], f2[n^3]], {n, 100}] (* Vladimir Joseph Stephan Orlovsky, Apr 08 2010 *)
PROG
(PARI) a(n)=vecmin(vector(ceil(n^(3/2)), i, abs(n^3-i^2)))
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Benoit Cloitre, Aug 17 2002
STATUS
approved