P512
projecteuler.net

Sums of Totients of Powers

ℹ️Published on Saturday, 18th April 2015, 10:00 pm; Solved by 1671;
Difficulty rating: 25%

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)$.



Soluzione

Last modified: August 18, 2025. Website built with Franklin.jl and the lovely Julia programming language.