FourierSequenceTransform[UnitStep(n-1)/n,n,w]