Ramanujan's Lost Notebook Part I, Ch. 7: ch07LTerm
DefinitionRamanujanLostNotebook_PartI_ch07_ch07LTermnumber-theoryramanujan-lost-notebook
One full period of the real Dirichlet series L(s,χ). The period index m starts at 0; the sole index 0 is assigned 0 explicitly. Periodic grouping preserves the ordered L(1,χ), although its individual terms are not absolutely summable. For s>1 grouping agrees with the absolutely convergent ordinary series.
Definition code
import Mathlib
noncomputable section
namespace RamanujanLostNotebook.PartI
/-- One full period of the real Dirichlet series L(s,χ). The period index m starts at 0; the sole index 0 is assigned 0 explicitly. Periodic grouping preserves the ordered L(1,χ), although its individual terms are not absolutely summable. For s>1 grouping agrees with the absolutely convergent ordinary series. -/
noncomputable def ch07LTerm (k : ℕ) (χ : ℕ → ℝ) (s m : ℕ) : ℝ :=
∑ r ∈ Finset.range k,
if k * m + r = 0 then 0 else χ r / ((k * m + r : ℕ) : ℝ) ^ s
end RamanujanLostNotebook.PartI
end
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part I, Springer 2005, Chapter 7.