Let $(a_k)$ be an infinite sequence of $0$s and $1$s chosen at random so that the probability that any $a_k=0$ is $1/2$. Show that the probability that the random number $\sum_{k=1}^\infty a_k/2^k$ belongs to $[a,b]\subseteq[0,1]$ is $b-a$. Hint: Consider dyadic intervals (i.e. intervals of the form $\left[j/2^k,(j+1)/2^k\right]$) first.
Now this is in the context of a measure theory course. The only thing we have said about probabilities is that a probability is a measure $\mu$ on a space $(X,\mathcal A)$ that satisfies $\mu(X)=1$. Nothing else.
Initially, I thought that the Lebesgue measure on $[0,1]$ is a probability measure and so we must have $\mu([a,b])=b-a$. So the probability that $x\in[a,b]$ is $b-a$ for any $x$. Clearly something is wrong with this.
So, I tried to use the hint. Well, I know that $[0,1]=\bigcup_{j=0}^{2^k-1}\big[j/2^k,(j+1)/2^k\big)$ for any $k$ and so the probability that any random $x$ is in one of the dyadic intervals is $1/2^k$. I wish to find a similar decomposition for $[a,b]$ but I can't think of any; and even if I could, I don't see how this is useful for the problem.
As you see I am very confused here. Any explanation will be appreciated.
HINT You have not mentioned one important piece of the definition of a measure: The measure of the union of disjoint sets is the sum of the measures of the members of the union.
You will also need the fact that a countable set of points has measure zero, in order to break up the interval $[a,b]$ into a countable union of disjoint open intervals unioned with a countable set of points