GenMu function

Generate a piecewise constant sequence starting from 0