OFFSET
1,2
COMMENTS
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
28 is a term because 28 = 3^3 + 1 = 2^2 + 2*4 + 4^2.
MATHEMATICA
Select[Range[10^6], And[IntegerQ@ Power[# - 1, 1/3], Resolve[Exists[{x, y}, Reduce[# == x^2 + x y + y^2, {x, y}, Integers]]]] &] (* Michael De Vlieger, Apr 01 2016 *)
PROG
(PARI) is(n) = #bnfisintnorm(bnfinit(z^2+z+1), n);
for(k=0, 1e3, if(is(n=k^3+1), print1(n, ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Apr 01 2016
STATUS
approved