here is my question: let $x$ denote its binary representation, $x = 0,a_1(x)a_2(x)a_3(x)\dots$ with $a_n(x) \in \{0,1\}$ such that $x = \sum_{n=1}^\infty\frac{a_n(x)}{2^n}$. Define the function $$f := 0,a_2(x)a_1(x)a_4(x)a_3(x)a_6(x)a_5(x)\dots.$$ Here we denote the Borel-$\sigma$-algebra on $[0,1]$. Show $f$ is measurable.
I cannot find a straight foreward proof. I suspect that any interval with boundaries that have a finite binary representation (that is, after a finite ammount of ones and zeros there only are zeros left), is mapped onto countably many other intervals of the same kind, which should imply measurability. Is this suspicion correct? If so, what would be the next step? If not, I would be very happy with just a hint in the right direction.