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!)
A180476 Smallest k>0 such that q=p+6k, 6kp+q, 6kp-q, 6kq+p and 6kq-p are simultaneously prime, or 0 if no such k exists, where p=A000040(n) is the n-th prime. 2
0, 0, 1, 10, 518, 1, 154, 120, 1, 2, 8, 15, 911, 226, 24, 9470, 189, 2766, 8224, 4998, 1730, 49, 106, 3114, 2030, 155, 231, 4, 119, 195, 2354, 31, 1749, 29, 7, 2806, 11704, 11, 1380, 561, 140, 553, 431, 50231, 65, 7, 1003, 1, 1905, 57, 456, 77, 231, 3346, 35, 301, 99, 106, 20, 1045, 71, 280, 1169, 231, 685, 440, 566, 385, 7994, 4095 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
It is conjectured that such a k>0 does exist for all primes > 3.
LINKS
W. Sindelar, Certain Pairs of Consecutive Prime Numbers, in yahoo group "primenumbers".
W. Sindelar, David Broadhurst, Certain Pairs of Consecutive Prime Numbers, digest of 2 messages in primenumbers Yahoo group, Jan 20 - Jan 21, 2011.
FORMULA
a(n) = (A180481(n)-A000040(n))/6 for n>2.
MATHEMATICA
sk[p_]:=Module[{k=1, q}, While[!AllTrue[{q=p+6k, 6k p+q, 6k p-q, 6k q+p, 6k q- p}, PrimeQ], k++]; k]; Join[{0, 0}, sk/@Prime[Range[3, 70]]] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Oct 12 2017 *)
PROG
(PARI) A180476(p, L=1e7)={ (3<p=prime(p)) & forstep( q=p+6, L, 6, isprime(q)|next; isprime(p*(q-p)+q)|next; isprime(p*(q-p)-q)|next; isprime(q*(q-p)+p)|next; isprime(q*(q-p)-p)|next; return((q-p)\6))
CROSSREFS
A180481 gives the corresponding primes q.
Sequence in context: A356725 A163703 A218720 * A003399 A180359 A289200
KEYWORD
nonn
AUTHOR
M. F. Hasler, Jan 20 2011
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 July 25 03:25 EDT 2024. Contains 374586 sequences. (Running on oeis4.)