Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linear Sieve any Multiplicative Function #31

Open
ongyiumark opened this issue Mar 30, 2022 · 0 comments
Open

Linear Sieve any Multiplicative Function #31

ongyiumark opened this issue Mar 30, 2022 · 0 comments
Assignees

Comments

@ongyiumark
Copy link
Contributor

https://codeforces.com/blog/entry/54090

With minor changes to the linear prime sieve, there's actually a way to linearly sieve any multiplicative function (phi, mobius, divisor, etc).

You just need to define f(p^k) where f is the multiplicative function and p is a prime. This uniquely identifies a multiplicative function.

I propose we add this generalized linear sieve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant