(b)
The some of n terms of given series=$\frac{n(n + 1)^{2}}{2}$ if $n$ is even. Let $n$ is odd $ie$, $n = 2m + 1$
Then, $S_{2m + 1} = S_{2m} + (2m + 1)th$ term
$= \frac{(n - 1)n^{2}}{2} + nth$ term
$= \frac{(n - 1)n^{2}}{2} + n^{2}\ \ \ \ \ \lbrack\because n\ is\ odd = 2m + 1\rbrack$
$= n^{2}\left\lbrack \frac{n - 1 + 2}{2} \right\rbrack = \frac{(n + 1)n^{2}}{2}$