OFFSET
1,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..7487
EXAMPLE
a(3)=277 is a term because 277 is prime, 277+1=2*139 where 139 is prime, and 279=3^2*31 is a 3-almost prime that is nonsquarefree.
MAPLE
N:= 100000:
A1:= map(x -> 3*x^2-2, select(x -> isprime(x) and isprime(3*x^2-2) and isprime((3*x^2-1)/2), {seq(i, i=3..floor(sqrt((N+2)/3)), 2)})):
A2:= map(x -> 9*x-2, select(x -> isprime(x) and isprime(9*x-2) and isprime((9*x-1)/2), {seq(i, i=3..(N+2)/9, 2)})):
sort(convert(A1 union A2, list));
MATHEMATICA
Select[Prime@ Range[10^4], And[PrimeOmega /@ {# + 1, # + 2} == {2, 3}, ! SquareFreeQ[# + 2]] &] (* Michael De Vlieger, Oct 06 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Oct 05 2019
STATUS
approved