The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A097526 Least k such that k*P(n)#-P(n+2) and k*P(n)#+P(n+2) are both primes with P(i)=i-th prime and P(i)#=i-th primorial. 0
4, 2, 1, 1, 2, 5, 2, 7, 8, 5, 13, 36, 3, 55, 8, 5, 186, 22, 17, 45, 69, 16, 57, 1, 34, 99, 367, 15, 39, 321, 459, 17, 17, 51, 215, 608, 108, 431, 439, 346, 405, 789, 413, 268, 1744, 70, 889, 33, 42, 1883, 2489, 76, 3246, 1219, 849, 214, 870, 208, 197, 619, 323, 3418, 39 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
2*3 - 7 = -1.
2*2*3 - 7 = 5, prime; 2*2*3 + 7 = 19, prime; so for n=2 k=2.
MATHEMATICA
Primorial[n_] := Product[ Prime[i], {i, n}]; f[n_] := Block[{k = 1, p = Primorial[n], q = Prime[n + 2]}, While[k*p - q < 2 || !PrimeQ[k*p - q] || !PrimeQ[k*p + q], k++ ]; k]; Table[ f[n], {n, 63}] (* Robert G. Wilson v, Aug 31 2004 *)
CROSSREFS
Sequence in context: A204815 A247642 A144260 * A051149 A293424 A152145
KEYWORD
easy,nonn
AUTHOR
Pierre CAMI, Aug 27 2004
EXTENSIONS
More terms from Robert G. Wilson v, Aug 31 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 June 6 13:08 EDT 2024. Contains 373128 sequences. (Running on oeis4.)