24 is 2 times 12.
Therefore, if you "factor out" the 12, you are looking for a series that is a geometrical progression (equal factor between each term) that will begin with 1, and add up to 2.
Such an infinite series is already known:
Sum[n = 0 to infinity] of (1/2)^n
Anything to the power 0 is equal to 1,
then the next term is 1/2, then 1/4, then 1/8...
and there exists a way to show that this series tend to 2 (as n goes to infinity)
(1 + 1/2 + 1/4 + 1/8 + ... forever) = 2
If you multiply both sides by 12, you get
12(1 + 1/2 + 14 + 1/8 + ... forever) = 12 * 2 = 24
The 12 is a factor of the whole series, therefore it gets to multiply every term, when you "distribute" it into the series.