Problem 611: (2021 AIME I, 14)
For any positive integer $a,$ $\sigma(a)$ denotes the sum of the positive integer divisors of $a$. Let $n$ be the least positive integer such that $\sigma(a^n)-1$ is divisible by $2021$ for all positive integers $a$. Find the sum of the prime factors in the prime factorization of $n$.
- For a prime $a$, $\sigma(a^n)-1=a+a^2+\cdots+a^n$, and this must be divisible by $2021=43\cdot47$. Work mod each prime $p\in\{43,47\}$.
- For a prime $a\equiv1\pmod p$ (one exists by Dirichlet's theorem) the sum is $\equiv n$, so $p\mid n$. For a prime $a$ that is a primitive root mod $p$ the sum is $a\frac{a^n-1}{a-1}$, so $a^n\equiv1$ and $(p-1)\mid n$. Conversely, let $p\mid n$ and $(p-1)\mid n$. For a prime power $q^e$ put $m=en$: if $q\equiv0$ or $1\pmod p$ then $\sigma(q^m)\equiv1$, and otherwise $\sigma(q^m)=\frac{q^{m+1}-1}{q-1}\equiv\frac{q-1}{q-1}=1$. Since $\sigma$ is multiplicative, $\sigma(a^n)\equiv1\pmod p$ for every positive integer $a$.
- So $n=\operatorname{lcm}(43,42,47,46)=2\cdot3\cdot7\cdot23\cdot43\cdot47$.
- The sum of its prime factors is $2+3+7+23+43+47=125$. The answer is $\boxed{125}$.
For any positive integer $a,$ $\sigma(a)$ denotes the sum of the positive integer divisors of $a$. Let $n$ be the least positive integer such that $\sigma(a^n)-1$ is divisible by $2537$ for all positive integers $a$. Find the sum of the prime factors in the prime factorization of $n$.