The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A274828 Integer part of the alternating n-th partial sum of the reciprocals of the successive prime gaps. 4
1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,41
COMMENTS
The graph of the first 15*10^3 terms looks like a realization of a random walk. It has an estimated fractal dimension of about 1.48 (with box counting method) which is closed to that of the random walk (3/2).
LINKS
FORMULA
a(n) = floor(Sum_{i=1..n} ((-1)^(i - 1))/(prime(i+1)-prime(i))).
a(n) = floor(Sum_{i=1..n} ((-1)^(i - 1))/A001223(i)).
EXAMPLE
The prime gaps (A001223) are 1, 2, 2, 4, 2, 4, 2, .... For n=7, the 7th partial sum is 1/1 - 1/2 + 1/2 - 1/4 + 1/2 - 1/4 + 1/2 = 3/2 so a(7) is the integer part of 3/2, which is 1. - Michael B. Porter, Jul 11 2016
MATHEMATICA
Table[Floor@Sum[((-1)^(j - 1))/(Prime[j + 1] - Prime[j]), {j, 1, n}], {n, 1, 100}];
PROG
(PARI) a(n) = floor(sum(i=1, n, ((-1)^(i-1))/(prime(i+1)-prime(i)))) \\ Felix Fröhlich, Jul 07 2016
CROSSREFS
Sequence in context: A043543 A237684 A130634 * A364136 A257474 A257317
KEYWORD
sign
AUTHOR
Andres Cicuttin, Jul 07 2016
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 May 20 18:27 EDT 2024. Contains 372720 sequences. (Running on oeis4.)