Hi. I'm trying to understand an example in a chapter on Series and Convergence. The example states rather casually that:

The nth partial sum of the series

is given by

But I'm not understanding how we we came to this conclusion. Can somebody help me understand this?