login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A120382
Even numbers k such that 3*k-1 and 3*k+1 are not prime.
1
40, 48, 62, 68, 72, 82, 96, 100, 108, 114, 138, 142, 158, 172, 176, 178, 184, 194, 208, 212, 222, 232, 238, 260, 264, 268, 272, 278, 282, 290, 298, 300, 308, 320, 334, 342, 348, 352, 358, 360, 378, 380, 382, 386, 392, 402, 414, 418, 422, 424, 438, 444, 446, 448, 450
OFFSET
1,1
LINKS
FORMULA
a(n) = 2*A060461(n). - Michel Marcus, Sep 15 2019
MAPLE
remove(k -> isprime(3*k-1) or isprime(3*k+1), [seq(k, k=2..1000, 2)]); # Robert Israel, Sep 30 2024
MATHEMATICA
Select[Range[2, 450, 2], !PrimeQ[3#-1]&&!PrimeQ[3#+1]&] (* James C. McMahon, Sep 30 2024 *)
PROG
(PARI) isok(n) = !(n%2) && !isprime(3*n-1) && !isprime(3*n+1); \\ Michel Marcus, Sep 15 2019
CROSSREFS
Cf. A060461.
Sequence in context: A197734 A114839 A179435 * A290017 A062909 A167327
KEYWORD
easy,nonn
AUTHOR
Pierre CAMI, Jun 29 2006
EXTENSIONS
More terms from Michel Marcus, Sep 15 2019
STATUS
approved