-1

I am trying to solve the following modular congruence but I am not sure how to proceed as I have not fully grasp the concept of it.

$$\large3^{47} \mod 23$$

I would like to know how to proceed in solving this while understanding the process in doing so.

Bill Dubuque
  • 272,048
  • Do you have Euler's theorem? – Randall Oct 31 '17 at 00:44
  • Somewhat, but I don't fully understand it. Would you mind explaining? – Omari Celestine Oct 31 '17 at 00:48
  • A special case of the theorem says that, when $p$ is prime, $a^{p-1} \equiv 1 \pmod{p}$ for any nonzero $a \in \mathbb{Z}$. In this problem, a good first step would be recognizing that $3^{47} = 3^{22 + 22 + 3} = 3^{22}3^{22}3^3$ and applying that fact. – Kaj Hansen Oct 31 '17 at 00:50
  • Do you think you can post an answer demonstrating the full process? – Omari Celestine Oct 31 '17 at 00:55
  • @OmariCelestine It would be a better idea to try the hint first, and then ask again if you don't understand. This will help you better understand the process, not the answer. – Toby Mak Oct 31 '17 at 01:33

2 Answers2

3

Another way of stating Fermat's Little Theorem is $a^p\equiv a$ mod $p$ for any $a$ if $p$ is prime. Thus we have

$$3^{47}=3^{23+23+1}=3^{23}\cdot3^{23}\cdot3\equiv3\cdot3\cdot3=27\equiv4\mod23$$

Barry Cipra
  • 79,832
2

Hint:

Use lil' Fermat: as $23$ is prime and $3$ is not divisible by $23$, $$3^{47}\equiv3^{47\bmod 22}\mod23.$$

Some details:

$47\bmod 22=3$, so $\;3^{47}\equiv 3^3=27\equiv 4\mod23$.

Bernard
  • 175,478