A Hard Task?

Revision en1, by VIIIIIIVX, 2016-10-11 15:55:22

Hi everyone! Some days ago, I confronted to a hard problem and I could not solve it. Can you help me? The problem was: Given a and n(1 <= a, n <= 1000), b = (a ^ a) ^ (a ^ a), and return b mod n.

Tags number theory

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English VIIIIIIVX 2016-10-11 15:59:58 21 Tiny change: 'lem was:\n\nGiven a ' -
en1 English VIIIIIIVX 2016-10-11 15:55:22 215 Initial revision (published)