|
|
A206482
|
|
Primes p(k) such that p(k) <= 2^(p(k+1)-p(k)) < p(k+1).
|
|
1
|
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
The associated prime gaps p(k+1)-p(k) are 1, 2, 4, 6, 10, 16, 36, 150,..
|
|
LINKS
|
|
|
EXAMPLE
|
2 is in the sequence because prime(1)=2^(prime(1+1)-prime(1))<prime(1+1) or 2=2^(3-2)<3;
3 is in the sequence because prime(2)<2^(prime(2+1)-prime(2))<prime(2+1) or 3<2^(5-3)<5;
13 is in the sequence because prime(6)<2^(prime(6+1)-prime(6))<prime(6+1) or 13<2^(17-13)<17.
|
|
PROG
|
(PARI) isA206482(n)={
local(d);
d=2^(nextprime(n+1)-n) ;
if(isprime(n),
if(d>=n && d< nextprime(n+1),
return(1),
return(0)
),
return(0)
)
}
{
for(po=1, 200,
n =precprime(2^po) ;
if (isA206482(n) , print(n)) ;
) ;
} \\ R. J. Mathar, Feb 22 2012
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|