Ramanujan's Lost Notebook Part III, Ch. 3: ch3EulerTrunc
DefinitionRamanujanLostNotebook_PartIII_ch03_ch3EulerTruncnumber-theoryramanujan-lost-notebook
Polynomial ∏{j=1}^N(1-X^(d*j)); for d>0 its coefficients through degree N are exactly those of (q^d;q^d)∞. Factors beyond N have positive degree >N. Used over integer Laurent coefficients; no analytic q or truncation hypothesis.
Definition code
import Mathlib
noncomputable section
namespace RamanujanLostNotebook.PartIII
/-- Polynomial ∏_{j=1}^N(1-X^(d*j)); for d>0 its coefficients through degree N
are exactly those of (q^d;q^d)_∞. Factors beyond N have positive degree >N.
Used over integer Laurent coefficients; no analytic q or truncation hypothesis. -/
noncomputable def ch3EulerTrunc {R : Type*} [CommRing R] (N d : ℕ) : Polynomial R :=
∏ j ∈ Finset.Icc 1 N, (1 - Polynomial.X ^ (d * j))
end RamanujanLostNotebook.PartIII
end
Source
G. E. Andrews and B. C. Berndt, Ramanujan's Lost Notebook, Part III, Springer 2012, Chapter 3.