FourierSeries[UnitStep[t],t,3]