OFFSET
1,2
COMMENTS
5187 is the first term that has 4 prime divisors.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
21 is a term because 21 = 3*7 = 4^2 + 4*1 + 1^2.
MATHEMATICA
Select[Range[10^3], And[SquareFreeQ@ #, ! PrimeQ@ #, Resolve[Exists[{x, y}, Reduce[# == x^2 + x y + y^2, {x, y}, Integers]]]] &] (* Michael De Vlieger, Mar 21 2016, after Jean-François Alcover at A003136 *)
PROG
(PARI) x='x+O('x^1000); p=eta(x)^3/eta(x^3); for(n=0, 999, if(polcoeff(p, n) != 0 && issquarefree(n) && !isprime(n), print1(n, ", ")));
CROSSREFS
KEYWORD
nonn
AUTHOR
Altug Alkan, Mar 21 2016
STATUS
approved