Prove that every nonempty open subset of $\mathbb{R}$ can be expressed as a countable disjoint union of open intervals:
$G=\bigcup_{k}(a_k,b_k,),$
where the range on $k$ can be finite or infinite. Furthermore, show that this expression is unique except for the numbering of the component intervals. (Hint: for any $x\in G$, show that there exists a largest open interval $A_x$ such that $x\in A_x$ and $A_x \subset G.$)
Can you give me the proof using above hint? and another problem is:
In the notation of above problem, prove that $\lambda(G)=\sum_{k}(b_k-a_k).$