Skip to main content

2021 AIME I Problem 14

Problem 14 of 15HarderNumber Theory

For any positive integer a,a, σ(a)\sigma(a) denotes the sum of the positive integer divisors of a.a. Let nn be the least positive integer such that σ(an)−1\sigma(a^n) - 1 is divisible by 20212021 for all positive integers a.a. Find the sum of the prime factors in the prime factorization of n.n.

Your answer

Integer from 0 to 999
Show solution

Solution

Note 2021=43⋅47.2021 = 43 \cdot 47. If a=∏piei,a = \prod p_i^{e_i}, then σ(an)=∏σ(piein),\sigma(a^n) = \prod \sigma(p_i^{e_i n}), so it suffices (and is necessary, taking aa prime) that σ(pN)≡1,\sigma(p^N) \equiv 1, i.e. p+p2+⋯+pN≡0p + p^2 + \cdots + p^N \equiv 0 (mod43⋅47),\pmod{43 \cdot 47}, for every prime pp and every multiple NN of n.n. Fix q∈{43,47}.q \in \{43, 47\}. If qq divides pp the sum is 0.0. If p≡1(modq)p \equiv 1 \pmod q the sum is ≡N,\equiv N, so choosing such a prime (Dirichlet) forces qq to divide n.n. Otherwise the sum is p⋅pN−1p−1p \cdot \frac{p^N - 1}{p - 1} with p−1p - 1 invertible, so we need pN≡1(modq);p^N \equiv 1 \pmod q; choosing pp to be a primitive root mod qq forces q−1q - 1 to divide n.n. Conversely, if q(q−1)q(q-1) divides nn then for every multiple NN of nn and every prime p,p, the sum vanishes mod qq in all three cases. Hence the least nn is n=lcm⁡(43⋅42, 47⋅46)=2⋅3⋅7⋅23⋅43⋅47. \begin{aligned} n &= \operatorname{lcm}(43 \cdot 42,\ 47 \cdot 46) \\ &= 2 \cdot 3 \cdot 7 \cdot 23 \cdot 43 \cdot 47. \end{aligned} The sum of the prime factors is 2+3+7+23+43+47=125.2 + 3 + 7 + 23 + 43 + 47 = 125.
AoPS wiki

Tagged: sum of factors · multiplicative order · least common multiple · modular arithmetic

More practice