I need to find two sequences $(a_n)_{n\geq1}$ and $(b_n)_{n\geq1}$ contained in the interval $[0,1]$ such that $$ \mathbb{Q}\cap (0,1) \subseteq \bigcup_{n\geq 1} (a_n,b_n) \tag{1} $$ and $$ \sum_{n\geq 1} (b_n-a_n) < 1 \tag{2} $$
I think I can find such sequences that satisfy the first condition, for example $\left(\frac{1}{2^n}\right)_{n\geq1}$ and $\left(\frac{n-1}{n}\right)_{n\geq1}$, but I draw a complete blank on how I can also satisfy the second.