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.

A259257 Primes of the form n^4 - n^3 + n^2 - n + 1.

Original entry on oeis.org

11, 61, 521, 9091, 13421, 19141, 61681, 152381, 185641, 224071, 1151041, 1824841, 2031671, 3341101, 4778021, 5200081, 8987221, 25058741, 31224301, 32928901, 40454321, 42521761, 150451621, 212601841, 250062751, 292268861, 310565641, 329708341, 339604921
Offset: 1

Views

Author

Robert Price, Jun 22 2015

Keywords

Crossrefs

Programs

  • Magma
    [a: n in [0..200] | IsPrime(a) where a is n^4-n^3+n^2-n+1]; // Vincenzo Librandi, Jun 23 2015
    
  • Mathematica
    Select[Table[Cyclotomic[10, n], {n, 0, 200}], PrimeQ]
    Select[Table[n^4 - n^3 + n^2 - n + 1, {n, 200}], PrimeQ] (* Vincenzo Librandi, Jun 23 2015 *)
  • PARI
    lista(nn) = for (n=1, nn, if (isprime(p=polcyclo(10, n)), print1(p, ", "))); \\ Michel Marcus, Jun 23 2015

Formula

a(n) = A246392(A060884(n)).