A106856 Primes of the form x^2 + xy + 2y^2, with x and y nonnegative.
2, 11, 23, 37, 43, 53, 71, 79, 107, 109, 127, 137, 149, 151, 163, 193, 197, 211, 233, 239, 263, 281, 317, 331, 337, 373, 389, 401, 421, 431, 443, 463, 487, 491, 499, 541, 547, 557, 569, 599, 613, 617, 641, 653, 659, 673, 683, 739, 743, 751, 757, 809, 821
Offset: 1
A141170 Primes of the form x^2+4*x*y-2*y^2 (as well as of the form 3*x^2+6*x*y+y^2).
3, 19, 43, 67, 73, 97, 139, 163, 193, 211, 241, 283, 307, 313, 331, 337, 379, 409, 433, 457, 499, 523, 547, 571, 577, 601, 619, 643, 673, 691, 739, 769, 787, 811, 859, 883, 907, 937, 1009, 1033, 1051, 1123, 1129, 1153, 1171, 1201, 1249, 1291, 1297, 1321, 1459, 1483, 1489, 1531
Offset: 1
Keywords
Comments
Discriminant = 24. Class = 2. Binary quadratic forms a*x^2 + b*x*y + c*y^2 have discriminant d = b^2 - 4ac.
Also, primes of form u^2 - 6v^2. The transformation {u,v} = {x+2y,y} yields the form in the title. - Tito Piezas III, Dec 31 2008
Conjecture: this is also the list of primes that are simultaneously of the form x^2+2y^2 and of the form x^2+3y^2; that is, the intersection of A002476 and A033203. - Zak Seidov, Jun 07 2014
This is also the list of primes p such that p = 3 or p is congruent to 1 or 19 mod 24. - Jean-François Alcover, Oct 28 2016
Examples
a(2)=19 because we can write 19=3^2+4*3*1-2*1^2 (or 19=3*1^2+6*1*2+2^2)
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.
Crossrefs
Cf. A141171 (d=24), A106950 (Primes of the form x^2+18y^2), A038872 (d=5). A038873 (d=8). A068228, A141123 (d=12). A038883 (d=13). A038889 (d=17). A141111, A141112 (d=65).
For a list of sequences giving numbers and/or primes represented by binary quadratic forms, see the "Binary Quadratic Forms and OEIS" link.
Programs
-
Mathematica
xy[{x_, y_}]:={x^2 + 4 x y - 2 y^2, y^2 + 4 x y - 2 x^2}; Union[Select[Flatten[xy/@Subsets[Range[40], {2}]], #>0&&PrimeQ[#]&]] (* Vincenzo Librandi, Jun 09 2014 *) Select[Prime[Range[250]], # == 3 || MatchQ[Mod[#, 24], 1|19]&] (* Jean-François Alcover, Oct 28 2016 *)
A139642 Irregular triangle where row n gives the congruence (mod 4N) for the primes represented by the quadratic form x^2+Ny^2, where N=A000926(n) is a convenient number.
1, 2, 1, 2, 3, 1, 3, 7, 1, 5, 9, 13, 1, 5, 9, 1, 7, 1, 7, 9, 11, 15, 23, 25, 1, 9, 17, 25, 1, 13, 25, 1, 9, 11, 19, 1, 13, 25, 37, 1, 9, 13, 17, 25, 29, 49, 1, 19, 31, 49, 1, 9, 17, 25, 33, 41, 49, 57, 1, 19, 25, 43, 49, 67, 1, 25, 37, 1, 9, 15, 23, 25, 31, 47, 49, 71, 81, 1, 25, 49, 73, 1, 9
Offset: 1
Comments
Each row begins with 1. For example, the 12th row is for N=13. The numbers in that row are 1, 9, 17, 25, 29 and 49, which means that the primes represented by the quadratic form x^2+13y^2 (A033210) are congruent to 1, 9, 17, 25, 29,or 49 (mod 52). Cox lists some of these congruences on page 36 of his book. As mentioned by Cox, for these N, every term of the congruence has the form b^2 or N+b^2 for some integer b. In some cases, the congruences can be simplified. For instance, for N=18 (A106950), the congruence is 1, 19, 25, 43, 49, 67 (mod 72), which can be simplified to 1, 19 (mod 24).
Examples
1, 2, 1, 2, 3, 1, 3, 7, 1, 5, 9, 13, 1, 5, 9, 1, 7, 1, 7, 9, 11, 15, 23, 25, 1, 9, 17, 25, 1, 13, 25, 1, 9, 11, 19, 1, 13, 25, 37, 1, 9, 13, 17, 25, 29, 49, 1, 19, 31, 49, 1, 9, 17, 25, 33, 41, 49, 57, 1, 19, 25, 43, 49, 67, 1, 25, 37, 1, 9, 15, 23, 25, 31, 47, 49, 71, 81, 1, 25, 49, 73, ...
References
- David A. Cox, "Primes of the Form x^2 + n y^2", Wiley, 1989, Section 3.
Links
- T. D. Noe, Rows n=1..65 of triangle, flattened
- N. J. A. Sloane et al., Binary Quadratic Forms and OEIS (Index to related sequences, programs, references)
Crossrefs
See the Binary Quadratic Forms and OEIS link for full list of primes generated by x^2+Ny^2, where N is a convenient number.
Comments
References
Links
Crossrefs
Programs
Mathematica
PARI
Extensions