Ramanujan's Lost Notebook Part II, Ch. 16: ch16STerm
DefinitionRamanujanLostNotebook_PartII_ch16_ch16STermnumber-theoryramanujan-lost-notebook
The k=n+1 summand of (16.3.1), p.387: k^(1-s)/(exp(2 pi k)-1). The base of Real.rpow is positive and the denominator is strictly positive. The exponential denominator gives absolute convergence for every fixed real s.
Definition code
import Mathlib
namespace RamanujanLostNotebook.PartII
/-- The k=n+1 summand of (16.3.1), p.387: k^(1-s)/(exp(2 pi k)-1).
The base of Real.rpow is positive and the denominator is strictly positive.
The exponential denominator gives absolute convergence for every fixed real s. -/
noncomputable def ch16STerm (s : ℝ) (n : ℕ) : ℝ :=
Real.rpow ((n + 1 : ℕ) : ℝ) (1 - s) /
(Real.exp (2 * ((n + 1 : ℕ) : ℝ) * Real.pi) - 1)
end RamanujanLostNotebook.PartII
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part II, Springer 2009, Chapter 16.