A106859 Primes of the form 2x^2 + xy + 2y^2.
2, 3, 5, 17, 23, 47, 53, 83, 107, 113, 137, 167, 173, 197, 227, 233, 257, 263, 293, 317, 347, 353, 383, 443, 467, 503, 557, 563, 587, 593, 617, 647, 653, 677, 683, 743, 773, 797, 827, 857, 863, 887, 947, 953, 977, 983, 1013, 1097, 1103, 1163, 1187, 1193
Offset: 1
References
- D. A. Buell, Binary Quadratic Forms. Springer-Verlag, NY, 1989, pp. 51-52.
Links
- Vincenzo Librandi, N. J. A. Sloane and Ray Chandler, Table of n, a(n) for n = 1..10000 [First 2000 terms from Vincenzo Librandi, next 691 terms from N. J. A. Sloane]
- N. J. A. Sloane et al., Binary Quadratic Forms and OEIS (Index to related sequences, programs, references)
Programs
-
Mathematica
QuadPrimes2[2, 1, 2, 100000] (* see A106856 *)
-
PARI
{ fc(a,b,c,M) = my(p,t1,t2,n); t1 = listcreate(); for(n=1,M, p = prime(n); t2 = qfbsolve(Qfb(a,b,c),p); if(t2 == 0,, listput(t1,p))); print(t1); } fc(2,1,2,1000); \\ N. J. A. Sloane, Jun 06 2014
Extensions
Removed defective Mma program and extended the b-file using the PARI program fc. - N. J. A. Sloane, Jun 06 2014
Comments