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!)
A350133 Last denominator in each run of odd terms in the greedy rearrangement of the alternating harmonic series that converges to 2. 0
15, 41, 69, 95, 123, 151, 177, 205, 233, 259, 287, 315, 341, 369, 395, 423, 451, 477, 505, 533, 559, 587, 615, 641, 669, 697, 723, 751, 779, 805, 833, 859, 887, 915, 941, 969, 997, 1023, 1051, 1079, 1105, 1133, 1161, 1187, 1215, 1243, 1269, 1297, 1325 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The Riemann series theorem tells us that we can rearrange the terms of the alternating harmonic series 1 - 1/2 + 1/3 - 1/4 ... to converge to any number. If we do so using a greedy algorithm to converge to 2, we start with the positive terms 1 + 1/3 + 1/5 + ... + 1/15 which is just over 2, then add the first negative term -1/2, then add 1/17 + 1/19 + ... + 1/41 which is just over 2, then add -1/4, and so on. We take the last denominator in each run as our sequence, so a(1) = 15, a(2) = 41, and so on.
It appears that each subsequent term is either 26 or 28 more than the previous.
LINKS
EXAMPLE
For n=3 the third run of terms with odd denominators is 1/43 + 1/45 + ... + 1/69 and so a(3) = 69.
MATHEMATICA
Module[{A = {}, S = 0, k = 1},
Do[While[S < 2, S += 1/k; k += 2]; AppendTo[A, k - 2];
S -= 1/(2 n), {n, 1, 30}]; A]
CROSSREFS
Sequence in context: A219378 A280045 A103003 * A239325 A024845 A056698
KEYWORD
nonn
AUTHOR
Greg Dresden, Jan 07 2022
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 24 15:37 EDT 2024. Contains 371960 sequences. (Running on oeis4.)