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.

A145487 Numbers k such that 6k+5 is prime and 12k+5 is also prime.

Original entry on oeis.org

0, 1, 2, 3, 4, 7, 8, 9, 11, 14, 16, 21, 22, 24, 29, 32, 37, 38, 42, 43, 46, 51, 58, 63, 64, 66, 71, 73, 77, 79, 81, 84, 92, 98, 99, 102, 106, 107, 108, 113, 119, 123, 134, 136, 142, 143, 156, 157, 158, 162, 184, 191, 196, 198, 203, 212, 217, 219, 227, 228, 238, 241, 246
Offset: 1

Views

Author

Artur Jasinski, Oct 11 2008

Keywords

Crossrefs

Programs

  • Mathematica
    aa = {}; k = 5; Do[If[PrimeQ[(k + Prime[n])/2], AppendTo[aa, (Prime[n] - 5)/12]], {n, 1, 500}]; aa
    Select[Range[0, 250], PrimeQ[6 # + 5] && PrimeQ[12 # + 5] &] (* Ivan Neretin, Jan 21 2017 *)
    Select[Range[0,250],AllTrue[5+{6#,12#},PrimeQ]&] (* Harvey P. Dale, Dec 20 2022 *)

Formula

a(n) = (A145471(n)-5)/12.