Is there an cosine series with non-negative terms, that is continuous at $x=0$, but not continuous everywhere?
More specifically, do there exist $a_n\geq0$ such that
$$f(x) = \sum_{n=1}^\infty a_n \cos(nx) $$
- converges for $x=0$
- converges almost everywhere
- is continuous at $x=0$
- is not a continuous function?
For motiviation, see this related question.