find the value of
(996)^996 mod 997
note : here "mod" denotes the "%" or "modulus operator".....
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.
Here, first of all, we can see that 9 9 7 is a prime. Now,
( 9 9 6 ) 9 9 6 = ( 9 9 6 ) 9 9 7 − 1
Since 9 9 6 is not divisible by 9 9 7 , using Fermat's Little Theorem , with a = 9 9 6 , p = 9 9 7 we have,
a p − 1 ≡ 1 ( m o d p )
So, the required remainder = 1