ACM模板库

ACM模板库


常用积性函数替换

<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/c2d2af2d88be5c286d1003f799f0507c" alt="" /></p> <pre><code class="language-markdown">$$ n = \sum_{d|n}\varphi(d)\ \ &lt;==&gt;\ \ id = \varphi*I $$ $$ \frac{\varphi(n)}{n} = \sum_{d|n}\frac{\mu(d)}{d}\ \ &lt;==&gt;\ \ \varphi = \mu*id $$ $$ \varphi(n) = \sum_{i=1}^{n}[\gcd(i, n)=1] $$ $$ d(ij)=\sum_{x|i} \sum_{y|j}[\gcd(x, y)] $$ $$ 1 = \sum_{i|n}d(i)\mu(\frac{n}{i})\ \ &lt;==&gt;\ \ I=d*u $$ $$ [n=1]=\sum_{d|n}\mu(d)\ \ &lt;==&gt;\ \ \xi=\mu*I $$ $$ n = \sum_{i|n}\sigma(i)\mu(\frac{n}{i})\ \ &lt;==&gt;\ \ id=\sigma*\mu $$ </code></pre>

页面列表

ITEM_HTML