Rearranging the Alternating Harmonic Series
The alternating harmonic series converges conditionally to ln(2) ≈ 0.693:
Riemann proved that any conditionally convergent series can be rearranged to converge to any real number—or to diverge.
The algorithm rearranges terms to approach any target value:
The key insight: although the full series converges, the positive and negative parts each diverge separately. This gives us infinite "fuel" to push the sum in either direction, allowing convergence to any real number.