Express $X_n$ using the $U_i$, $1 \leq i \leq n$. Deduce the expectation $\mathrm{E}\left(X_n\right)$ and the variance $\mathrm{V}\left(X_n\right)$.