OFFSET
1,2
EXAMPLE
4 is a term because there is no cube between 4^2 = 16 and 5^2 = 25;
5 is not a term because between 5^2 = 25 and 6^2 = 36 there is one cube, 27.
MAPLE
A:={seq(x^3, x=1..90)}: a:=proc(n) if {seq(y, y=n^2+1..(n+1)^2-1)} intersect A ={} then n else fi end: seq(a(n), n=1..90); # Emeric Deutsch, Oct 25 2006
MATHEMATICA
Sqrt[#]&/@Select[Partition[Range[100]^2, 2, 1], NoneTrue[Surd[Range[#[[1]]+ 1, #[[2]] -1], 3], IntegerQ]&][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 30 2021 *)
PROG
(PARI) isok(n) = sum(k=n^2+1, (n+1)^2-1, ispower(k, 3)) == 0; \\ Michel Marcus, Jan 09 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 19 2006
STATUS
approved