Impossible Modulo

What is the remainder when 201 8 2018 ! \large{2018^{2018!}} is divided by 797086 797086 ?


The answer is 666.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Michael Mendrin
May 13, 2018

Okay, this has got to be the wierdest, most unexpected answer, 666 666

We make use of the property

a b a^b mod c = ( a c = (a mod c ) b c)^b mod c c

so that we find the modulo for successive exponentiation, as follows

a ( b 1 ) b a^{(b-1)b} mod c = ( a ( b 1 ) c = (a^{(b-1)} mod c ) b c)^b mod c c

until b = 2018 b=2018

This is best done with a short computer program

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...