I am trying to solve the following equation for homework: 14^47^87 mod 73. I'm supposed to use fermat's last theorem to solve this, and i can solve the regular ones with only one exponent fairly easy, but i don't know how to approach this one.
I've tried to rewrite the expression as 14^(72-25)^87 mod 73 => (1 / 14^25)^87 mod 73, but i doubt that is the way to go. Could anyone please explain to me how to approach this problem?