let $f$ be a $2 \pi$ periodic function with $$ f(t) = \begin{cases} 1, & 0 \leq |t| \leq \dfrac{2 \pi} 3, \\ 0, & \text{otherwise}. \end{cases} $$
Compute the fourier series of this function,
so based on my calculation, the fourier coefficient I got is
$$\hat{f}(n) = \frac 1 {\pi n} \sin\left( \frac{2n\pi} 3 \right)$$
The fourier series will be
$$\sum_{n \geq 0} \frac 1 {\pi n} \sin\left( \frac{2n \pi} 3 \right)(e^{in \theta} - e^{-in \theta})$$
so I'm just wondering, did I do something wrong here because something looks off.
Because then I need to evaluate $$\sum \limits_{n \geq 0} \dfrac{1}{(3n+1)(3n+2)}$$ but I don't see how to get there
Nevermind I figured it out
I did the series wrong, The actual one is
$$\sum_{n \geq 0} \frac 1 {\pi n} \sin\left( \frac{2n \pi} 3 \right)(e^{in \theta} + e^{-in \theta}) + \frac{2}{3}$$