FourierSeries[sgn(t),t,8]