OFFSET
1,1
COMMENTS
Subsequence of A005385.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
For p = 2 (the only case with p+1 odd), 2*p+1 = 5 is prime and p+1 = 3 is squarefree, so 5 is in the sequence. For p = 3, 2*p+1 = 7 is prime and p+1 = 4 is not squarefree, so 7 is not in the sequence.
MATHEMATICA
lst = {}; Do[p = Prime[n]; If[PrimeQ[Floor[p/2]] && SquareFreeQ[Ceiling[p/2]], AppendTo[lst, p]], {n, 7!}]; lst
Select[2#+1&/@Select[Prime[Range[2000]], SquareFreeQ[#+1]&], PrimeQ] (* Harvey P. Dale, Aug 02 2024 *)
PROG
(Magma) [ q: p in PrimesUpTo(8100) | IsSquarefree(p+1) and IsPrime(q) where q is 2*p+1 ];
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Dec 20 2008
EXTENSIONS
Edited by Klaus Brockhaus, Dec 24 2008
Mathematica updated by Jean-François Alcover, Jul 04 2013
STATUS
approved