Ramanujan's Lost Notebook Part I, Ch. 4: ch04LambertTerm
DefinitionRamanujanLostNotebook_PartI_ch04_ch04LambertTermnumber-theoryramanujan-lost-notebook
The bilateral Lambert summand q^(i n)/(1−q^(m n+j)), Section 4.4. Integer powers preserve negative indices. The source value requires q≠0, ‖q‖<1, 0<i<m and j not divisible by m; these conditions ensure nonzero term denominators and absolute convergence. Individual statements supply their actual domain.
Definition code
import Mathlib noncomputable section namespace RamanujanLostNotebook.PartI /-- The bilateral Lambert summand q^(i n)/(1−q^(m n+j)), Section 4.4. Integer powers preserve negative indices. The source value requires q≠0, ‖q‖<1, 0<i<m and j not divisible by m; these conditions ensure nonzero term denominators and absolute convergence. Individual statements supply their actual domain. -/ def ch04LambertTerm (m i j : ℕ) (q : ℂ) (n : ℤ) : ℂ := q ^ ((i : ℤ) * n) / (1 - q ^ ((m : ℤ) * n + (j : ℤ))) end RamanujanLostNotebook.PartI end
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part I, Springer 2005, Chapter 4.