摘要:
\[ ans=\sum_{i=1}^n\sum_{j=1}^m(n\;mod\;i)\times(m\;mod\;j),i\neq j \] 我们假设 \[ n\leq m \] \[ \begin{aligned} ans & =\sum_{i=1}^n\sum_{j=1}^m(n\;mod\;i 阅读全文
摘要:
\[ ans=\sum_{i=1}^N\sum_{j=1}^N\sum_{p=1}^{\left\lfloor\dfrac{N}{j}\right\rfloor}\sum_{q=1}^{\left\lfloor\dfrac{N}{j}\right\rfloor}[gcd(i,j)=1][gcd(p, 阅读全文