xehoth / xehoth-blog-comment

0 stars 0 forks source link

「LOJ 6053」简单的函数-ExtendedEratosthenesSieve | xehoth #325

Open xehoth opened 6 years ago

xehoth commented 6 years ago

https://blog.xehoth.cc/LOJ6053/

一个函数 $f(x)$,它满足:$f(1) = 1$。$f(p ^ c) = p \oplus c$($p$ 为质数,$\oplus$ 表示异或)。$f(ab) = f(a)f(b)$($a$ 与 $b$ 互质)。求 $\sum\limits_{i = 1} ^ n f(i) \bmod 1000000007$。