摘要: 题意:求$\sum_{i = 1}^{n}\sum_{j = 1}^{m}lcm(i, j)$ 思路: $\sum_{i = 1}^{n}\sum_{j = 1}^{m}lcm(i, j)$ $= \sum_{i = 1}^{n}\sum_{j = 1}^{m}\frac{i * j}{\gcd(i 阅读全文
posted @ 2020-08-24 17:56 君顾 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题意: $d(n)$为$n$的约数个数, 求$\sum_{i = 1} ^ {n}\sum_{j = 1}^{m}d(i * j)$ 思路:$d(i * j) = \sum_{x|i}\sum_{y|j}[gcd(x, y) = 1]$ $= \sum_{x | i}\sum_{y | j}\sum 阅读全文
posted @ 2020-08-24 14:30 君顾 阅读(191) 评论(0) 推荐(0) 编辑