Using "infinity" in the place of a number in mathematical formulas is, in my view, a kind of hack made by mathematicians. Infinity is a concept, not a number.
Anyway, numbers aren't real. They're all "concepts", so, as long as our statements are consistent, we can do what we want!