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, ε=∑∞n=0n:=−1/12, represents the Casimir energy in string theory, for example.