The correct option is
C mgl n(n−1)2
Initially, the blocks are lying on the horizontal surface. The center of mass of each block will be at a length
l2 from the horizontal. Thus, the potential energy of each block will be
mgl2.
Thus, the initial potential energy of the blocks is
PE1=nmgl2
Now, when the blocks are stacked together the total mass becomes
nm and the total length is
nl, so the center of mass lies at
nl2
Thus, the final PE of the system is
PE2=nmg(nl2)
Now, we can calculate the work done.
Work done
W=W2−W1
W=PE2−PE1
W=nmg(nl2)−nmg(l2)
W=nmgl2[n−1]
W=mgl2n(n−1)