We prove that a general miraculous cancellation formula, the divisibil
ity of certain characteristic numbers, and some other topological resu
lts related to the generalized Rochlin invariant, the eta-invariant an
d the holonomies of certain determinant line bundles, are consequences
of the modular invariance of elliptic operators on loop space.