Cardoso, Gabriel LopesCiraficia, MicheleNampurib, Suresh2015-07-282015-07-282014-10-031029-8479http://hdl.handle.net/10539/18153In this note, we employ indefinite theta functions to regularize canonical partition functions for single-center dyonic BPS black holes. These partition functions count dyonic degeneracies in the Hilbert space of four-dimensional toroidally compactified heterotic string theory, graded by electric and magnetic charges. The regularization is achieved by viewing the weighted sums of degeneracies as sums over charge excitations in the near-horizon attractor geometry of an arbitrarily chosen black hole background, and eliminating the unstable modes. This enables us to rewrite these sums in terms of indefinite theta functions. Background independence is then implemented by using the transformation property of indefinite theta functions under elliptic transformations, while modular transformations are used to make contact with semi-classical results in supergravity.enResearch Subject Categories::NATURAL SCIENCES::PhysicsSupersymmetry and DualityBlack Holes in String TheoryExtended SupersymmetryBlack HolesIndefinite theta functions for counting attractor backgroundsArticle