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 to share