Problem 745 题目发布于 2021-01-31 翻译更新于 2021-04-08 Problem 745 Sum of SquaresFor 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 defineS(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)=9,g(19)=1。 另记S(N)=∑n=1Ng(n) 例如,S(10)=24,S(100)=767。 求S(1014),并将你的答案对1 000 000 007取余。
Gitalking ...