OFFSET
1,1
COMMENTS
Discriminant = 28. 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.
Also, primes of form u^2-7v^2. The transformation {u,v}={3x+y,x} yields the second quadratic form given in the title. - Tito Piezas III, Dec 28 2008
This is also the list of primes p such that p = 2 or p is congruent to 1, 9 or 25 mod 28 - Jean-François Alcover, Oct 28 2016
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. OEIS wiki, June 2014.
D. B. Zagier, Zetafunktionen und quadratische Körper, Springer, 1981.
EXAMPLE
a(2)=29 because we can write 29=2*4^2+2*4*3-3*3^2 (or 29=2*1^2+6*1*3+3^2).
MATHEMATICA
Select[Prime[Range[250]], # == 2 || MatchQ[Mod[#, 28], 1|9|25]&] (* 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 (marcanmar(AT)alum.us.es), Jun 12 2008
STATUS
approved