Problem Archive

Let $\varphi(n)$ be Euler's totient function.

Let $f(n)=(\sum_{i=1}^{n}\varphi(n^i)) \bmod (n+1)$.

Let $g(n)=\sum_{i=1}^{n} f(i)$.

$g(100)=2007$.

Find $g(5 \times 10^8)$.

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