Fermat's little theorem

How do you calculate the following using Fermat Little Theor

2^1,000,006 mod 101
2^-1,000,005 mod 11

      

+1


a source to share


2 answers


You know that a ^ (p-1) === 1 mod p, so ...

2 ^ 10 === 1 mod 11
2 ^ (- 1000,005) = 2 ^ (- 1,000,000) * 2 ^ (- 5) = 1 * 2 ^ (- 5) = 2 ^ (- 5) * 2 ^ (10) = 32 mod 11 = -1 = 10



From this, can you see how to work with a large number? The process is the same.

This is FLT completely. I messed up.

+2


a source


Since 101 and 11 are prime, then (respectively) 2 ^ 100 and 2 ^ 10 coincide with 1 mod 101 and 11.



Try expressing 2 ^ 1000006 in terms of 2 ^ 100 and 2 ^ -1000005 in terms of 2 ^ 10. You should be able to reduce every problem to something easy.

+2


a source







All Articles