Search Problems   RSS Feed
projecteuler.net

Totient Graph

 Published on Saturday, 8th February 2025, 01:00 pm and solved by 231
Difficulty: Level 31 [79%]

Problem 931

For a positive integer $n$ construct a graph using all the divisors of $n$ as the vertices. An edge is drawn between $a$ and $b$ if $a$ is divisible by $b$ and $a/b$ is prime, and is given weight $\phi(a)-\phi(b)$, where $\phi$ is the Euler totient function.
Define $t(n)$ to be the total weight of this graph.
The example below shows that $t(45) = 52$

0931_totientgraph.png

Let $T(N)=\displaystyle\sum_{n=1}^{N} t(n)$. You are given $T(10)=26$ and $T(10^2)=5282$.

Find $T(10^{12})$. Give your answer modulo $715827883$.



Copied to Clipboard