Ramanujan's Lost Notebook Part I, Ch. 6: ch6MainNum
DefinitionRamanujanLostNotebook_PartI_ch06_ch6MainNumnumber-theoryramanujan-lost-notebook
The n-th partial numerator in (6.2.2), for n≥1: aq^j+λq^(2j−1) at n=2j−1 and bq^j+λq^(2j) at n=2j. Index zero is unused by continuants.
Definition code
import Mathlib noncomputable section namespace RamanujanLostNotebook.PartI /-- The n-th partial numerator in (6.2.2), for n≥1: aq^j+λq^(2j−1) at n=2j−1 and bq^j+λq^(2j) at n=2j. Index zero is unused by continuants. -/ def ch6MainNum (a b l q : ℂ) (n : ℕ) : ℂ := (if n % 2 = 1 then a * q ^ ((n + 1) / 2) else b * q ^ (n / 2)) + l * q ^ n end RamanujanLostNotebook.PartI end
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part I, Springer 2005, Chapter 6.