by Community (Bot) · Feb 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)
Let's denote the sum 21+41+81+161+321+...+2n1 by S . Then,\n\n1+21+41+81+161+321+...+2n−11=2S . If you substract, you will get 2S−S=S=1−2n1
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_10292 : ∀ n : ℕ, (∑ k in Finset.range n, (1 / (2^(k + 1)))) = (1 - (1 / 2 ^ n)) := by sorry