I'd like to solve the following functional equation: \begin{equation} 2f(x)+f(1-2x)=1 \end{equation}
for $x \in [0,1/2]$. I also know that $f(1/2)=1/2$.
This equation arises from a problem where I know I should get $f(x)=x$ as the unique solution. I can't find anything online, the main problem being that $1-2x$ is not involutive.
Define $f(x)=x$ if $x$ is rational and $f(x)=1/3$ if $x$ is irrational. Then we have
$$2f(x)+f(1-2x)=1$$
for all $x$.