Solution
= Solution
For $f=\mathbf1_{[-\pi,\pi)}$, its $2\pi$-periodization is one almost everywhere. The refinement mask is the periodic function equal to one on $[-\pi/2,\pi/2)$ and zero on the rest of $[-\pi,\pi)$. Fourier inversion gives the <Shannon scaling function>
$$
\boxed{\phi(x)=\frac{\sin\pi x}{\pi x}}.
$$
Since $m(t)=\tfrac12\sum_na_ne^{-int}$, its Fourier coefficients give
$$
\boxed{a_0=1,\qquad a_n=\frac{2\sin(n\pi/2)}{\pi n}\quad(n\ne0)}.
$$