OFFSET
1,1
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..1000
EXAMPLE
3 is in the sequence because 3 is prime and both 2*3 - 1 = 5 and 2*3 + 1 = 7 are squarefree.
MAPLE
with(numtheory); P:=proc(q) local n; for n from 1 to q do
if isprime(n) then if issqrfree(2*n-1) and issqrfree(2*n+1) then print(n)
fi; fi; od; end: P(10^5); #Paolo P. Lava, Jun 26 2013
PROG
(PARI) is(n)=isprime(n)&&issquarefree(2*n-1)&&issquarefree(2*n+1) \\ Charles R Greathouse IV, Jun 27 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Irina Gerasimova, Jun 26 2013
STATUS
approved