题目 求 ∑ i = 1 n ∑ j = 1 m l c m ( i , j ) \sum_{i=1}^n\sum_{j=1}^mlcm(i,j) i=1∑nj=1∑mlcm(i,j) 分析 原式= ∑ i = 1 n ∑ j = 1 m i j g c d ( i , j ) \sum_{i=1}^n\sum_{j=1}^m\frac{ij}{gcd(i,j)} i=1∑nj=1
链接: http://acm.hdu.edu.cn/showproblem.php?pid=1829 原题: Problem Description Background Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they