Here is the problem I'm struggling with:
Where is the following function continuous, differentiable, continuously differentiable?
$$f(x) = \begin{cases} q^{-2} & \text{if $x=\frac{p}{q}$ in lowest terms, $q\in\mathbb N$ } \\ 0 & \text{if $x$ is irrational or $x=0$} \\ \end{cases} $$
As you can see, it's a modification of the Thomae's function: $q^{-2}$ here instead of the original $q^{-1}$.
So far, I've proved that this function (unlike the Thomae's function) is differentiable in $x=0$. And I expect it to be non-differentiable in $\mathbb R\setminus\mathbb Q$ (my guess is largely based the Proposition 4.1, yet the general proof from the paper is too advanced for me).
I was very glad to find the proof for the case $q^{-1}$: it was very beneficial for me to work through it and to try it here, yet it doesn't seem to work in my case.
Any help is hugely appreciated.