OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Bat-Od Battseren and Bayarmagnai Gombodorj, A quadratic form of p = 3k+1 primes, arXiv:2511.19763 [math.NT], 2025. See Table p. 3.
MAPLE
R:= NULL: count:= 0:
for k from 1 while count < 100 do
p:= 6*k+1;
if not isprime(p) then next fi;
S:= select(t -> subs(t, x) > 0 and subs(t, x) < subs(t, y), [isolve(x^2+x*y+y^2=p)]);
S:= map(t -> subs(t, x), S);
R:= R, op(S); count:= count+1;
od:
R; # Robert Israel, Jun 16 2025
MATHEMATICA
Reap[For[n = 1, n <= 200, n++, If[PrimeQ[p = 6 n + 1], s = Solve[x^2 + x y + y^2 == p && 0 < x < y, {x, y}, Integers]; Sow[x /. s[[1]]]]]][[2, 1]] (* Jean-François Alcover, Mar 07 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Nov 03 2003
EXTENSIONS
More terms from Ray Chandler, Nov 04 2003
STATUS
approved
