So I'm reading through Robert Ash'sBasic Probability Theoryand I see the summation notation reproduced in the picture below.

I'm not familiar with this sort of writing--are we summing first from to some assumed upper bound like , then do it again from and so on?

If so then I'm have a hard time seeing how the first equality is supposed to be true. I would think the RHS would come out p_{1}^{n} + ...