login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 05:49 EDT 2024. Contains 371918 sequences. (Running on oeis4.)