Although it looks very fancy, the last line should be ##= \frac {1} {1-e^{-\beta E_0}}##. The implication arrow (##\Rightarrow##) is used to show that one statement implies the following statement. What you have instead are equal expressions.