Remainder of Sum k^2026 (k=1..2026) Modulo 13
Board: Olympiad | Grade: Olympiad | Chapter: Modular Arithmetic
Problem
Find the remainder when $$S = 1^{2026} + 2^{2026} + 3^{2026} + \dots + 2026^{2026}$$ is divided by $13$.
Step-by-Step Textbook Solution
By Fermat's Little Theorem, for any integer $k$ not divisible by $13$, we have $k^{12} \equiv 1 \pmod{13}$. Since $2026 = 12 \times 168 + 10$, we have $k^{2026} \equiv k^{10} \pmod{13}$ for $13 \nmid k$ (and $0^{2026} \equiv 0 \pmod{13}$).
Consider the sum over one full residue block modulo $13$: $$B = \sum_{r=0}^{12} r^{2026} \equiv \sum_{r=1}^{12} r^{10} \pmod{13}.$$ Recall that $2$ is a primitive root modulo $13$ (or simply note $2^{10} = 1024 = 13 \times 78 + 10 \not\equiv 1 \pmod{13}$). Multiplying each $r \in {1, 2, \dots, 12}$ by $2$ permutes ${1, 2, \dots, 12}$ modulo $13$: $$B \equiv \sum_{r=1}^{12} (2r)^{10} = 2^{10} \sum_{r=1}^{12} r^{10} \equiv 2^{10} B \pmod{13}.$$ Thus $(2^{10} - 1)B \equiv 9B \equiv 0 \pmod{13}$, which forces $B \equiv 0 \pmod{13}$.
Now divide $2026$ by $13$: $$2026 = 13 \times 155 + 11.$$ The $155$ complete blocks of $13$ consecutive integers each sum to $0 \pmod{13}$, leaving only the last $11$ terms ($2016 \dots 2026 \equiv 1 \dots 11 \pmod{13}$): $$S \equiv \sum_{r=1}^{11} r^{10} = B - 12^{10} \equiv 0 - (-1)^{10} = -1 \equiv 12 \pmod{13}.$$ Therefore, the remainder is $12$.
NityaDhi Solution (Intuitive Method)
Recall the Power-Sum Lemma modulo prime $p$: $$\sum_{r=1}^{p-1} r^m \equiv \begin{cases} -1 \pmod p & \text{if } (p-1) \mid m, \ 0 \pmod p & \text{if } (p-1) \nmid m. \end{cases}$$ Here $p = 13$, $m = 2026 \equiv 10 \not\equiv 0 \pmod{12}$, so every full block of $13$ sums to $0 \pmod{13}$! Since $2026 \equiv 11 \pmod{13}$, we only miss the single non-zero term $12^{2026}$ from the last block: $$S \equiv 0 - 12^{2026} \equiv -(-1)^{2026} = -1 \equiv \mathbf{12} \pmod{13}.$$
Common Mistakes to Avoid
- Computing $1^{10} + 2^{10} + \dots + 11^{10} \pmod{13}$ term by term: Not only is this slow and error-prone, it misses that $12^{10}$ completes the full block to $0 \pmod{13}$.
- Assuming the power sum is $-1 \pmod{13}$ per block: That happens only when $12 \mid 2026$, which is false here.