A^B^C mod prime [how to solve it]

Revision en1, by Sonic_AR, 2020-07-08 01:33:20

I have found that the answer to my question is

a^((b^c) % prime — 1) % prime

But I don't know a proof, can anyone tell me the proof or give me a tutorial to read it. Thanks

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Sonic_AR 2020-07-08 01:33:20 219 Initial revision (published)