Problem

Source:

Tags: modular arithmetic, More Sequences



The sequence $\{a_{n}\}_{n \ge 1}$ is defined by \[a_{n}= 1+2^{2}+3^{3}+\cdots+n^{n}.\] Prove that there are infinitely many $n$ such that $a_{n}$ is composite.