how do you get that answer???

sorry, I misread you question. Look at this carefully...

(a xn)p =
apxnp

and, negative exponents can be moved across the fraction bar...

a-z = 1/az