2024 AMC 10B Problem 18

Below is the professionally curated solution for Problem 18 of the 2024 AMC 10B, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2024 AMC 10B solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:Euler’s Totient Functionmodular exponentiationcasework

Difficulty rating: 1840

18.

How many different remainders can result when the 100100th power of an integer is divided by 125?125?

11

22

55

2525

125125

Solution:

Here 125=53125 = 5^3 and φ(125)=100.\varphi(125) = 100. If gcd(n,5)=1,\gcd(n, 5) = 1, Euler's theorem gives n1001(mod125).n^{100} \equiv 1 \pmod{125}. And if 5n,5 \mid n, then n100n^{100} carries a factor of 5100,5^{100}, hence of 125,125, so n1000(mod125).n^{100} \equiv 0 \pmod{125}. That leaves only two possible remainders, 00 and 1.1. Therefore, the answer is B.

Problem 18 in Other Years