Ramanujan's Lost Notebook Part III, Ch. 5: ch05EtaCoeff
DefinitionRamanujanLostNotebook_PartIII_ch05_ch05EtaCoeffnumber-theoryramanujan-lost-notebook
Coefficient of X^n in a finite list of Euler powers, with pairs (d,r) standing for ∏_{k≥1}(1-X^(d*k))^r. Negative exponents use exact reciprocal binomial coefficients. The listed d are always positive.
Definition code
import Mathlib
import Definitions.Def_RamanujanLostNotebook_PartIII_ch05_ch05EulerPower
namespace RamanujanLostNotebook.PartIII
/-- Coefficient of X^n in a finite list of Euler powers, with pairs (d,r)
standing for ∏_{k≥1}(1-X^(d*k))^r. Negative exponents use exact reciprocal
binomial coefficients. The listed d are always positive. -/
noncomputable def ch05EtaCoeff (factors : List (ℕ × ℤ)) (n : ℕ) : ℤ :=
((factors.map fun dr => ch05EulerPower dr.1 dr.2 n).prod).coeff n
end RamanujanLostNotebook.PartIII
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part III, Springer 2012, Chapter 5.