Didnt understand

could you plz tell me how u got A^a(p-1)
=1 how can A^a became 1 and how u got b value

its a theorem bro…if you want the proof refer