OFFSET
1,1
COMMENTS
If p and q=2*p+1 are both primes (Sophie Germain primes: A005384) then a(n)=6*q, otherwise a(n)=6. - Enrique Pérez Herrero, Aug 17 2011
LINKS
Enrique Pérez Herrero, Table of n, a(n) for n = 1..2000
MATHEMATICA
A090815[n_]:=If[!PrimeQ[2*Prime[n]+1], 6, 6*(2*Prime[n]+1)]; Array[A090815, 100] (* Enrique Pérez Herrero, Aug 17 2011 *)
PROG
(PARI) a(n)=denominator(bernfrac(2*prime(n)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 11 2004
STATUS
approved