OFFSET
1,1
COMMENTS
a(n) = (A000353(n)-1)/2. - Reinhard Zumkeller, Feb 10 2009
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..1000
Robert A. J. Matthews, Maximally periodic reciprocals, Bull. Institute of Mathematics and Its Applications, vol. 28, p. 147-148, 1992.
MAPLE
q:= p-> irem(p, 20) in {3, 9, 11} and andmap(isprime, [p, 2*p+1]):
select(q, [$1..10000])[]; # Alois P. Heinz, Oct 31 2023
MATHEMATICA
Select[Prime[Range[1000]], MatchQ[Mod[#, 20], 3|9|11] && PrimeQ[2#+1]&] (* Jean-François Alcover, Feb 07 2016 *)
PROG
(PARI) is(n)=my(k=n%20); (k==3||k==9||k==11) && isprime(2*n+1) && isprime(n) \\ Charles R Greathouse IV, Nov 20 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Reinhard Zumkeller, Feb 10 2009
STATUS
approved