I have been reading up on how to solve problems relating to ideal gases. In a certain example problem in the book, Questions and Problems in school Physics by Tarasov and Tarasova, a system of equations were derived and was solved as shown below:
I understand how they got each of those equations but I can't understand how they solved them all(especially how there is suddenly a power of n in the solution). Help?
PS:- I felt this would be more appropriate in math.stackexchange rather than physics.stackexchange since it is the math that I don't seem to get here. I hope I am not wrong.

Note that the $p_{2}$ on the right of the second line is the same $p_2$ as on the left of the third line. Similarly with all others that appear.
So, using the final line and dividing each line by $(V+v)$ we have:
$$\begin{array}{l&l}p_n &= p_{n-1}(\frac{V}{V+v})\\ & = (p_{n-2}(\frac{V}{V+v}))(\frac{V}{V+v})\\ & = ((p_{n-3}(\frac{V}{V+v}))(\frac{V}{V+v}))(\frac{V}{V+v})\\ &\vdots\\ &=p_0 (\frac{V}{V+v})(\frac{V}{V+v})\cdots (\frac{V}{V+v})\\ &=p_0 (\frac{V}{V+v})^n \end{array}$$
This can be made more formal using an induction proof.