A conditionally convergent series can be rearranged to sum to any real number — watch the greedy block rule steer the alternating harmonic series (which sums to ln2 in its natural order) onto a target of your choice.
∑anconverges conditionally⟹∀s∈R∃rearrangement with sum s
Let ∑an be a real series converging conditionally. With pn=max(an,0) and qn=max(−an,0) (zero terms are harmless, so this is the positive/negative subsequences re-indexed), prove ∑pn=+∞ and ∑qn=+∞.
an=pn−qn,∣an∣=pn+qn
∑pn<∞⟹∑qn=∑pn−∑an<∞⟹∑∣an∣<∞(contradiction)
Target s=1, N=120: S120≈0.9967, error ≈0.00326 — 78 positive and 42 negative takes, and both blocks recur forever (the proof below is why).Show proof
Termwise an=pn−qn and ∣an∣=pn+qn (zero terms contribute nothing, so this is the positive/negative subsequences re-indexed). Conditional convergence means ∑(pn−qn) converges while ∑(pn+qn) diverges.
Suppose ∑pn<∞. Since ∑an=∑(pn−qn) converges, and qn=pn−(pn−qn), the series ∑qn=∑pn−∑an converges as a difference of convergent series.
Then ∑∣an∣=∑pn+∑qn<∞ — so ∑an would converge absolutely, contradicting conditional convergence. Hence ∑pn=+∞.
Symmetrically: if ∑qn<∞, then pn=qn+(pn−qn) gives ∑pn=∑qn+∑an convergent, again forcing ∑∣an∣<∞ — contradiction. So ∑qn=+∞. The intuition: a conditionally convergent series harbors both "positive infinity" and "negative infinity", and a rearrangement can shuttle between them to hit any target.
Aim the scene's greedy walk at target s=1. Compute the partial sums S2,S3,S4,S5,S7,S8 at the ends of the first few blocks by hand, and check that each overshoot/undershoot is at most the magnitude of the term that caused the crossing.
gaps: 31,61,301,6013,126047,1260163≤crossing term each time
Target s=1, N=120: the bracket tightens 31→61→301→6013→126047→1260163, reaching S120≈0.9967 with error ≈0.00326.Show proof
The rule: take the next positive term while t≤s, the next negative term while t>s. For s=1 with t0=0, the first take is positive: S1=0+p1=1 — the walk lands exactly on the target (gap 0).
Since S1=1≤1, one more positive: S2=1+p2=1+31=34 — the first positive block ends with overshoot 31=p2 (equality holds when crossing upward from exactly s; see the lemma below). Then S3=34−q1=34−21=65 — the first negative block, undershoot 61<q1=21.
Continuing: S4=65+p3=65+51=3031 (overshoot 301<p3=51), S5=3031−q2=3031−41=6047 (undershoot 6013<q2=41). The next positive block takes two terms: S6=6047+p4=420389<1 (not yet across), S7=420389+p5=12601307 (overshoot 126047<p5=91). And S8=12601307−q3=12601097 (undershoot 1260163<q3=61).
Every value matches the model computation (verified as exact rationals in the tests). The gap sequence 31,61,301,6013,126047,1260163 is not monotone, but each gap is at most its crossing term, and the crossing terms tend to 0. After 120 terms the walk sits at S120≈0.9967 with error ≈0.00326 — the bracket is closing in on the target.
Prove the greedy rearrangement converges to the target s: both blocks recur forever, each crossing overshoot/undershoot is at most the crossing term's magnitude, and since the term magnitudes tend to 0, ∣SN−s∣→0.
t≤s⇒S−s≤p(crossing up),t>s⇒s−S<q(crossing down)
∣SN−s∣≤max(qlast,pcross)N→∞0
Target s=1, N=120: S120≈0.9967, error ≈0.00326 — as the term magnitudes die out, so does the walk's amplitude around the target.Show proof
The alternating harmonic series ∑n(−1)n+1 converges conditionally (Leibniz gives convergence; ∑n1 diverges, so no absolute convergence). For the positive terms pk=2k−11 and negative magnitudes qk=2k1, we have ∑pk=∑qk=+∞ (a corollary of the previous problem, or directly via 2k−11≥2k1 and comparison with the harmonic series).
Both blocks recur forever. If positives were taken only finitely often, then eventually only negatives are taken: the running sum drops by qj each step and ∑qj=∞ forces t→−∞ — eventually t≤s, and the rule would take a positive: contradiction. Symmetrically for negatives (otherwise t→+∞ would force a negative take). Since each block consumes the next unused terms in order, every pi and every qj is eventually used exactly once — a genuine rearrangement.
Crossing lemma: crossing upward from t≤s by adding p, the new gap is (t+p)−s=p−(s−t)≤p (equality only when t=s). Crossing downward from t>s by subtracting q, the new gap is s−(t−q)=q−(t−s)<q. So every crossing overshoot/undershoot is at most its crossing term's magnitude.
Now look at one positive block (after the first crossing; finitely many initial steps don't affect convergence). Starting from an undershoot gap ε (with ε≤qlast, the last negative taken, by the lemma), the block increases monotonically, so before the crossing step s−S≤ε, and at the crossing step S−s≤pcross. Hence throughout the block ∣SN−s∣≤max(qlast,pcross).
Since the blocks recur forever (step 2), both term indices tend to ∞: qlast→0 and pcross→0 (the crossing positives are a subsequence of the pi). Hence ∣SN−s∣→0, i.e. SN→s. Negative blocks are symmetric. This is the greedy proof of Riemann's rearrangement theorem for finite s (the ±∞ cases use the same machine with an ever-growing target).