# z-transform help

I'm trying to solve this exercise:

And the solutions manual states that the resolution is this one:

but I can not understand the last step, which is indicated with an arrow. Also, how do you find the ROC.

Multiply the numererator and denominator by $$z^N$$ and factor out (in the denominator) $$z^{N-1}$$.