0%

Problem 745


Problem 745


Sum of Squares

For a positive integer, n, define g(n) to be the maximum perfect square that divides n.
For example, g(18)=9, g(19)=1.

Also define
S(N)=n=1Ng(n)

For example, S(10)=24 and S(100)=767.

Find S(1014). Give your answer modulo 1 000 000 007.


平方和

对于正整数n,记g(n)为整除n的最大完全平方数。
例如,g(18)=9g(19)=1

另记
S(N)=n=1Ng(n)

例如,S(10)=24S(100)=767

S(1014),并将你的答案对1 000 000 007取余。


Gitalking ...