DR.WANG Mathematics中文

2024 AMC 10B · Question 18

Number theory · Euler’s Totient Function · modular exponentiation · casework · problem-solving

Problem outline

As the integer aa varies, how many residue classes modulo 125125 can a100a^{100} occupy?

(A) 11 (B) 22 (C) 55 (D) 2525 (E) 125125

Show answer and methods 2 methods

Answer

B. 22.

Method 1 Separate units from multiples of five

When 5∣a5\mid a, the power is divisible by 125=53125=5^3. Otherwise aa is a unit modulo 125125 and φ(125)=125−25=100\varphi(125)=125-25=100, so Euler’s theorem gives a100≡1(mod125)a^{100}\equiv1\pmod{125}.

Both residues occur, for example with a=5a=5 and a=1a=1. There are two.

Method 2 Lift Fermat’s congruence twice
Topics usedBinomial theorem

For 5∤a5\nmid a, Fermat’s little theorem gives a4=1+5ta^4=1+5t. The binomial expansion shows that (1+5t)5(1+5t)^5 is 11 modulo 2525. Writing it as 1+25u1+25u and raising to the fifth power again gives 11 modulo 125125. Thus a100≡1a^{100}\equiv1.

For a multiple of five the residue is zero. Both possibilities occur.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)