[2411.17699]
Sergei Alexandrov, Khalil Bendriss
Generating functions $h_r(τ)$ of D4-D2-D0 BPS indices, appearing in Calabi-Yau compactifications of type IIA string theory and identical to rank 0 Donaldson-Thomas invariants, are known to be higher depth mock modular forms satisfying a specific modular anomaly equation, with depth determined by the D4-brane charge $r$. We develop a method to solve the anomaly equation for arbitrary charges, in terms of indefinite theta series. This allows us to find the generating functions up to modular forms that can be fixed by computing just a finite number of Fourier coefficients of $h_r$.