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!)
A021007 Let q_k = p*(p+2) be product of k-th pair of twin primes; sequence gives values of p+2 such that (q_k)^2 > q_{k-i}*q_{k+i} for all 1 <= i <= k-1. 2

%I #18 Apr 02 2014 11:55:49

%S 5,13,31,61,103,139,181,193,229,421,523,571,601,811,823,1021,1231,

%T 1279,1291,1609,1669,1873,2083,2551,2659,2689,2971,3121,3253,3331,

%U 3361,3769,3823,3919,4003,5233,5419,5479,6091,6271,6553,6661,6691,8221,8821,8971

%N Let q_k = p*(p+2) be product of k-th pair of twin primes; sequence gives values of p+2 such that (q_k)^2 > q_{k-i}*q_{k+i} for all 1 <= i <= k-1.

%C Even if there are infinitely many twin primes, it is not clear that this sequence is infinite. The Hardy-Littlewood conjecture implies that there are infinitely many twin primes where p+2 is not in the sequence. - _Robert Israel_, Apr 02 2014

%H Charles R Greathouse IV, <a href="/A021007/b021007.txt">Table of n, a(n) for n = 1..10000</a>

%e (11*13)^2 > (5*7)*(17*19): (11*13)^2 > (3*5)*(29*31).

%p N:= 20000:

%p Primes:= [seq(ithprime(i),i=1..N)]:

%p Twink:= select(t-> (Primes[t+1]=Primes[t]+2),[$1..N-1]):

%p Qk:= [seq(Primes[i]*Primes[i+1],i=Twink)]:

%p filter:= proc(k)

%p local T,i;

%p T:= Qk[k]^2;

%p for i from 1 to k-1 do

%p if Qk[k-i]*Qk[k+i]>=T then return false fi

%p od;

%p true

%p end;

%p R:= select(filter,[$1 .. floor(nops(Twink)/2)]):

%p A021007:= map(k -> Primes[Twink[k]+1],R); # _Robert Israel_, Apr 02 2014

%o (PARI) twins=List(); p=3;forprime(q=5,1e5,if(q-p==2,listput(twins,q)); p=q); for(k=1,(#twins+1)\2, for(i=1,k-1,if(twins[k]^2 < twins[k-i]*twins[k+i],next(2))); print1(twins[k]", ")) \\ _Charles R Greathouse IV_, Apr 02 2014

%Y Cf. A028388, A021005.

%K nonn

%O 1,1

%A _Naohiro Nomoto_

%E a(1) inserted by _Robert Israel_, Apr 02 2014

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 September 15 11:45 EDT 2024. Contains 375938 sequences. (Running on oeis4.)