Let $(a_n)_{n\geq 1}$ be a sequence of non-negative real numbers such that $a_n \to 0$ but $\sum_{n\geq 1} a_n$ diverges. Show that the set of sums $\sum_{n \in S} a_n$, where $S$ ranges over the finite sets of positive integers, is dense, i.e. every open interval of non-negative real numbers contains a number which equals at least one of these sums.
I guess given a real $x$ one can greedily pick terms of the sequence to reach (as a sum) $x$ arbitrarily close, but no idea how to formalize this. Any help appreciated!