Let $(\Omega, \mathcal{A}, \mathbb{P})$ be a probability space, $(U_n)_{n \geqslant 1}$ a sequence of mutually independent random variables following a Bernoulli distribution with parameter $1/2$. We set
$$\forall n \in \mathbb{N}^{\star}, \quad Y_n = \sum_{k=1}^{n} \frac{U_k}{2^k}.$$
Deduce that, for every continuous function $f$ from $[0,1]$ to $\mathbb{R}$, the sequence $(\mathbb{E}(f(Y_n)))_{n \geqslant 1}$ converges and specify its limit.