cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A154253 Primes of the form 9n^2-8n+2.

Original entry on oeis.org

2, 3, 59, 659, 1907, 2467, 3803, 9539, 19507, 23003, 24859, 30859, 37507, 42299, 52747, 58403, 61339, 67427, 98387, 122267, 126499, 139627, 162947, 182899, 209459, 214987, 232003, 243707, 280547, 347707, 362003, 383987, 429899, 478403
Offset: 1

Views

Author

Vincenzo Librandi, Jan 05 2009

Keywords

Comments

Primes in A154254.
Primes generated by n = 1, 3, 9, 15, 17, 21, 33, 47, 51, 53, 59,...
(All but the first of these are either 3 (mod 6) or 5 (mod 6), as in A047270, because otherwise 9n^2-8n+2 is a multiple of 2 or 3. R. J. Mathar, Jul 17 2012).

Programs

  • Magma
    [a: n in [0..250] | IsPrime(a) where a is 9*n^2-8*n+2]; // Vincenzo Librandi, Jul 16 2012
  • Mathematica
    Select[Table[9n^2-8n+2,{n,0,1500}],PrimeQ] (* Vincenzo Librandi, Jul 16 2012 *)