Let $\{a_n\}$ be a sequence that satisfy $0\le a_n<1$ for all $n$. Given that the series $\displaystyle \sum_{n=1}^{\infty} \log \left(\frac1{1-a_n}\right)$ diverges. Prove or disprove $\sum\limits_{n=1}^{\infty} a_n$ diverges.
I believe it diverges. But I couldn't really prove it. I was trying for the comparison test, but found that $\frac1{1-x} \ge e^{x}$. A hint or a counterexample would be appreciated.