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!)
A197072 a(n) = prime(2^(n+1)) - 2*prime(2^n). 2
-1, 1, 5, 15, 25, 49, 97, 181, 433, 819, 1541, 3147, 6271, 12469, 25087, 49455, 99255, 196057, 391815, 781893, 1555935, 3106511, 6191001, 12351963, 24658715, 49173803, 98136735, 195868789, 391110307, 780774507, 1559147549, 3113261723, 6218243597, 12419791799, 24808942497 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
The prime number theorem implies prime(n) ~ n log n, which explains that lim_{n->oo} A033844(n+1)/A033844(n) = 2. This motivated the present sequence, which has the same property again, e.g., a(46..55)~[1,2,4,8,16,32,64,128,256,512]*10^14. This can be proved by considering an asymptotic expression for prime(n) involving more terms, which yields a(n) = 2^n*(2*log(2)+2/n+O(1/n^2)).
LINKS
FORMULA
a(n) ~ 2^(n+1)*(log(2) + 2/n + O(1/n^2)).
a(n) = A033844(n+1) - 2*A033844(n).
PROG
(PARI) a(n)=prime(2<<n)-2*prime(1<<n) /* works only up to "primelimit" */
(PARI) a(n)=A033844(n+1)-A033844(n)*2 /* if A033844 is a function */
(PARI) vector(#A033844-1, i, A033844[i+1]-A033844[i]*2) /* assuming A033844 is defined as a vector - note that indices then start at 1 while offset=0 */
CROSSREFS
Sequence in context: A168010 A353613 A229312 * A147495 A147426 A100437
KEYWORD
sign
AUTHOR
M. F. Hasler, Oct 09 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 19 03:15 EDT 2024. Contains 374388 sequences. (Running on oeis4.)