Skip to content

Commit 540e2e0

Browse files
committed
Updated notebook and mobius
1 parent 62ab83d commit 540e2e0

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

math/mobius.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 1 if n == 1
2-
// 0 if exists x | n% == 0
2+
// 0 if exists x | n%(x^2) == 0
33
// else (-1)^k, k = #(p) | p is prime and n%p == 0
44

55
//Calculate Mobius for all integers using sieve

notebook.pdf

55.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)