I'm reading TASI Lectures on Inflation(https://arxiv.org/pdf/0907.5424.pdf). On page 20, it says
... also called the Friedmann Equations $$\tag{21} \boxed{H^2=\left(\frac{\dot{a}}{a}\right)^2=\frac13\rho-\frac{k}{a^2}} $$ ...
... Eqn.(24) may be integrated to give $$\tag{26} \rho\propto a^{-3(1+w)} $$ Together with the Friedmann Equation(21) this leads to the time evolution of the scale factor $$\tag{27} a(t)\propto\cases{t^{2/3(1+w)}\quad w\ne-1,\\e^{Ht}\quad w=-1,} $$
I've tried to get eq(27) using eq(21) and eq(26) but failed. So could you please show me how to derive this? Besides, it seems not to have $t^{2/3(1+w)}\sim e^{Ht}$ when $w\to-1$. Why is it this case? Does this mean $w$ is in fact not a continious parameter?