0

Compute $5^{15}$ mod $7$ using the fact that if gcd$(a,n) = 1$, then $a^{\phi(n)}$ mod $n$ = $1$ (Euler-phi function).

I see that $5^{15} = 5^{6}5^{6}5^{3} = 5^{\phi(n)}5^{\phi(n)}5^{3}$, but I'm not sure if this would help.

user26857
  • 52,094
Oliver G
  • 4,792

2 Answers2

1

Hint:

Since $5^6\equiv 1\mod 7$, we have $\;5^{15}\equiv5^{15\bmod 6}=5^3$.

Bernard
  • 175,478
  • Hope you don’t mind, but I stuck in the value of $5^6$ for you. I would also recommend using the TeX for congruence (\equiv) rather than the equality sign. But it would’ve been over-editing to do that for you. – Lubin Jul 28 '16 at 16:17
  • I'd rather thank you – I'm familiar with typos… The equality signs problems come from usually thinking in the quotient ring. – Bernard Jul 28 '16 at 16:24
1

You've already shown $5^{15}=5^{6}\cdot5^{6}\cdot5^{3}=5^{\phi(7)}\cdot5^{\phi(7)}\cdot5^{3}$.

By Euler's theorem, $\gcd(5,7)=1\implies5^{\phi(7)}\equiv1\pmod7$.

Therefore, $5^{\phi(7)}\cdot5^{\phi(7)}\cdot5^{3}\equiv1\cdot1\cdot5^3\equiv125\equiv6\pmod7$.

barak manos
  • 43,109