modulus magic............

find the value of

                    (996)^996  mod 997

note : here "mod" denotes the "%" or "modulus operator".....


The answer is 1.

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

Prasun Biswas
Nov 22, 2014

Here, first of all, we can see that 997 997 is a prime. Now,

( 996 ) 996 = ( 996 ) 997 1 (996)^{996} = (996)^{997-1}

Since 996 996 is not divisible by 997 997 , using Fermat's Little Theorem , with a = 996 , p = 997 a=996,p=997 we have,

a p 1 1 ( m o d p ) a^{p-1} \equiv 1 \quad (\mod p)

So, the required remainder = 1 =\boxed{1}

there was no need of any theorem because we see that 996 ( 1 ) ( m o d 997 ) 99 6 996 1 ( m o d 997 ) b e c a u s e 996 i s e v e n . 996\equiv(-1)\pmod{997}\\ \Rightarrow996^{996}\equiv1\pmod{997}\ because\ 996\ is\ even.

Adarsh Kumar - 6 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...