OFFSET
1,1
COMMENTS
For n>1 a(n) is even and also if a(n) = m then a(m/2) = 2n.
EXAMPLE
a(4) = 2, 8 + 2 + 1 = 11 and 8*2 + 1 = 17 are both prime.
MATHEMATICA
f[n_] := Block[{k = 1}, While[ !PrimeQ[2n + k + 1] || ! PrimeQ[2n*k + 1], k++ ]; k]; Table[ f[n], {n, 85}] (* Robert G. Wilson v, Apr 24 2004 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Apr 14 2004
EXTENSIONS
Edited, corrected and extended by Robert G. Wilson v, Apr 24 2004
STATUS
approved