asked 22.0k views
4 votes
Using fermat's little theorem, find the least positive residue of $2^{1000000}$ modulo 17.

1 Answer

2 votes
Fermat's little theorem states that

a^p≡a mod p

If we divide both sides by a, then

a^(p-1)≡1 mod p
=>

a^(17-1)≡1 mod 17

a^(16)≡1 mod 17

Rewrite

a^(1000000) mod 17 as

=(a^(16))^(62500) mod 17
and apply Fermat's little theorem

=(1)^(62500) mod 17
=>

=(1) mod 17

So we conclude that

a^(1000000)≡1 mod 17

answered
User Luiz Rodrigo
by
8.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.