ProjectEuler 439 - Sum of sum of divisors Oct 8, 2013 1 min read CS/Math > Project Euler PE 438 不会 >__< Problem 令 d(n)=∑d∣ndd(n) = \sum_{d|n} dd(n)=∑d∣nd ,求 S(n)=∑i=1n∑j=1nd(ij)S(n) = \sum_{i = 1}^n \sum_{j = 1}^n d(ij)S(n)=i=1∑nj=1∑nd(ij) 其中 n=1011n = 10^{11}n=1011 Solution 详见评论。