I have the following summation: $$\frac{1}{2}+\frac{1}{2^2}+...+\frac{1}{2^{22}}$$
Which is the sum of the $23$ elements of a $32$ bit mantissa.
Now the sum is:
$$\frac{\frac{1}{2}(\frac{1}{2^{23}}-1)}{\frac{1}{2}-1}=-(2^{-23}-1)=1-2^{-23}$$
In the note it was calculate by $$(2^{23}-1)2^{-23}$$ which is the same, but how did we get to this formula this from the first place?
Considering the expression $1-2^{-23}$, multiply and divide by $2^{-23}$. So, you obtain: $$\frac{1-2^{-23}}{2^{-23}}\cdot2^{-23}=(\frac{1}{2^{-23}}-1)\cdot2^{-23}=(2^{23}-1)\cdot2^{-23}$$