OFFSET
1,1
COMMENTS
Discriminant = 92. 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.
REFERENCES
Z. I. Borevich and I. R. Shafarevich, Number Theory. Academic Press, NY, 1966.
D. B. Zagier, Zetafunktionen und quadratische Körper, Springer, 1981.
EXAMPLE
a(5)=43 because we can write 43=-2*10^2+6*10*3+7*3^2 (or 14*1^2+22*1*1+7*1^2).
MATHEMATICA
Reap[For[p = 2, p < 2000, p = NextPrime[p], If[FindInstance[p == -2*x^2 + 6*x*y + 7*y^2, {x, y}, Integers, 1] =!= {}, Print[p]; Sow[p]]]][[2, 1]] (* Jean-François Alcover, Oct 25 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 25 2008
EXTENSIONS
More terms from Colin Barker, Apr 05 2015
STATUS
approved