0

We know from Fermat's little theorem that $$ 15^{42} \equiv 1 \mod{43} $$ since 43 is a prime number and $43 \nmid 15$. Could I use this fact to calculate $15^{41} (mod\ 43)$? My first impression tells me that I can not divide by 15, since is 15 is not a factor of the right hand side.

Bill Dubuque
  • 272,048
Nick
  • 332
  • 2
  • 8

1 Answers1

0

You can multiply the modular inverse of $15 \pmod {43}$. This exists since $gcd(15,43) = 1$. So we have $$ 15^{42}\equiv 1 \pmod {43} \Leftrightarrow 15^{41} \equiv 1\cdot (15)^{-1}\pmod {43} \equiv 23\pmod{43}.$$