Ramanujan's Lost Notebook Part I, Ch. 7: ch07Moment
DefinitionRamanujanLostNotebook_PartI_ch07_ch07Momentnumber-theoryramanujan-lost-notebook
The finite character moment M_j(χ)=∑_{r=1}^{k-1}χ(r)r^j, equations (7.2.2), (7.3.2). Empty ranges have their usual finite-sum meaning.
Definition code
import Mathlib
noncomputable section
namespace RamanujanLostNotebook.PartI
/-- The finite character moment M_j(χ)=∑_{r=1}^{k-1}χ(r)r^j, equations (7.2.2), (7.3.2). Empty ranges have their usual finite-sum meaning. -/
noncomputable def ch07Moment (k : ℕ) (χ : ℕ → ℝ) (j : ℕ) : ℝ :=
∑ r ∈ Finset.Icc 1 (k - 1), χ r * (r : ℝ) ^ j
end RamanujanLostNotebook.PartI
end
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part I, Springer 2005, Chapter 7.