4

By Fermat's theorem (or more generally by Euler's totient function theorem), for $p$ prime, any nonzero element $a$ of $Z/pZ$ satisfies:

$$a^{p-1}\equiv1 \mod p$$

Hence, in this case, we have $$9^{74}=(9^{12})^69^2$$

Applying the theorem:

$$9^{12}\equiv1 \mod 13$$

So

$$9^{74}\equiv9^2 \mod 13$$

And now, if I'm doing the math correctly,

$$81=(13)(6)+3$$

So

$$81\equiv3 \mod 13$$

Is this correct?

user729424
  • 5,061
jagac
  • 51

1 Answers1

1

$\phi(13)=12$. Fermat's little theorem gives $9^{12}\cong1\pmod{13}$. Hence $9^{74}\cong9^2\cong3\pmod{13}$.

That is, you got it.