Maths WorkshopMaths problems with full solutions
Exercise 1118Number theory › PrimesL1Added 3 Nov 2026

Coprimality and Euler's theorem

#coprime#Euler theorem#application

Statement

Compute 3100(mod17)3^{100}\pmod{17} using Euler's theorem.

Hint

φ(17)=16\varphi(17)=16, gcd⁡(3,17)=1\gcd(3,17)=1.

Show solutionHide solution

Solution

Euler. 316≡1(mod17)3^{16}\equiv1\pmod{17}.

Reduce. 100=6⋅16+4100=6\cdot16+4, so 3100≡34=81≡13(mod17)3^{100}\equiv3^4=81\equiv13\pmod{17}.

Conclusion. 3100≡13(mod17)3^{100}\equiv13\pmod{17}.