login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A096937
Least k such that k*P(n)#/2 - 2 and k*P(n)#/2 + 2 are both primes, where P(i)= i-th prime, P(i)# = i-th primorial.
0
5, 3, 1, 1, 3, 1, 3, 41, 27, 3, 1, 171, 97, 19, 35, 13, 217, 57, 79, 133, 41, 219, 85, 43, 477, 205, 35, 455, 635, 275, 2081, 33, 513, 671, 427, 177, 997, 2671, 601, 123, 525, 1139, 411, 479, 363, 1311, 4685, 109, 159, 3367, 2761, 257, 161, 137, 49, 393, 3553, 1807
OFFSET
1,1
EXAMPLE
1*2*3*5*7/2 - 2 = 103, 1*2*3*5*7/2 + 2 = 107, 103 and 107 are both primes, so for n=4, k=1.
MATHEMATICA
Primorial[n_] := Product[Prime[i], {i, 1, n}]; f[n_] := Block[{p = Primorial[n]/2, k = 1}, While[ !PrimeQ[k*p - 2] || !PrimeQ[k*p + 2], k++ ]; k]; Table[ f[n], {n, 50}] (* Robert G. Wilson v, Aug 19 2004 *)
CROSSREFS
Cf. A060256.
Sequence in context: A174965 A159671 A094853 * A097527 A204063 A132400
KEYWORD
nonn
AUTHOR
Pierre CAMI, Aug 18 2004
EXTENSIONS
More terms from Robert G. Wilson v, Aug 19 2004
STATUS
approved