Path integrals are an obvious example - perturbation series are often divergent sums. Renormalisation is all about getting rid of these infinities. For example, the Ramanujan sum is encountered rather frequently in QFT and string theory, \(\varepsilon = \sum_{n=0}^\infty n := -1/12\), represents the Casimir energy in string theory, for example.