|
|
|
@ -3,9 +3,9 @@ using namespace std;
|
|
|
|
|
#define int long long
|
|
|
|
|
#define endl "\n"
|
|
|
|
|
const int maxn = 10000;
|
|
|
|
|
const int Six = 166666668; /// 6,2关于mod的乘法逆元
|
|
|
|
|
const int Six = 166666668; // 6,2关于mod的乘法逆元
|
|
|
|
|
const int Two = 500000004;
|
|
|
|
|
const int mod = 1e9 + 7; /// 尽量这样定义mod ,减少非必要的麻烦
|
|
|
|
|
const int mod = 1e9 + 7; // 尽量这样定义mod ,减少非必要的麻烦
|
|
|
|
|
|
|
|
|
|
int Mod(int a, int b) {
|
|
|
|
|
return (a % mod) * (b % mod) % mod;
|
|
|
|
@ -50,7 +50,7 @@ signed main() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (num & 1)
|
|
|
|
|
ans = (ans + F(x, n / x)) % mod; /// 根据容斥,取奇数个因子时,应加上
|
|
|
|
|
ans = (ans + F(x, n / x)) % mod; // 根据容斥,取奇数个因子时,应加上
|
|
|
|
|
else
|
|
|
|
|
ans = ((ans - F(x, n / x)) % mod + mod) % mod;
|
|
|
|
|
}
|
|
|
|
|