Skip to main content

2026 AIME I Problem 8

Problem 8 of 15IntermediateNumber TheoryProblem-Solving Techniques

Let NN be the number of positive integer divisors of 170171717017^{17} that leave a remainder of 55 upon division by 12.12. Find the remainder when NN is divided by 1000.1000.

Your answer

Integer from 0 to 999
Show solution

Solution

Since 17017=7⋅11⋅13⋅17,17017 = 7 \cdot 11 \cdot 13 \cdot 17, the divisors of 170171717017^{17} are 7a11b13c17d7^a 11^b 13^c 17^d with each exponent between 00 and 17.17. Modulo 1212 we have 13≡1,13 \equiv 1, and 72≡112≡172≡17^2 \equiv 11^2 \equiv 17^2 \equiv 1 (as 17≡517 \equiv 5), so the residue of a divisor is 7α 11β 5δ(mod12),7^{\alpha} \, 11^{\beta} \, 5^{\delta} \pmod{12}, where α,β,δ\alpha, \beta, \delta are the parities of a,b,d.a, b, d. The four possible values 1,5,7,111, 5, 7, 11 multiply like the group {1,5,7,11}\{1, 5, 7, 11\} mod 12,12, in which 7⋅11≡5.7 \cdot 11 \equiv 5. Checking the eight parity patterns, the residue is 55 exactly when (α,β,δ)=(0,0,1)(\alpha, \beta, \delta) = (0, 0, 1) or (1,1,0).(1, 1, 0). Each parity condition is satisfied by 99 of the 1818 choices of that exponent, while cc is free with 1818 choices. Therefore N=2⋅9⋅9⋅9⋅18=26244,N = 2 \cdot 9 \cdot 9 \cdot 9 \cdot 18 = 26244, and the remainder mod 10001000 is 244.244.
AoPS wiki

Tagged: modular arithmetic · prime factorization · parity · casework

More practice