随笔分类 - 数学方法 -- 杜教筛
摘要:【BZOJ4805】欧拉函数求和(杜教筛) 题面 "BZOJ" 题解 好久没写过了 正好看见了顺手切一下 令 设存在的某个积性函数 $$(g \varphi)(i)=\sum_{d|i}g(d)\varphi(\frac{i}
阅读全文
摘要:【BZOJ3930】选数(莫比乌斯反演,杜教筛) 题面 给定 问从中选出个数,使得他们的方案数 题解 这样想,既然,首先就把区间缩小一下 这样变成了 设表示恰好为的方案数 那么,要求的是$f(1)
阅读全文
摘要:【BZOJ4652】循环之美(莫比乌斯反演,杜教筛) 题解 到底在求什么呢。。。 首先不管他进制的问题啦,真是烦死啦 所以,相当于有一个分数 因为值要不相等 所以有,也就是 现在考虑进制 先从熟悉的进制入手
阅读全文
摘要:【Luogu3768】简单的数学题(莫比乌斯反演,杜教筛) 题面 "洛谷" $ n include include include include include include include include incl
阅读全文
摘要:【BZOJ4916】神犇和蒟蒻(杜教筛) 题面 "BZOJ" 求 其中$$n include include include include include include include
阅读全文
摘要:【BZOJ3944】Sum(杜教筛) 题面 求 范围:$n include include include include include include include include include using
阅读全文