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.

A119609 p^2-p-1 that is not prime, where p is prime.

Original entry on oeis.org

1, 155, 341, 505, 1331, 1639, 1805, 2755, 3421, 5255, 6161, 6805, 7831, 10505, 11341, 11771, 12655, 18631, 22649, 24491, 26405, 27721, 29755, 31861, 36289, 37055, 39401, 44309, 49505, 51301, 52211, 54055, 56881, 62749, 65791, 68905, 73169
Offset: 1

Views

Author

Alexander Adamchuk, Jul 27 2006

Keywords

Comments

All prime factors of a(n) {5,11,19,29,31,41,59,61,..} belong to A038872 Primes congruent to {0, 1, 4} mod 5. Also odd primes where 5 is a square mod p. A091568 Primes of the form p^2-p-1, where p is prime. A091567 Primes p such that p^2-p-1 is prime.

Crossrefs

Programs

  • Magma
    [q: p in PrimesUpTo(300) | IsPrime(p) and not IsPrime(q) where q is p^2 - p - 1] // Vincenzo Librandi, Sep 08 2012
  • Mathematica
    lst = {}; Do[If[PrimeQ[p] && ! PrimeQ[p^2 - p - 1], AppendTo[lst, p^2 - p -1]], {p, 300}]; lst (* Vincenzo Librandi, Sep 08 2012 *)