Example (Fourier series of a step function)
Consider a $2\pi$-periodic function $$ \begin{align*} f(\theta) = \begin{cases} +1, &0\leq \theta < \pi, \\ -1, &\pi\leq 0<2\pi. \end{cases} \end{align*} $$
Since $f$ is odd, $a_n = 0$ for each $n$, and $$ \begin{align*} b_n &= \frac{2}{2\pi} \int_{0}^{2\pi} f(\theta) \sin(n\theta) \d \theta \\ &= \frac{2}{\pi}\int_{0}^{\pi} \sin(n\theta) \d \theta \\ &= \frac{2}{n\pi} (1-\cos(n\pi)) \\ &= \begin{cases} \frac{2}{n\pi}, &n\text{ odd} \\ 0, &n\text{ even} \end{cases} \end{align*} $$ so $$ \begin{align*} f(\theta) \sim \frac{4}{\pi} \sum_{n\text{ odd}} \frac{\sin(n\theta)}{n}. \end{align*} $$
Note that at $\theta=0$, the series gives $0$. This is consistent with the result of convergence since the series should converge to $(f(\theta_+) + f(\theta_-)) / 2 = (1 + (-1))/2 = 0$.