Hardy-Ramanujan Journal |
The Eichler-Selberg trace formulas express the traces of Hecke operators on a spaces of cusp forms in terms of weighted sums of Hurwitz-Kronecker class numbers. For cusp forms on $\text {\rm SL}_2(\mathbb{Z}),$ Zagier proved these formulas by cleverly making use of the weight 3/2 nonholomorphic Eisenstein series he discovered in the 1970s. The holomorphic part of this form, its so-called {\it mock modular form}, is the generating function for these class numbers. In this expository note we revisit Zagier's method, and we show how to obtain such formulas for congruence subgroups, working out the details for $\Gamma_0(2)$ and $\Gamma_0(4).$ The trace formulas fall out naturally from the computation of the Rankin-Cohen brackets of Zagier's mock modular form with specific theta functions.