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.

A034849 a(n) = 1 + 2*A034784(n).

Original entry on oeis.org

7, 11, 17, 19, 23, 29, 31, 41, 43, 47, 53, 59, 67, 71, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 163, 167, 173, 179, 181, 191, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 281, 283, 293, 307, 311, 317, 331
Offset: 1

Views

Author

Keywords

Comments

The terms are odd prime numbers.

Crossrefs

Programs

  • Mathematica
    1 + 2 Position[#, 2] &@ Table[k = 1; While[! PrimeQ[k n + 1], k++]; k, {n, 165}] // Flatten (* Michael De Vlieger, Jul 31 2017 *)
  • PARI
    lista(nn) = for (n=1, nn, if (isprime(p=2*n+1) && !isprime(n+1), print1(p, ", "));); \\ Michel Marcus, Aug 01 2017

Extensions

Edited by N. J. A. Sloane, Oct 27 2012