Let $\{a_k\}_{k\geq 1}$ be a sequence of positive integers such that each $a_k > 1$. Show that every real number $x\in[0,1)$ can be represented as $$x=\sum_{k=1}^\infty\frac{x_k}{a_1a_2 \cdots a_k} ,$$ where $x_k\in\{0,1,...,a_k-1\}$.
Edit by darij grinberg: This is part of Theorem 1.6 in Ivan Niven's Irrational numbers.
When $a_k = 10$ for all $k$, this becomes the well-known fact that every number in $[0,1)$ has a base-$10$ expansion $0.x_1x_2x_3x_4\cdots$.