I am trying to calculate the Fourier series of $f(x) = 1$ on the interval $\pi/2 < |x| < \pi$ and $f(x) = 0$ otherwise.
$f(x) = 1$ is an even function. Therefore, $b_n = 0$.
I am troubling how to proceed with the interval due to the absolute value in this case. Any help would be grateful.

We have
$f(x)=0$ for $x \in [-\pi/2, \pi/2]$
and
$f(x)=1$ for $x \in ( -\pi,\pi) \setminus [-\pi/2, \pi/2]$
Can you proceed ?