There is a conclusion that if a periodic function $f$ is $k$ times differentiable, then the $n$-th Fourier coefficient of $f$ satisfy the relation: $$a_n =O(1/|n|^k) \quad \text{as $n\rightarrow \infty$.}$$ where $O(1/|n|^k)$ means $|n|^k a_n$ is bounded.
My question is: Does the converse of the conclusion still holds, i.e. if we have $a_n =O(1/|n|^k) \quad \text{as $n\rightarrow \infty$}$, is the function $f$ k times differentiable?
For $k=1$ the function $f(x)=\sum_{|n| >2} \frac {\sin (nx)} {n \log n} $ is a counter-example. It can be shown that this series is uniformly convergent so $f$ is a continuous periodic function. But it is not differentiable ate $0$.