Maths WorkshopMaths problems with full solutions
Exercise 317Number theory › CongruencesHigh schoolAdded 31 Oct 2026

A large power modulo 7

#congruences#periodicity

Statement

Compute the remainder of 21002^{100} when divided by 77.

Hint

Find the smallest kk with 2k≡1(mod7)2^k\equiv1\pmod7.

Show solutionHide solution

Solution

We have 23=8≡1(mod7)2^3=8\equiv1\pmod7. Since 100=3⋅33+1100=3\cdot33+1,
2100=(23)33⋅2≡133⋅2=2(mod7).2^{100}=\left(2^3\right)^{33}\cdot2\equiv1^{33}\cdot2=2\pmod7.

The remainder is 22.