Let $X_1,X_2,X_3, \ldots$ be an infinite sequence of i.i.d. Bernoulli$(p)$ random variables, with $P(X_1=1)=p=1-P(X_1=0)$ and define the random real number $X=\sum_{i=1}^{\infty}\frac{X_i}{2^i}$.
It's simple to find $E[X]$ and $E[X^2]$.
$$E[X]=p, \qquad E[X^2]=\sum_{i=1}^\infty 2^{-2i} p + \sum_{i=1}^\infty \sum_{j=1,j \neq i}^\infty 2^{-i} 2^{-j} p^2=\frac{p+2p^2}{3}.$$
Question: What about $E[X^n]$?
Obviously, $E[X^n]$ is a polynomial of degree $n$, but it's difficult to consider it in the same way.