Ramanujan's Lost Notebook Part II, Ch. 13: ch13LambertTerm
DefinitionRamanujanLostNotebook_PartII_ch13_ch13LambertTermnumber-theoryramanujan-lost-notebook
The k-th Lambert summand, indexed from k=1 as in (13.1.1)–(13.1.3), p.327. The natural index n denotes k=n+1; the exponent and the cast are explicit.
Definition code
import Mathlib noncomputable section namespace RamanujanLostNotebook.PartII /-- The k-th Lambert summand, indexed from k=1 as in (13.1.1)–(13.1.3), p.327. The natural index n denotes k=n+1; the exponent and the cast are explicit. -/ def ch13LambertTerm (r : ℕ) (q : ℂ) (n : ℕ) : ℂ := ((n + 1 : ℕ) : ℂ) ^ r * q ^ (n + 1) / (1 - q ^ (n + 1)) end RamanujanLostNotebook.PartII end
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part II, Springer 2009, Chapter 13.