Given $f: R^n\to R $ an integrable function. Then the centered maximal operator is defined by $$M^{*}f(x)= \sup_{r>0} \dfrac{1}{\mu(B(x,r))} \int_{B(x,r)}|f(y)|\,d\mu(y) .$$
Here the supremum is taken over all the balls in $\mathbb{R}^{n}$ centred at the point $x$.
I did prove that if the function $f$ is continuous the non-centered maximal function is continuous. But it is not true in the case of the centered maximal function. I spent the last week trying to find a counter example but I could not. Can some one give me a hint how to find one? I will list some of the functions that I tried.
$$ f(x)=\begin{cases} 2x, & x \in [0,1]\\ 2, & x \in [1,2]\\ 0, & \text{otherwise} \end{cases}.$$
$$f(x)=\begin{cases} x^2, & x \in [0,1]\\ \dfrac{1+x}{2}, & x \in [1,2]\\ 0, & \text{otherwise} \end{cases}.$$