Skip to content
Puzzle Library
PuzzlesCollectionsNotesTimelineAboutRSS
中文
← RoseCode

ROSECODE / 456

Sum of phi

liuguangxi · Math · 2018-01-15

Let S(n)=∑i=1n∑j=1nφ(i⋅j) where φ(x) is Euler's totient function.

You are given S(2)=φ(1×1)+φ(1×2)+φ(2×1)+φ(2×2)=5, S(50)=696335 and S(5000)mod1000000007=397838656.

Find S(50000000)mod1000000007.
Original archive ↗

Problem preserved from RoseCode, with formatting adapted for this archive. CC BY-NC-SA 4.0

← Previous 455Next 457 →

A quiet place for problems worth keeping.

PUZZLE LIBRARY