i need help in this problem https://cses.fi/problemset/task/1132
i need help in this problem https://cses.fi/problemset/task/1132
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