How to calculate n^(n-1)^(n-2)...^1 mod M?

Revision en1, by misael, 2017-08-25 01:52:03

Problem from https://coj.uci.cu/24h/problem.xhtml?pid=3850 exponial(n) = n^(exponial(n-1))

How to calculate exponial(n) mod M?

Tags number theory

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English misael 2017-08-25 01:52:03 173 Initial revision (published)