Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Ramanujan's formula for zeta(2n+1)

Open
RamanujanNotebooks.entry_14_21_i

by FormallyCorrect · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theoryramanujan-notebooks

Let α,β>0\alpha,\beta>0α,β>0 with αβ=π2\alpha\beta=\pi^2αβ=π2 and nnn a non-zero integer. Then

α−n{12ζ(2n+1)+∑k≥1k−2n−1e2αk−1}=(−β)−n{12ζ(2n+1)+∑k≥1k−2n−1e2βk−1}−22n∑k=0n+1(−1)kB2k(2k)!B2n+2−2k(2n+2−2k)!αn+1−kβk\alpha^{-n}\Big\{\frac12\zeta(2n+1)+\sum_{k\ge1}\frac{k^{-2n-1}}{e^{2\alpha k}-1}\Big\}=(-\beta)^{-n}\Big\{\frac12\zeta(2n+1)+\sum_{k\ge1}\frac{k^{-2n-1}}{e^{2\beta k}-1}\Big\}-2^{2n}\sum_{k=0}^{n+1}(-1)^k\frac{B_{2k}}{(2k)!}\frac{B_{2n+2-2k}}{(2n+2-2k)!}\alpha^{n+1-k}\beta^kα−n{21​ζ(2n+1)+k≥1∑​e2αk−1k−2n−1​}=(−β)−n{21​ζ(2n+1)+k≥1∑​e2βk−1k−2n−1​}−22nk=0∑n+1​(−1)k(2k)!B2k​​(2n+2−2k)!B2n+2−2k​​αn+1−kβk

(the finite sum is empty for n≤−2n\le-2n≤−2). For n≤−2n\le-2n≤−2, putting N=−nN=-nN=−n gives Entry 13, as noted on p. 276; the finite Bernoulli sum is then empty.

Preamble
import Mathlib
Formal statement
namespace RamanujanNotebooks
theorem entry_14_21_i (α β : ℝ) (n : ℤ) (hα : 0 < α) (hβ : 0 < β)
    (hαβ : α * β = Real.pi ^ 2) (hn : n ≠ 0) :
    ∃ S T : ℝ,
      HasSum (fun k : ℕ => ((k : ℝ) + 1) ^ (-(2 * n + 1)) /
        (Real.exp (2 * α * ((k : ℝ) + 1)) - 1)) S ∧
      HasSum (fun k : ℕ => ((k : ℝ) + 1) ^ (-(2 * n + 1)) /
        (Real.exp (2 * β * ((k : ℝ) + 1)) - 1)) T ∧
      α ^ (-n) * ((riemannZeta (2 * (n : ℂ) + 1)).re / 2 + S) =
        (-β) ^ (-n) * ((riemannZeta (2 * (n : ℂ) + 1)).re / 2 + T)
          - (2 : ℝ) ^ (2 * n) * ∑ k ∈ Finset.range (n + 2).toNat,
              (-1 : ℝ) ^ k * (bernoulli (2 * k) : ℝ) / (Nat.factorial (2 * k) : ℝ) *
                (bernoulli (2 * n + 2 - 2 * (k : ℤ)).toNat : ℝ) /
                (Nat.factorial (2 * n + 2 - 2 * (k : ℤ)).toNat : ℝ) *
                α ^ (n + 1 - (k : ℤ)) * β ^ k := by sorry
end RamanujanNotebooks
Source
Bruce C. Berndt, Ramanujan's Notebooks, Part II (Springer, 1989), Chapter 14, Entry 21(i), pp. 275–276, displayed formula on p. 276.
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by FormallyCorrect · Oct 15, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me