OFFSET
1,1
COMMENTS
Discriminant = 57. Class = 2. Binary quadratic forms a*x^2+b*x*y+c*y^2 have discriminant d=b^2-4ac and gcd(a,b,c)=1
p = 19 and primes p = 1 mod 3 such that 57 is a square mod p. - Juan Arias-de-Reyna, Mar 20 2011
REFERENCES
Z. I. Borevich and I. R. Shafarevich, Number Theory.
LINKS
Juan Arias-de-Reyna, Table of n, a(n) for n = 1..10000
N. J. A. Sloane et al., Binary Quadratic Forms and OEIS (Index to related sequences, programs, references)
D. B. Zagier, Zetafunktionen und quadratische Körper, Springer, 1981.
EXAMPLE
a(2)=19 because we can write 19=-3*1^2+3*1*2+4*2^2
MATHEMATICA
Select[Prime[Range[250]], # == 19 || MatchQ[Mod[#, 57], Alternatives[1, 4, 7, 16, 25, 28, 43, 49, 55]]&] (* Jean-François Alcover, Oct 28 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Laura Caballero Fernandez, Lourdes Calvo Moguer, Maria Josefa Cano Marquez, Oscar Jesus Falcon Ganfornina and Sergio Garrido Morales (oscfalgan(AT)yahoo.es), Jun 24 2008
STATUS
approved