Show that if $|z|<1$ and m is a positive integer, one has $$\frac{z}{1-z^{2}}+\frac{z^{2}}{1-z^{4}}+...+\frac{z^{2^{n}}}{1-z^{2^{n+1}}}+…=\frac{z}{1-z}$$ and $$\frac{z}{1+z}+\frac{2z^{2}}{1+z^{2}}+...+\frac{2^{k}z^{2^{k}}}{1+z^{2^{k}}}+…=\frac{z}{1-z}.$$ Justify any change in the order of summation. [Hint: Use the dyadic expansion of an integer and the fact that $2^{k+1}-1=1+2+2^{2}+...+2^{k}.$]
I tried to prove: $$z^{m}=\sum^{\infty}_{n=2^{m-1}}z^{2^{m}n}$$
which I obtained after several steps of converting fractions to series, but I don't know how to use the hint.