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!)
A277118 For a lesser p of twin primes, let B_k be A159559, but with initial term k; then a(n) is the smallest m such that B_(p+2)(m)-B_p(m)>6, where p = A001359(n-1), or a(n) = 0 if there is no such m. 4
0, 13, 0, 0, 0, 9, 0, 11, 11, 5, 3, 15, 3, 7, 3, 0, 3, 0, 3, 5, 7, 3, 11, 5, 3, 5, 11, 3, 9, 3, 3, 7, 3, 5, 5, 3, 5, 3, 5, 11, 3, 5, 0, 0, 5, 5, 7, 5, 13, 7, 0, 5, 3, 3, 3, 3, 7, 3, 3, 3, 5, 3, 7, 3, 3, 0, 3, 5, 5, 3, 11, 11, 5, 3, 5, 7, 5, 3, 0, 3, 3, 3, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,2
COMMENTS
Theorem: a(n) takes only the values 0, 3, 5, 7, 9, 11, 13, 15, and 17.
LINKS
Vladimir Shevelev, "Nearest" twin primes, Post to seqfan, Sep 21 2016.
Vladimir Shevelev, Peter J. C. Moses, Constellations of primes generated by twin primes, arXiv:1610.03385 [math.NT], 2016.
FORMULA
a(n) = 3 on a subsequence of measure 1. - Charles R Greathouse IV, Oct 17 2016
PROG
(PARI) nextcomposite(n)=if(n<4, return(4)); n=ceil(n); if(isprime(n), n+1, n)
do(p)=my(a=p, b=p+2, f); for(n=3, 17, f=if(isprime(n), nextprime, nextcomposite); a=f(a+1); b=f(b+1); if(b-a > 6, return(n))); 0
p=2; forprime(q=3, 1e3, if(q-p==2, print1(do(p)", ")); p=q) \\ Charles R Greathouse IV, Oct 17 2016
CROSSREFS
Sequence in context: A081357 A127708 A094896 * A200065 A067155 A277255
KEYWORD
nonn
AUTHOR
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 25 16:23 EDT 2024. Contains 371989 sequences. (Running on oeis4.)