Problem Archive

Let $f(n)$ be the largest positive integer $x$ less than $10^9$ such that the last $9$ digits of $n^x$ form the number $x$ (including leading zeros), or zero if no such integer exists.

For example:

Find $\sum_{2 \le n \le 10^6}f(n)$.

Solution
No solution yet. Write yours at solutions/s455.md.
Problems sourced from Project Euler · Non-commercial & educational use only · CC BY-NC-SA 4.0