A uniform cable of mass ‘M’ and length ‘L’ is placed on a horizontal surface such that its $\left(\frac{1}{n}\right)^{t h}$ part is hanging below the edge of the surface. To lift the hanging part of the cable upto the surface, the work done should be: